Context
- •Current git status: !
git status - •Current git diff (staged and unstaged changes): !
git diff HEAD -- - •Recent commits: !
git log --oneline -5
Instructions
- •Check the git status and changes.
- •Analyze the changes and draft a commit message following Conventional Commits format:
- •Types: feat, fix, refactor, test, docs, chore, style, perf, ci, build
- •Format:
<type>(<scope>): <description> - •Keep the first line under 72 characters
- •Add a blank line and body if more context is needed
- •Create the commit with the message (
git commit -a -m "...")
Commit Message Format
code
<type>(<scope>): <short description> <optional body explaining the "why" not the "what">
Examples
- •
feat(auth): add refresh token rotation - •
fix(sync): handle network timeout during push - •
refactor(db): extract repository pattern for cards - •
test(api): add integration tests for deck endpoints