Create atomic git commits for the current changes.
Rules
- •Each commit = one logical change (one feature, one fix, one refactor)
- •Do NOT mix conceptually different changes in a single commit
- •If there are unrelated changes staged, split them into separate commits
- •Commit message style: imperative mood, concise first line (< 72 chars)
- •Always end with
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> - •Do NOT push unless the user explicitly asks
Steps
- •Run
git statusandgit diffto see all changes - •Group changes by logical unit (feature, fix, refactor, docs, etc.)
- •For each group:
a. Stage only the files belonging to that group (
git add <specific files>) b. Write a clear commit message describing the why, not the what c. Commit - •Verify with
git log --onelinethat the history reads cleanly