My coding agent does what I ask. Then it does more than I asked. It renames a function nobody asked it to rename, rewrites a file to fix one line, and writes an interface that looks like every other generated page on the internet. Then I spend the afternoon undoing the extra work.
The problem is not the model. The problem is that the agent has no rules about what "done" means. It guesses. And its guesses lean toward more: more code, more abstraction, more polish nobody requested.
So I wrote the rules down. Twelve of them, each one short enough to fit on a page. Keep changes small. Name things for what they are. Test before you claim something works. Write errors a person can act on. Check security smells before they ship. That kind of thing, each one with the exact behaviour it wants and the mistakes it is meant to stop.
What a rule looks like
The lean-code rule is the one I reach for first. It says: change the smallest amount of code that fixes the problem properly. Not the smallest amount that makes the test pass. The smallest amount that is correct. One change, one reason. A bug fix does not also rename variables or upgrade a dependency. Those are separate commits. And it has the rule of three: two similar blocks of code are fine, three is a pattern worth extracting. No framework for a problem that happened once.
I tried each rule on small demo projects before trusting it. A tiny Python CLI, a static page, a Node script. The before and after pairs are in the pack, done by hand so you can see the shape of the change. One example: the Node script used to die on a missing config file with a raw stack dump. After the error-handling rule, it exits with one plain sentence naming the problem and the fix. Same failure, different experience.
How they install
Each rule is a SKILL.md file. You drop the twelve files into .claude/skills in your project, wire them in with one of the two CLAUDE.md templates that come with the pack, and the agent carries them from then on. The same file layout works for Codex and Cursor, and the playbook walks through all three installs.
Two things I did not do. I did not copy the free skill repos and repackage them. Every file in the pack was written from scratch, from real practice. And I did not claim a live run I never did: there is no Claude Code install on the machine I built this on, so the install was validated structurally and in three demo repos, and the playbook says that plainly.
The full lean-code rule is free, so you can read one before deciding anything: the lean-code skill.
The whole pack is twelve skills, two templates and a 10-page playbook for $19 while it launches: Agent Skills Pack.
The full numbers behind this one are in the Agent Skills Pack. Everything I write here stays free, that part doesn't change. — Salam
More from AheadKit: programming books, packs and AI tools. Each page lists exactly what's inside before you pay.