minimal-code
Skill2 starsChanged 29 days agoMITView on GitHub
Minimal-code guard the SessionStart hook points at when PREFERENCES minimal_code is on. Load before writing or changing any code: it decides how little code is enough and what must never be cut. Not user-invoked and not a procedure skill.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- dewil/ai-toolkittheir own version, first seen Aug 25, 2026
- dewil/claude-toolkittheir own version, first seen Aug 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- dewil/ai-toolkit★ 9same name
- dewil/claude-toolkit★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- check-consistencySkill
- adopt-brownfieldSkill
- atomic-designSkill
- code-reviewSkill
- deutschland-stack-apiSkill
- document-releaseSkill
- european-alternatives-apiSkill
- finish-branchSkill
- grillSkill
- handoff-sessionSkill
- init-projectSkill
- office-hoursSkill
- oss-projectSkill
- plan-ceo-reviewSkill
- plan-eng-reviewSkill
- plan-milestoneSkill
- plan-taskSkill
- quick-taskSkill
- reassess-roadmapSkill
- reconcileSkill
- resume-sessionSkill
- retroSkill
- shipSkill
- slice-milestoneSkill
- software-craftsmanshipSkill
- spawn-milestone-teamSkill
- summarize-taskSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-ytstackSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before you write or change code, climb the ladder and stop at the first rung that holds:
- Distinctive: line 23
Never cut, whatever rung you land on:
- Very specific: line 31
When you take a deliberate shortcut, mark it in code with a comment starting shortcut: and the reason.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Minimal code
Before you write or change code, climb the ladder and stop at the first rung that holds:
- Needed at all? Nobody asked for it, a deletion or a config flag solves it, or the test already passes: write nothing.
- Already in the codebase? Grep before you write. Reuse, do not duplicate.
- Standard library? The runtime ships it: use that.
- Existing dependency? A library already in the lockfile does it: use that; add no new dependency for one call site.
- One line? A single clear expression beats a helper for one caller.
- Otherwise: the minimum that makes the failing test pass. No options nobody asked for, no abstraction for one caller, no "while I'm here" cleanups, no speculative error paths for impossible states.
Never cut, whatever rung you land on:
- input validation at trust boundaries (user input, network, files)
- authentication and permission checks
- error handling at I/O boundaries (the operation can fail; say how)
- accessibility of UI you touch
- the one small test for non-trivial logic (TDD is still RED first)
When you take a deliberate shortcut, mark it in code with a comment starting shortcut: and the reason; ytstack:summarize-task lists these under Follow-ups so debt is visible, not forgotten.
Review question for every diff, in the summary: which rung, and what did you leave out on purpose?
Scope note: this guard shapes implementation choices; it does not override an explicit user request, a locked DECISIONS.md entry, or a plan's ## Files section. Concept adapted from the ponytail project's minimal-code ladder (see NOTICE); prose is ytstack's own.
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.

