AGENT SKILL
commit-drafter
Automatically draft commit messages by analyzing git status and staged changes
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 67
- Forks
- 24
01 前言 Front Matter
- name
- commit-drafter
- author
- abereyes
- version
- 1.0.0
- triggers
- [ "draft a commit", "draft commit", "create commit message", "write commit message", "suggest commit message", "generate commit message" ]
- description
- Automatically draft commit messages by analyzing git status and staged changes
02 资源文件 2
- 脚本drafter.py10.1 KB
- 参考文档skill-report.json7.9 KB
03 SKILL.md 正文
Commit Message Drafter
Automatically generates commit messages by analyzing your staged changes.
What It Does
- Analyzes git status and staged changes
- Extracts full diff content with statistics
- Provides structured context to Claude (the AI)
- Claude writes a meaningful commit message based on actual changes
Usage
Just say:
- "draft a commit for me to review"
- "create a commit message"
- "suggest a commit message"
The skill will automatically:
- Check git status
- Extract file changes and statistics
- Get the full diff content
- Present context to Claude
- Claude analyzes the changes and writes a clear, descriptive commit message
- Return it for your review
How It Works
Unlike template-based commit tools that just output placeholders, this skill provides real git context to Claude (the AI), who then writes a meaningful commit message based on understanding the actual code changes.
The script outputs:
- Files changed (added, modified, deleted, renamed)
- Change statistics (+insertions, -deletions)
- Full diff content showing exact changes
- Instructions for Claude to write the commit
Claude then reads this context and writes a commit message that actually describes what changed and why.
Value
No more staring at git diff trying to write a commit message. No more useless templates with [TODO] placeholders. Claude reads your changes, understands them, and drafts a meaningful message automatically.