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
- Before committing, verify
./gradlew detektpasses (the PostToolUse hook catches issues per-file, but run full project detekt before commit as final check) - Before committing, run both test suites:
cd android && ./gradlew testDebugUnitTest— unit tests (JVM)cd android && ./gradlew connectedIsolatedAndroidTest— instrumented tests (emulator)- If no emulator is running, warn the user and ask to start one before committing
- NEVER skip instrumented tests — unit tests alone miss Compose UI and device-level regressions
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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.