ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

peter-commit-ops

提交与建 PR 桥接自动化。负责将“可提交”改动落成 commit、推送分支并创建 PR,衔接 peter-code-review 与 peter-pr-ops。用于用户提到“帮我提交”“推分支”“创建 PR”“从 review 到 merge 串起来”等场景。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chinasilva/peter-commit-ops
Or

What This Skill Does

peter-commit-ops serves as the critical bridge in your development workflow, transforming 'ready-to-submit' code changes into active, trackable pull requests. Instead of manually juggling git commands, this skill orchestrates a safe, atomic transition from your local workspace to the repository's CI/PR pipeline. It automates the verification of git status, handles branch management by ensuring feature branch usage, performs atomic commits with standardized messages, and pushes code to the remote repository while triggering PR creation via the GitHub CLI.

Installation

To install this skill, run the following command in your terminal: clawhub install openclaw/skills/skills/chinasilva/peter-commit-ops

Use Cases

  • Automated PR Lifecycle: When you want to transition from a code review to a merge request without manual overhead.
  • Standardized Commit Hygiene: Ensures all commits adhere to conventional commit standards (feat/fix/chore) before reaching the remote server.
  • Safety-First Deployment: Automatically checks for pre-commit linting or workflow requirements, preventing 'dirty' code from being pushed.
  • Risk-Aware Pushing: Identifies and explicitly labels high-risk changes, ensuring that CI/PR gates are prioritized for sensitive modifications.

Example Prompts

  1. "The code review passed and the changes look good, please go ahead and commit these, push to a new branch, and create a PR for me."
  2. "I'm ready to ship the feature I've been working on. Can you handle the commit and create the pull request to the main branch?"
  3. "Hey Peter, I've addressed the feedback from the last review. Please push these changes and start the PR process so we can move to CI."

Tips & Limitations

  • Workplace Safety: The skill refuses to act if the workspace is empty or if previous review steps flagged the code as 'needs repair'.
  • Strict Branching: It prevents you from committing directly to protected branches like 'main' or 'master' by forcing a feature branch creation.
  • Selective Staging: It avoids the dangerous 'git add .' pattern by default, requiring specific file identification to ensure only relevant changes are included.
  • CI Integration: While this skill initiates the PR, it expects subsequent tools like 'peter-ci-gate' to handle the final verification and merging process.

Metadata

Stars3683
Views1
Updated2026-04-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chinasilva-peter-commit-ops": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#git#automation#github#devops#workflow
Safety Score: 3/5

Flags: file-write, file-read, code-execution, external-api