Git Commit Helper for Openclaw

An AI-powered utility for generating standardized git commit messages following the Conventional Commits specification.

0xtresser
v1.0.0
Mar 5, 2026
0
842
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-cmt-helper

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 git-cmt-helper 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 Helper?

The Git Commit Helper is a specialized tool designed to bring consistency and professionalism to your version control history. By utilizing this within your suite of Openclaw Skills, you can automate the creation of commit messages that strictly adhere to the Conventional Commits format, including specific type prefixes, scope definitions, and imperative subject lines. This ensures that your repository remains readable and compatible with automated changelog generators.

Beyond simple formatting, the skill acts as an intelligent assistant that understands project-specific modules and structures. It helps maintain team conventions by enforcing rules for message length and documentation for breaking changes. Whether you are working on a small project or a large-scale enterprise application, this skill streamlines the process of documenting code changes without sacrificing quality.

Git Commit Helper Use Cases

  • Generating professional commit messages during the code review and staging process.
  • Enforcing team-wide standards for commit types like feat, fix, and refactor.
  • Documenting breaking changes and migration paths in a structured footer format.
  • Automatically identifying the correct module scope based on modified file paths.

How Git Commit Helper Works

  1. The AI agent detects a request to commit code or write a commit message.
  2. The skill analyzes the current diff and identifies the nature of the changes to select the appropriate type.
  3. It cross-references the modified files with the project's module list to determine the correct scope.
  4. A message is drafted in the imperative mood, ensuring the subject line is under 72 characters and lowercase.
  5. If necessary, it generates a body explaining the rationale behind the change and adds any required breaking change footers.
  6. The final structured message is provided to the user for confirmation.

Git Commit Helper Setup

To get started with this skill, add it to your agent's active configuration. Ensure you have a reference file for your project modules to allow for accurate scope detection.

# Install the skill to your local environment
openclaw install git-commit-helper

Create a file at references/modules.md containing a list of your project's valid module names to enable strict scope validation.

Git Commit Helper Data Schema & Taxonomy

The skill organizes commit data based on the following taxonomy:

Field Description Constraints
type The nature of the change Must be: feat, fix, docs, refactor, test, or chore
scope The specific module affected Must match entries in references/modules.md
subject A brief summary of the change Imperative mood, max 72 chars, no trailing period
body Detailed explanation Wrapped at 72 characters, explains the 'why'
footer Meta-information Used for BREAKING CHANGE or issue references

Git Commit Helper Advanced Features

  • Intelligent scope mapping that suggests the correct module based on top-level directory changes.
  • Strict validation logic to prevent the use of vague or non-existent scopes like 'misc'.
  • Automated formatting for breaking changes to support semantic versioning workflows.
  • Seamless integration with other Openclaw Skills for end-to-end task automation and documentation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*