commit-message-generator
从git差异生成清晰简洁的提交消息。在编写提交消息、审查暂存更改或格式化git历史时使用。
📖 中文导读:从git差异生成清晰简洁的提交消息。在编写提交消息、审查暂存更改或格式化git历史时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Commit Message Generator description: Generate clear, concise commit messages from git diffs. Use when writing commit messages, reviewing staged changes, or formatting git history.
Commit Message Generator
Instructions
Run
git diff --stagedto view staged changesReview the diff and identify:
- What changed
- Why it changed
- Any breaking changes or important side effects
Generate a commit message that follows these conventions:
- Summary (max 50 characters): Start with a verb (Add, Fix, Update, Remove, Refactor, etc.)
- Blank line (always)
- Body (wrapped at 72 characters): Explain what and why, not how
- Footer (optional): Reference issues with "Fixes #123" or "Refs #456"
Best Practices
- Use present tense: "Add feature" not "Added feature"
- Be specific and descriptive
- Explain the reasoning behind changes
- Keep summary concise for readability
- Break related changes into separate commits
- Use emoji sparingly (only if team convention)
Example
Add support for Skills in Claude provider
Previously, the plugin collection only supported linking commands. Now that
Claude Code includes Skills, we need to support linking both
commands and skills from the canonical source.
The implementation adds:
- Skills directory structure (plugins/skills/)
- Skill-specific provider configuration
- Dedicated skills linking module
- Support for both project and global skills
Fixes #42
Tips
- Use
git diff --cachedto see what will be committed - Reference related issues or tickets in the footer
- If your commit message needs explanation, the change might be too complex
- Consider atomic commits: one logical change per commit