www-zaq-ai

Draft Commit Message — Git skill for Claude Code

Git community

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

Terminal
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

  1. Run git diff --cached --stat to see staged files and change counts.
  2. Run git diff --stat to see unstaged changes (for context, not included in commit).
  3. Run git diff --cached to read the actual diff content.
  4. Determine type from the diff:
    • feat — new behavior, new module, new endpoint, new field
    • fix — bug fix, incorrect logic corrected
    • refactor — 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 Repository