yagni
Skill5 starsChanged 20 days agoMITView on GitHub
Keep design and code simple, and communicate clearly in documents, comments, messages and diagrams.
We split this skill into the rules it gives an agent
24 rules. 0 are common, 22 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
22
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Follow the established patterns and conventions.
- Distinctive: line 16
If an item is really a product decision, flag it and give it back to the human.
- Distinctive: line 22
Write the minimum code that solves the problem.
- Distinctive: line 23
Add no features that the request does not include.
- Distinctive: line 24
Add no flexibility or configurability that the human did not request.
- Distinctive: line 25
If you write 200 lines and 50 lines are sufficient, rewrite it.
- Distinctive: line 26
Ask: "Would a senior engineer say this is overcomplicated?" If yes, simplify it.
- Distinctive: line 28
Do not improve adjacent code, comments or formatting.
- Distinctive: line 29
Prefer code that explains itself.
- Distinctive: line 30
If your changes make imports, variables or functions unused, remove them.
- Distinctive: line 35
Write in plain language, with Chicago Manual of Style mechanics.
- Distinctive: line 36
Use simple, precise words.
- Distinctive: line 37
Use the fewest words that keep the meaning and the accuracy.
- Distinctive: line 38
Use simple, correct formatting:
- Distinctive: line 40
Use lists for steps and options.
- Very specific: line 41
Use code for names, paths and commands.
- Distinctive: line 42
Use bold only for a small number of key words.
- Distinctive: line 43
Do not nest lists more than two levels.
- Very specific: line 44
Write each link as short text that names the target.
- Distinctive: line 51
Put the main point or the request in the first line.
- Distinctive: line 53
Ensure the message is not one flat blob of ugly text.
- Distinctive: line 54
Write about one topic in each message.
- Distinctive: line 55
Use lists. Do not use headings or tables.
- Distinctive: line 56
Use a diagram only if it is 60 columns wide or less.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/yagni
Obey these rules for the remainder of this session.
Design
- Do not overdesign.
- Review at the codebase and product level for global consistency, integrity and optimization.
- Review against the repository conventions. Where they apply, use Clean Architecture, YAGNI, DRY, SOLID and dependency-flow rules.
- Follow the established patterns and conventions. If a design is more elegant, more DRY/SOLID, has better performance or is more secure, and the change is justified, suggest it. The human makes the final decision on each design change.
- If an item is really a product decision, flag it and give it back to the human.
Also see the agentic-loops meta-design.
Code
- Write the minimum code that solves the problem. Write nothing speculative.
- Add no features that the request does not include. Add no abstractions for code that has only one use.
- Add no flexibility or configurability that the human did not request. Add no error handling for scenarios that cannot occur.
- If you write 200 lines and 50 lines are sufficient, rewrite it.
- Ask: "Would a senior engineer say this is overcomplicated?" If yes, simplify it.
- Change only what is necessary. Clean up only the problems that your changes cause.
- Do not improve adjacent code, comments or formatting. Do not refactor code that is not broken. Use the existing style.
- Prefer code that explains itself. Keep necessary comments short.
- If your changes make imports, variables or functions unused, remove them. If you see unrelated dead code, tell the human. Do not remove it unless the human asks.
- Each changed line must connect directly to the request.
Writing
- Write in plain language, with Chicago Manual of Style mechanics.
- Use simple, precise words. Do not use em-dashes. Do not try to sound smart. Do not use complex management or executive language.
- Use the fewest words that keep the meaning and the accuracy.
- Use simple, correct formatting:
- Keep paragraphs short.
- Use lists for steps and options.
- Use
codefor names, paths and commands. - Use bold only for a small number of key words.
- Do not nest lists more than two levels.
- Write each link as short text that names the target. Use an HTML
<a>element or a Markdown link, for example[PR #123](url),[WI 4567](url)or[design.md](url). Do not write a bare URL. - For diagrams, follow the diagram rules.
Teams chats
The Writing rules also apply.
- Put the main point or the request in the first line.
- Pay attention to formatting
- Ensure the message is not one flat blob of ugly text.
- Write about one topic in each message. For details, link to a document.
- Use lists. Do not use headings or tables.
- Use a diagram only if it is 60 columns wide or less. If it is wider, link to it.
- @mention a person only if that person must do an action.
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- JordanCoin/codingskills★ 10same name
- Akindu23/my-agent-skills★ 4same name
- alexderz/agentic-toolbox★ 3same name
- oleg494/coding-kit★ 3same name
- augments-labs/sdlc-skills★ 1same name
- spizganed/skills★ 1same 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- broSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

