peter-commit-ops
提交与建 PR 桥接自动化。负责将“可提交”改动落成 commit、推送分支并创建 PR,衔接 peter-code-review 与 peter-pr-ops。用于用户提到“帮我提交”“推分支”“创建 PR”“从 review 到 merge 串起来”等场景。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chinasilva/peter-commit-opsWhat 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
- "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."
- "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?"
- "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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chinasilva-peter-commit-ops": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, external-api
Related Skills
ai-task-hub
AI task hub for image analysis, background removal, speech-to-text, text-to-speech, markdown conversion, and points queries. Default host path is connector-first and result-first; async poll/presentation remain compatibility or asset-delivery follow-up surfaces.
peter-bugfix-loop
代码缺陷修复闭环。聚焦“先复现、再定位、最小修复、同上下文补测试”,并衔接现有 Peter 门禁与 PR 收口流程。
peter-code-review
提交前质量闸门。快速完成本地测试、静态检查和风险审查,判断“是否可提交”。
peter-ci-gate
CI 绿灯门禁。负责远端检查状态、失败定位、单次重跑策略,并输出“是否可合并”。
skill-hub-gateway
Unified gateway skill for async execute/poll, portal user closure, and telemetry feedback workflows.