Check that a bulk script actually changed something, not just that it exited cleanly.
The shell didn't split a variable, so a 34-file codemod ran once, rewrote nothing and reported success.

Rule 2.6, from Rules for my AI agents
14 rules, 13 essential
The shell didn't split a variable, so a 34-file codemod ran once, rewrote nothing and reported success.

Two opposite fixes to the same component shipped one day apart. Net result: zero.
A retry loop around a push exited 0 while all three attempts were rejected. A pre-push hook printed that all checks passed while nothing was pushed.
The old fix branch's proposed diff removed 102 files and 30,000 lines.
One PR's title claimed an improvement the main branch already had, while its diff reverted it.
The best 100 are yours now, no email: download them as AGENTS.md. All 527 come by email, as one file you can drop straight into your repo as AGENTS.md or CLAUDE.md, so your agents follow them from the next session. Plus the occasional email when I learn a new one. Free.
One click to unsubscribe.