commit-message-generator
当用户要求"生成提交消息"、"编写提交消息"、"创建git提交",或提到分析暂存的更改以进行提交时,应使用此技能。
📖 中文导读:当用户要求"生成提交消息"、"编写提交消息"、"创建git提交",或提到分析暂存的更改以进行提交时,应使用此技能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: commit-message-generator description: This skill should be used when the user asks to "generate commit message", "write commit message", "create git commit", or mentions analyzing staged changes for commits. version: 1.0.0
Commit Message Generator
Generate clear, descriptive commit messages from git diffs.
Workflow
- Run
git diff --stagedto see changes - Analyze the modifications
- Generate commit message with:
- Summary under 50 characters
- Detailed description
- Affected components
Message Format
type(scope): brief description
Detailed explanation of changes.
- Change 1
- Change 2
Types
| Type | Description |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting |
| refactor | Code restructuring |
| test | Adding tests |
| chore | Maintenance |
Best Practices
- Use present tense ("Add feature" not "Added feature")
- Explain what and why, not how
- Reference issues when applicable