Git Commit Message Generator for Openclaw

An intelligent utility that analyzes staged Git changes to generate perfectly formatted conventional commit messages automatically.

michaelatamuk
v1.0.0
Apr 30, 2026
0
723
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install git-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 git-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 a specialized tool designed to eliminate the mental friction of documenting code changes. By integrating with Openclaw Skills, it reads your staged git diff and interprets the intent behind your code to produce messages that adhere strictly to the Conventional Commits specification. This ensures your project history remains professional, readable, and ready for automated tooling.

Beyond simple text generation, this skill understands the nuances of software development. It can distinguish between a feature and a refactor, identify the specific architectural scope of a change, and even flag breaking changes that require major version bumps. It transforms a tedious manual task into a seamless part of the development workflow, fostering better collaboration and clearer version history.

Git Commit Message Generator Use Cases

  • Staging changes with git add and needing an immediate, accurate description of the work.
  • Maintaining a clean, machine-readable git history for automated changelog generation.
  • Ensuring team-wide consistency in commit formatting without manual enforcement.
  • Highlighting breaking changes in the API or public exports automatically.
  • Documenting complex refactors where the impact spans multiple modules or components.

How Git Commit Message Generator Works

  1. The skill executes a git diff --staged command to retrieve the exact lines of code modified.
  2. It analyzes file paths and patterns to determine the primary area of impact (e.g., src/components/ vs docs/).
  3. An intelligent detection logic assigns a change type such as feat, fix, docs, or refactor based on the content of the diff.
  4. It extracts a specific scope by looking at directory structures and component names.
  5. The generator checks for breaking changes, such as altered function signatures or removed exports.
  6. A final message is constructed using the conventional format, including a subject line, optional body, and footer.
  7. The output is validated for length and imperative mood to meet industry best practices.

Git Commit Message Generator Setup

To get started with this skill, ensure you have git installed on your system and follow these steps within your Openclaw Skills environment:

# Navigate to your git repository
cd your-project-repo

# Stage your changes as usual
git add .

# Invoke the skill via your AI agent
"Generate a commit message for my staged changes"

Git Commit Message Generator Data Schema & Taxonomy

The skill organizes data based on the Git internal state and the Conventional Commits taxonomy:

Attribute Description Example
Type The nature of the change feat, fix, chore, build
Scope The specific module or file area (ui), (auth), (api)
Subject A concise summary in imperative mood add validation to login form
Body Detailed explanation of the "why" Explains the logic changes
Footers Meta-information like breaking changes BREAKING CHANGE: ...

Git Commit Message Generator Advanced Features

  • Breaking Change Detection: Automatically appends a ! to the type/scope or adds a BREAKING CHANGE footer when API-breaking edits are detected.
  • Issue Tracker Integration: Automatically parses branch names (like feature/PROJ-123) to include "Closes PROJ-123" in the commit footer.
  • Monorepo Support: Intelligently identifies workspace packages to suggest accurate scopes for multi-package repositories.
  • Co-author Support: Easily add attribution by asking the skill to include specific co-authors in the generated message.
  • Custom Style Adaptation: Supports switching between standard Conventional Commits, Angular style, or Gitmoji formats upon request.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*