Git Commit Formatter for Openclaw

An intelligent utility that transforms git diffs or text descriptions into standardized Conventional Commit messages in seconds.

wipal
v1.0.0
Mar 8, 2026
0
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-commit-formatter

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-formatter 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 Formatter?

Git Commit Formatter is a specialized tool designed to automate the creation of high-quality, standardized commit messages. By adhering strictly to the Conventional Commits v1.0.0 specification, it ensures that your project history remains clean, professional, and easy to navigate. This tool is a core component of the Openclaw Skills ecosystem, helping developers maintain 100% consistency across team-wide version control workflows.

Whether you are dealing with complex code changes or simple documentation updates, this skill analyzes the context of your work to suggest the most appropriate type, scope, and subject line. It eliminates the guesswork and mental fatigue associated with manual formatting, allowing you to focus on the technical implementation while the agent handles the documentation of your progress.

Git Commit Formatter Use Cases

  • Converting raw git diff outputs into formatted commit messages during a rapid development cycle.
  • Standardizing commit history for open-source projects to enable automated changelog generation.
  • Resolving inconsistencies in team commit styles by providing a single source of truth for message structure.
  • Documenting breaking changes and multi-module refactors with clear, imperative-mood descriptions.

How Git Commit Formatter Works

  1. The user provides an input which can be either a raw Git diff output or a manual text description of the changes.
  2. The skill parses the input to extract key information such as modified files, added logic, or deleted lines.
  3. It determines the correct commit type (feat, fix, docs, style, refactor, test, or chore) based on keyword logic and change patterns.
  4. An optional scope is identified if the changes are localized to a specific module or file path in kebab-case.
  5. A concise subject line is generated using the imperative mood, ensuring it remains under the 50-character limit.
  6. For complex changes, a body is constructed with a 72-character line limit to explain the 'why' behind the modification.
  7. The final message is validated against a strict checklist before being presented to the user.

Git Commit Formatter Setup

To integrate this tool into your Openclaw Skills workflow, ensure the skill is active in your workspace configuration.

# Verify the skill is present in your skills directory
ls /data/workspace/skills/git-commit-formatter

# To enable auto-activation without manual prompts, update your whitelist
nano /data/workspace/whitelist.yml

Add git-commit-formatter to the skills_allowed_auto_add list within the YAML file to streamline your development process.

Git Commit Formatter Data Schema & Taxonomy

The skill organizes commit metadata based on the following taxonomy to ensure compatibility with standard git parsers:

Component Requirement Validation Rules
Type Mandatory Must be one of: feat, fix, docs, style, refactor, test, chore
Scope Optional Must be lowercase and use kebab-case formatting
Subject Mandatory Max 50 characters, imperative mood, no ending period
Body Optional Blank line after subject, max 72 characters per line
Footer Optional Used for BREAKING CHANGE labels or referencing Issue/PR numbers

Git Commit Formatter Advanced Features

  • Intelligent Input Parsing: Automatically distinguishes between Git diff blocks and natural language descriptions.
  • Whitelist Auto-Integration: Supports seamless gateway deployment via the system whitelist for zero-friction setup.
  • Breaking Change Detection: Identifies high-impact modifications and automatically structures the BREAKING CHANGE footer.
  • Multi-Logical Change Handling: Provides recommendations to split oversized commits into multiple logical units for better code review.
  • Terminal-Optimized Formatting: Ensures all generated text adheres to the 72-character width limit for perfect rendering in CLI environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*