Git Commit Message Generator for Openclaw

An intelligent automation tool that converts code diffs and change descriptions into standardized, professional Git commit messages.

gnllk
v1.0.0
Mar 30, 2026
0
667
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install commit-message-generator

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 commit-message-generator 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 Message Generator?

The Git Commit Message Generator is designed to solve the common developer headache of writing clear, consistent, and standardized commit messages. By utilizing specific logic and scripts, it analyzes your code changes to produce messages that strictly follow the Conventional Commits specification. This utility is a perfect addition to your Openclaw Skills library, ensuring that your project history remains clean, searchable, and ready for automated changelog generation.

Whether you are working solo or in a large team, this skill removes the guesswork from version control. It intelligently identifies the type of change—such as features, bug fixes, or documentation updates—and extracts the relevant scope from your file structure to create a perfectly formatted message every time.

Git Commit Message Generator Use Cases

  • Generating standardized commit messages after completing code modifications.
  • Maintaining team compliance with the Conventional Commits industry standard.
  • Automatically linking commits to specific Issue or task tracking numbers.
  • Crafting professional commit messages from complex git diff outputs when the specific type is unclear.

How Git Commit Message Generator Works

  1. The user provides input via a text description, a pasted git diff, or a list of modified files.
  2. The system invokes an internal analysis script to categorize the change into types like feat, fix, or refactor.
  3. The tool automatically identifies the scope by analyzing file paths (e.g., src/auth/ becomes the auth scope).
  4. A structured message is generated including a subject line under 50 characters and a detailed body explanation.
  5. The finalized message is output for the user to copy directly into their git commit command or GUI tool.

Git Commit Message Generator Setup

To integrate this functionality into your environment for Openclaw Skills, ensure Python is installed and the core script is accessible. You can trigger the generator using the following CLI command:

# Run the generator script with your change description
scripts/generate_commit_message.py "added new user authentication logic and fixed login bug"

Git Commit Message Generator Data Schema & Taxonomy

The skill organizes commit data into a hierarchical taxonomy based on the following structure:

Field Format Purpose
Type feat, fix, docs, etc. Categorizes the nature of the change
Scope (optional_context) Identifies the specific module or component affected
Subject < 50 characters A brief, present-tense summary of the change
Body < 72 chars per line Detailed explanation of the logic and motivation
Footer Closes #IssueID Metadata for issue tracking and breaking changes

Git Commit Message Generator Advanced Features

  • Direct analysis of git diff outputs to minimize manual typing.
  • Automated mapping of file paths to project scopes for improved accuracy.
  • Support for BREAKING CHANGE flags to highlight critical API modifications.
  • Integration with project management tools through automated issue footer generation.
  • Customizable templates to align with specific team or project Openclaw Skills requirements.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*