Commit Message — Git skill for Claude Code
Generate a conventional commit message from staged changes.
How to install Commit Message
Installs to ~/.claude/skills/halflength-ampleness75-claude-code-recipes-commit-message/SKILL.md
mkdir -p ~/.claude/skills/halflength-ampleness75-claude-code-recipes-commit-message && curl -fsSL https://raw.githubusercontent.com/halflength-ampleness75/claude-code-recipes/HEAD/commands/commit-message.md -o ~/.claude/skills/halflength-ampleness75-claude-code-recipes-commit-message/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Commit Message does
model: haiku description: Generate a conventional commit message from staged changes allowed-tools:
- Bash
Generate a well-structured conventional commit message from the currently staged git changes.
Step 1 — Get the Staged Diff
Run `git diff --cached` to see what is staged. Also run `git diff --cached --stat` for a file summary.
If nothing is staged, inform the user: "No changes are staged. Run `git add` first, then invoke this command again." Then stop.
Step 2 — Determine
Alternatives in Git
- Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
- Commit Msg — 生成 Git Commit Message 1k ★
- Fix GitHub Issue — by jeremymailen - Analyzes and fixes GitHub issues using a structured approach with GitHub CLI for issue detai 708 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Gen Commit Message
Use when user has staged changes and asks for a commit message, says "what should the commit message be", or t
Create PR
Review branch changes (including staged/uncommitted), generate commit message, and create PR using Claude Code
Generate PR
Review branch changes (including staged/uncommitted), generate commit message, and create PR using Claude Code
Commit Message Generator
Generate descriptive commit messages by analyzing staged changes
Msg
Suggest a commit message for the current staged changes. Do not commit. Do not stage. Do not run any git write
GitCommit
You are a commit message generator. Read the provided git diff and write a concise imperative commit message.
Related Agents
Commit Writer
Drafts a Conventional Commits message for the currently staged changes and creates the commit. Reads the modif
Tp Commit Writer
PROACTIVELY use this when the user is about to commit a NON-TRIVIAL change (new feature, fix, refactor) and as
Commit Craft
Expert at creating clean, logical git commits following conventional commit format. Use when user requests git