This gist has been migrated to: https://github.com/nicksteffens/claude-config/blob/main/commands/commit-conventional.md
Please use the repository version for the most up-to-date content.
Gist ID: bc666fda8eeece2f0f700016b18b8199
Gist URL: https://gist.github.com/nicksteffens/bc666fda8eeece2f0f700016b18b8199
Update Command: gh gist edit bc666fda8eeece2f0f700016b18b8199
Guide for creating proper conventional commits following repository standards.
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
[optional co-authored-by]
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
feat(auth): add user invitation validation
fix(ui): resolve accordion font size regression
docs: update README with new setup instructions
refactor(api): simplify user context logic
chore(deps): update @movable/ui to 3.1.2
- Ask user: "Did anyone else help with this work besides you and me?"
- If yes: Check recent commit history with
git log --pretty=format:"%s%n%b" -10
to find existing co-author patterns - Match format from previous commits for consistency
- Add co-authored-by trailer:
Co-authored-by: Name <[email protected]> Co-authored-by: Claude <[email protected]>
- Identify the type of change being made
- Add scope if relevant (component, module, area)
- Write concise description (imperative mood, no period)
- Ask about co-authors and check existing patterns
- Reference tickets in footer if applicable:
Fixes #123
for GitHub issuesRefs SC-12345
for Shortcut stories
git commit -m "<type>(<scope>): <description>
Refs <ticket-reference>
Co-authored-by: Name <[email protected]>
Co-authored-by: Claude <[email protected]>"
Always use imperative mood: "add feature" not "added feature" or "adds feature"