Git Commit with Conventional Commits for Openclaw

A specialized skill for AI agents to analyze code diffs and generate standardized, semantic Git commits following the Conventional Commits specification.

wangchencheng
v1.0.0
Mar 28, 2026
0
894
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-commit-tool

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-commit-tool 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 with Conventional Commits?

The Git Commit skill empowers AI coding agents to handle the entire version control lifecycle with precision. By integrating this capability into Openclaw Skills, agents can intelligently stage files, analyze the nature of changes, and craft high-quality commit messages that adhere to the Conventional Commits standard.

This skill is particularly optimized for multilingual development environments, defaulting to Simplified Chinese for commit descriptions. It ensures every change is properly categorized by type—such as feat, fix, or refactor—maintaining a clean and searchable project history.

Git Commit with Conventional Commits Use Cases

  • Automatically generating standardized commit messages after a coding task.
  • Structuring logical file staging to separate distinct features or bug fixes.
  • Enhancing project transparency by tracking AI-generated code percentages via custom footers.
  • Ensuring team-wide compliance with the Conventional Commits specification without manual effort.

How Git Commit with Conventional Commits Works

  1. Diff Analysis: The agent examines the current working tree or staged changes using git diff to understand the technical impact.
  2. Intelligent Staging: If no files are staged, the agent uses git add to group logical changes while strictly avoiding sensitive files like .env.
  3. Metadata Extraction: The agent determines the appropriate commit type, scope, and semantic description based on the code analysis.
  4. Message Generation: A commit message is constructed in Simplified Chinese, including an AI-GEN footer detailing the model used and lines of code contributed.
  5. Execution: The agent executes the git commit command following strict safety protocols to ensure repository integrity.

Git Commit with Conventional Commits Setup

To enable this skill within your Openclaw Skills environment, ensure your agent has access to the Bash tool. No additional global configuration is required, as the skill operates directly through the standard Git CLI.

# Verify git is installed in the agent's environment
git --version

# The agent will use standard git commands to manage the lifecycle
git status --porcelain

Git Commit with Conventional Commits Data Schema & Taxonomy

The skill follows a strict semantic structure for all generated commit metadata:

Component Format / Requirement
Header <type>[optional scope]: <description>
Language Simplified Chinese (简体中文)
Length Description must be under 72 characters
AI-GEN Footer AI-GEN: <percentage>% / <lines>行 <model-name>
Safety No destructive commands (--force) or secret commits

All commits generated via Openclaw Skills are compatible with standard Git log parsers and CI/CD changelog generators.

Git Commit with Conventional Commits Advanced Features

  • Semantic Analysis: Deep diff inspection to distinguish between a refactor and a feat automatically.
  • AI Contribution Tracking: Automatic calculation and reporting of AI-generated code volume in every commit footer.
  • Interactive Staging Support: Capability to use pattern-based staging or interactive modes for complex change sets.
  • Breaking Change Detection: Automatic inclusion of the ! modifier or BREAKING CHANGE footer for API-altering updates.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*