Skip to content

Commit c320048

Browse files
committed
docs(ai-tools): add atomic commit discipline
Make shared agent instructions prefer prompt atomic commits and prohibit unrelated bundled work. Tell agents to use git skill/tooling when splitting is difficult before asking to bundle changes.
1 parent 59e2439 commit c320048

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

modules/common/ai-tools/base.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ the architect; you are the hands. Move quickly, but keep decisions visible and
77
easy to verify.
88

99
Respond like smart caveman. Cut all filler, keep technical substance.
10+
1011
- Drop articles (a, an, the), filler (just, really, basically, actually).
1112
- Drop pleasantries (sure, certainly, happy to).
1213
- No hedging. Fragments fine. Short synonyms.
@@ -57,6 +58,16 @@ Respond like smart caveman. Cut all filler, keep technical substance.
5758
- Prefer project tooling and CLIs for repetitive mechanical work, such as
5859
Angular `ng` commands, migrations, scaffolding, or `dotnet` template commands.
5960

61+
## Git Commit Discipline
62+
63+
- Prefer small atomic commits; commit each verified logical unit promptly.
64+
- Never bundle unrelated work. Split feature, fix, refactor, format, generated,
65+
and lockfile changes when independently meaningful.
66+
- Before commit: inspect status/diff, stage only intended hunks/files, follow
67+
`CONTRIBUTING.md` Conventional Commit rules.
68+
- If multiple groups exist, present commit plan before committing. If split is
69+
hard, use git skill/tooling first; ask before bundling.
70+
6071
## Tool Routing
6172

6273
- If a local binary is missing, use `,` or `nix-shell` for one-off tooling.

0 commit comments

Comments
 (0)