Peter Commit Ops for Openclaw

An automated bridge that transforms local code changes into standardized commits and pull requests.

chinasilva
v1.1.0
Mar 3, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install peter-commit-ops

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install peter-commit-ops using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Peter Commit Ops?

Peter Commit Ops is a specialized automation skill designed to handle the tedious aspects of the version control lifecycle. By integrating directly into the development environment, it ensures that every code change is properly vetted, staged atomically, and pushed to the remote repository following industry best practices. As part of the Openclaw Skills ecosystem, it bridges the gap between manual coding and formal code reviews by automating the transition from local modifications to active pull requests.

This skill is particularly valuable for maintainers who want to enforce consistent commit messages and branching strategies across a team. It acts as a reliable intermediary, ensuring that no code reaches the PR stage without meeting predefined quality gates. By leveraging Openclaw Skills, developers can focus on writing code while the agent handles the complexities of Git operations and GitHub integration.

Peter Commit Ops Use Cases

  • Automating the commit and push process when finishing a feature or bug fix.
  • Transitioning from a successful code review session to a formal Pull Request.
  • Creating feature branches automatically when working on protected branches like main.
  • Ensuring commit messages follow conventional formats like feat, fix, or chore.
  • Integrating local changes into CI/CD pipelines via automated PR creation and status reporting.

How Peter Commit Ops Works

  1. Pre-check Verification: The skill checks the current git status and branch to ensure there are committable changes and that previous review gates have passed.
  2. Branch Management: It identifies the current branch; if on a protected branch like main or master, it automatically creates and switches to a new feature branch.
  3. Atomic Staging: Files related to the current task are staged individually to avoid including unrelated changes in a single commit.
  4. Standardized Committing: It generates a conventional commit message and executes the commit after running optional repository-defined workflow checks.
  5. Remote Synchronization: The branch is pushed to the origin, and a pull request is created using the GitHub CLI or a manual comparison link.
  6. Handover: The skill outputs a detailed report including the commit SHA, branch name, and PR URL for the next stage of the workflow.

Peter Commit Ops Setup

Ensure you have Git and the GitHub CLI (gh) installed in your environment. To initialize the repository for this skill, you can use the following commands:

# Verify git and gh installation
git --version
gh --version

# Optional: Define a workflow check script in your package.json
# "workflow:check": "npm run lint && npm test"

Simply add the Peter Commit Ops skill to your Openclaw Skills configuration to begin automating your PR lifecycle.

Peter Commit Ops Data Schema & Taxonomy

The skill tracks its operations through the following metadata and output parameters:

Attribute Description
Commit SHA The unique identifier for the generated git commit.
Branch Name The source branch where the changes were pushed.
PR URL The direct link to the created or updated Pull Request on GitHub.
Risk Status A flag indicating if the commit was marked as high risk during review.
Next Step Recommendations for the next skill, such as peter-ci-gate or peter-pr-ops.

Peter Commit Ops Advanced Features

  • Multi-agent Handover: Seamlessly passes state to other Openclaw Skills for full CI/CD automation.
  • High-Risk Labeling: Explicitly flags risky commits in the PR description to alert reviewers and trigger manual gates.
  • Custom Workflow Hooks: Automatically triggers local scripts like workflow-check.sh before finalizing a commit to ensure code quality.
  • Atomic Staging Logic: Intelligent file selection that ignores workspace clutter and focuses strictly on task-specific edits.
  • Fail-Safe Protections: Built-in guards to prevent accidental pushes to production-protected branches and blocks commits if reviews have failed.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*