// Create git commits with succinct technical messages. Activates when user requests git commit creation.
| name | git-commit |
| description | Create git commits with succinct technical messages. Activates when user requests git commit creation. |
Create clean, technical git commit messages in logical units. Analyze changes and group related modifications into separate commits.
git status and git diff to analyze all changesChange types:
Coupling boundaries:
Examples:
✅ Good grouping:
Commit 1: Add null check to user validation (src/validation/user.ts)
Commit 2: Update UserForm to use new validation (src/forms/UserForm.tsx, src/forms/UserForm.test.ts)
Commit 3: Document validation rules (docs/api/validation.md)
❌ Bad grouping:
Commit 1: Update validation and fix tests and add docs (mixes 3 types, unclear scope)
Circular dependencies: If fix A requires refactor B, create minimal commits preserving buildability: refactor first, then fix.
Focus on WHAT changed in the code:
Avoid progress/milestone language:
Single logical unit: All changes tightly coupled → one commit
Mixed changes in one file: Use git add -p to stage hunks separately
Too many units (>6): Present grouping plan, ask user to confirm or merge