Group changed files into logical commits by what they changed. Each commit uses a conventional prefix:
bug:— bug fixesfeature:— new featurestest:— test-only changeschore:— maintenance, refactoring, dependencies
Workflow
- Run
git statusandgit diff --statto identify all changed files - Group related changes (e.g., all files for one feature together)
- For each group:
- Stage files:
git add <file1> <file2> - Review staged diff:
git diff --staged --stat - Commit:
git commit -m "feature: add calendar sync endpoint"
- Stage files:
- Keep subject lines under 72 characters; add detail in the commit body if needed
Examples
bug: fix nil pointer in envelope thread lookup
feature: add Drive file search to gogcli skill
test: add e2e tests for calendar event creation
chore: update Go dependencies