1.2 KiB
1.2 KiB
Commit Message Standards
Format
type(scope): description
Types (priority order)
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Formatting (no logic change)refactor: Restructure without behavior changetest: Testschore: Maintenance, deps, configperf: Performancebuild: Build systemci: CI/CD
Rules
- <72 characters
- Present tense, imperative ("add" not "added")
- No period at end
- Scope optional but recommended
- Focus on WHAT, not HOW
- Only use
feat,fix, orperfprefixes for files in.claudedirectory (do not usedocs).
NEVER Include AI Attribution
- ❌ "Generated with Claude"
- ❌ "Co-Authored-By: Claude"
- ❌ Any AI reference
Good Examples
feat(auth): add login validationfix(api): resolve query timeoutdocs(readme): update install guiderefactor(utils): simplify date logic
Bad Examples
- ❌
Updated files(not descriptive) - ❌
feat(auth): added login using bcrypt with salt(too long, describes HOW) - ❌
Fix bug(not specific)
Special Cases
.opencode/skill updates:perf(skill): improve token efficiency.opencode/new skills:feat(skill): add database-optimizer