Prompt file imported from ZanderCowboy/multichoice (
.cursor/commands/commit.md). Copyright stays with the author.
Commit Command
Create multiple small, logical commits. Never one large commit mixing unrelated changes.
Exclusions
Never commit: .cursor/plans/*.plan.md, debug-log-*.md, secrets, .env.
Grouping (most specific path wins)
| Layer | Paths | Message prefix |
|---|---|---|
| Platform | apps/multichoice/android/**, ios/** |
feat: (android|ios) - |
| Models | packages/models/** |
feat: (models) - |
| Core | packages/core/** (bloc, repo, service) |
feat: (<feature>) - or fix: (<feature>) - |
| App UI | apps/multichoice/lib/** |
feat: (<area>) - or refactor: (<area>) - |
| Tests | **/*_test.dart, **/mocks.mocks.dart |
test: (<scope>) - |
| Chore | pubspec.yaml, melos.yaml, Makefile, *.yaml |
chore: |
Process
git status— review all changes.- For each group with changes:
git add <files>, commit with conventional message from actual diff. - Do not push unless asked.
- Summary:
git log --oneline -N.
Use type: (scope) - description — feat, fix, refactor, test, chore.
