Draft Commit Message — Git skill for Claude Code
Analyze the staged and unstaged changes, then output a single conventional commit message line.
How to install Draft Commit Message
Installs to ~/.claude/commands/www-zaq-ai-zaq-draft-commit-message.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/www-zaq-ai/zaq/HEAD/.claude/commands/draft-commit-message.md -o ~/.claude/commands/www-zaq-ai-zaq-draft-commit-message.md Restart Claude Code, or start a new session, for it to be picked up.
What Draft Commit Message does
Analyze the staged and unstaged changes, then output a single conventional commit message line.
Steps
- Run
git diff --cached --statto see staged files and change counts. - Run
git diff --statto see unstaged changes (for context, not included in commit). - Run
git diff --cachedto read the actual diff content. - Determine type from the diff:
feat— new behavior, new module, new endpoint, new fieldfix— bug fix, incorrect logic correctedrefactor— restr
Alternatives in Git
- Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
- Commit Msg — 生成 Git Commit Message 1k ★
- Impact Git — Analyze git branch changes and impact 512 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Detailed Commit
Create a detailed commit message for all staged and unstaged changes.
Msg
Suggest a commit message for the current staged changes. Do not commit. Do not stage. Do not run any git write
Commit Message
Generate a conventional commit message from staged changes
Gen Commit Message
Use when user has staged changes and asks for a commit message, says "what should the commit message be", or t
Check Staged
Inspect the staged changes for correctness, logic integrity, and impact relative to the last commit. Stash uns
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
Close Commit Composer
Compose a session-close git commit message from a staged-changes summary passed by the /close orchestrator. Re
Commit Message Writer
Writes a single Conventional Commits-formatted commit message (subject + body) for one already-decided group o