Git workflow, code quality, context management and testing commands: - commit, push, pr, issue - git operations - simplify, refactor, verify, check - code quality - catchup, onboard, save, cleanup - context management - test, format, sync - development utilities Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.0 KiB
2.0 KiB
Commit Message Template
Format
<type>(<scope>): <description>
[optional body]
[optional footer]
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Types
| Type | Description | Emoji |
|---|---|---|
feat |
New feature | n/a |
fix |
Bug fix | n/a |
docs |
Documentation only | n/a |
style |
Formatting, missing semicolons | n/a |
refactor |
Code change that neither fixes a bug nor adds a feature | n/a |
perf |
Performance improvement | n/a |
test |
Adding missing tests | n/a |
chore |
Maintenance tasks | n/a |
ci |
CI configuration | n/a |
build |
Build system or dependencies | n/a |
revert |
Reverts a previous commit | n/a |
Scope
The scope is optional and should be the affected area:
auth- Authenticationapi- API routesui- User interfacedb- Databaseconfig- Configuration- etc.
Description Rules
- Use imperative mood: "add" not "added" or "adds"
- Lowercase first letter
- No period at the end
- Max 50 characters
Body Rules
- Separated from subject by a blank line
- Explain "why" not "what"
- Wrap at 72 characters
Footer Rules
Used for:
BREAKING CHANGE: description- Breaking changesCloses #123- Issue referencesRefs #456- Related issues
Examples
Simple fix
fix(auth): resolve token refresh race condition
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Feature with body
feat(api): add user preferences endpoint
Allows users to save and retrieve their app preferences.
Includes validation for preference keys and values.
Closes #42
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Breaking change
refactor(api)!: change response format for /users endpoint
BREAKING CHANGE: The /users endpoint now returns an object with
a `data` array instead of a direct array.
Before: [{ id: 1 }, { id: 2 }]
After: { data: [{ id: 1 }, { id: 2 }], meta: { total: 2 } }
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>