
commit-message-generator
This skill should be used when the user asks to "generate commit message", "write commit message", "
提供方 rafaelcalleja|开源
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