Git Commit PR Workflow for Openclaw

A comprehensive git automation skill that handles everything from staging changes to opening and updating pull requests with detailed test plans.

wimi321
v1.0.0
Apr 2, 2026
0
640
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install claude-code-git-commit-pr-workflow

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 claude-code-git-commit-pr-workflow 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 Git Commit PR Workflow?

The Git Commit PR Workflow is a robust automation tool designed for AI coding agents to handle the entire lifecycle of code delivery. It bridges the gap between local development and collaborative code reviews by managing branch creation, staging files, and generating structured PR documentation based on code diffs. By integrating this into Openclaw Skills, developers can ensure consistency in commit messages and pull request quality without manual overhead.

Git Commit PR Workflow Use Cases

  • Finalizing a feature by pushing code and opening a pull request automatically.
  • Migrating local changes to a new feature branch when accidentally working on the default branch.
  • Updating existing pull requests with new commits and refreshed summaries.
  • Generating professional PR descriptions with bulleted summaries and test plans for team review.

How Git Commit PR Workflow Works

  1. Analyze the current git state, including untracked changes and the difference between the local work and the default branch.
  2. Identify the current branch and automatically create a new feature branch if the agent is currently on a protected default branch.
  3. Stage the relevant modified files and commit them with a contextually appropriate message.
  4. Securely push the branch to the remote repository while adhering to safety guardrails.
  5. Create a new Pull Request or update an existing one, populating it with a concise title, change summary, and a verifiable test plan.

Git Commit PR Workflow Setup

To enable this workflow, ensure your AI agent environment has git CLI access and valid remote credentials. Add this to your Openclaw Skills configuration:

# Ensure git is initialized and a remote origin exists
git remote -v

# The skill leverages the source command found in
# src/commands/commit-push-pr.ts

Git Commit PR Workflow Data Schema & Taxonomy

The skill interacts with standard git objects and repository metadata to maintain a clean history:

Data Component Description
Branch Name Dynamically generated or user-specified feature branch.
Commit Message Structured summary of staged changes following best practices.
PR Body Markdown-formatted text containing bullets and a test plan.
Guardrails Pre-defined rules preventing force pushes to default branches.

Git Commit PR Workflow Advanced Features

  • Automatic detection of default branches (e.g., main, master) to prevent accidental direct commits.
  • Dynamic PR summary generation that parses code diffs to explain the logic behind changes.
  • Support for updating existing Pull Requests instead of creating duplicates.
  • Integrated test plan generation based on the specific files modified within the commit.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*