Git Commit Template for Openclaw

A standardized framework for creating changelog-ready Git commit messages using structured categories and helper scripts.

ihomway
v1.0.0
Mar 6, 2026
0
814
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-commit-template

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-template 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 Template?

Git Commit Template is a specialized utility designed to bring professional-grade order and readability to your version control history. By implementing a strict yet intuitive categorization system—Added, Changed, Deprecated, Removed, and Fixed—this tool ensures that every change is easily searchable and ready for automated changelog generation.

Whether you are managing a solo project or coordinating a large team, maintaining a clean git history is essential for long-term project health and developer collaboration. This skill provides both a conceptual framework and a Python-based helper script to automate the creation of these structured messages, making it a vital part of your Openclaw Skills toolkit. It simplifies the process of adhering to industry best practices, such as using the imperative mood and respecting character limits.

Git Commit Template Use Cases

  • Standardizing commit messages across distributed development teams.
  • Automating the generation of release notes or project changelogs from git history.
  • Ensuring critical information like breaking changes and issue references are consistently captured.
  • Improving repository auditability by filtering history by specific change types like security fixes or performance improvements.

How Git Commit Template Works

  1. Analyze the changes made to your codebase and stage them using standard git add commands.
  2. Invoke the commit framework either manually or through the provided interactive Python helper script.
  3. Select the appropriate category (Added, Changed, Deprecated, Removed, or Fixed) that identifies the core intent of the change.
  4. Compose a concise title (under 72 characters) and an optional detailed body explaining the reasoning and impact.
  5. Confirm the preview to generate a formatted commit message that is optimized for searchability and automated tooling.

Git Commit Template Setup

To integrate Git Commit Template into your workflow, ensure you have the helper script available in your repository environment:

# Ensure the scripts directory exists
mkdir -p scripts

# Copy the commit helper into your project
cp path/to/skill/scripts/commit.py ./scripts/commit.py

# Use the interactive assistant to create your first standardized commit
python scripts/commit.py

Git Commit Template Data Schema & Taxonomy

The skill enforces a specific structural pattern for every commit to maintain data integrity across the Openclaw Skills ecosystem.

Component Format Description
Category Tag [Type] Must be one of: Added, Changed, Deprecated, Removed, or Fixed.
Subject Line String Max 72 characters, imperative mood, describes 'what' changed.
Body Content String Optional detailed explanation wrapped at 72 characters; describes 'why'.
References String Standardized issue linking (e.g., 'Closes #123') and breaking change flags.

Git Commit Template Advanced Features

  • Interactive Assistant: A guided CLI experience that prevents formatting errors and validates staged files.
  • Regex-Optimized History: Optimized formatting allows for instant history filtering using git log grep commands.
  • Breaking Change Indicators: Dedicated blocks for highlighting backward-incompatible modifications and migration paths.
  • Multi-line Body Support: Capability to include complex implementation notes, security advisories, and bulleted lists.
  • Hook Integration: Full compatibility with standard git hooks like pre-commit and commit-msg for automated validation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*