lean-changes
Skill0 starsChanged 23 days agoMITView on GitHub
Make the AI coding agent prefer the smallest change that solves the request. Delete before adding, skip speculative abstractions, and keep the diff tight. Use when the user asks for a small fix, says the agent is over-engineering, or wants a senior-style change rather than a rewrite.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-rate-limitingSkill
- database-access-rulesSkill
- launch-polishSkill
- secure-api-endpointSkill
- stripe-webhook-setupSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Restate the request in one sentence: If it is unclear, ask one question, then stop expanding the scope.
- Distinctive: line 25
Show the diff and wait for yes: before applying.
- Distinctive: line 34
No drive-by refactors, mass renames or library swaps.
- Distinctive: line 35
Do not delete tests or logging "to keep the diff small".
- Distinctive: line 36
If the small fix would hide a security issue, say so and include the safe version instead.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lean changes
The best patch is the one a lazy senior would be willing to review: small, obvious, and done.
When to use
- The user asked for a focused fix and the obvious path is a two-file change.
- A previous AI edit added helpers, layers or refactors that were not requested.
- The user says the diff is too big or the agent is over-engineering.
Steps
- Restate the request in one sentence. If it is unclear, ask one question, then stop expanding the scope.
- Search for an existing helper or pattern in the repo before adding a new file.
- Propose the smallest diff that satisfies the sentence. Call out anything you are deliberately not doing (renames, new folders, extra features).
- Show the diff and wait for yes before applying.
- Do not "clean up" adjacent files unless the user asked.
Output format
One-sentence restatement, the file list, the diff, and a "not in this change" list.
Safety rules (always)
- No drive-by refactors, mass renames or library swaps.
- Do not delete tests or logging "to keep the diff small".
- If the small fix would hide a security issue, say so and include the safe version instead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

