lean-code
Skill1 starsChanged 14 days agoMITView on GitHub
Smallest correct change for any code edit; only what was asked.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- RMATI-11861/Claude-Skillstheir own version, first seen Nov 16, 2026
- leejianrong/claude-skillstheir own version, first seen Nov 16, 2026
- dublyo/saas-skillstheir own version, first seen Nov 15, 2026
- linsaftw/lean-agentstheir own version, first seen Nov 1, 2026
- AnastasiyaW/codex-claude-code-configtheir own version, first seen Oct 30, 2026
- Lean-LLM/lean-agentstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- AnastasiyaW/claude-code-config★ 218same name
- AnastasiyaW/codex-claude-code-config★ 218same name
- Lean-LLM/lean-agents★ 76same name
- linsaftw/lean-agents★ 76same name
- dublyo/saas-skills★ 14same name
- definite-d/agent-skills★ 2same name
- timfewi/unix-agent-skills★ 2same name
- malkiii/lean-code-skill★ 1same name
- sammasak/claude-code-skills★ 1same name
- sammasak/skills★ 1same name
2 more not listed
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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compactSkill
- learn-correctionsSkill
- mapSkill
- reuse-firstSkill
- safe-refactorSkill
- self-checkSkill
- setupSkill
- split-fileSkill
- terseSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run the reuse-first skill before creating any file, function or dependency.
- Distinctive: line 20
Use what the language, standard library and existing project code already give you.
- Distinctive: line 21
No new options, settings, abstractions, layers, wrappers or "future-proofing" unless the request needs them.
- Distinctive: line 23
Don't reformat, rename or tidy code you weren't asked to touch.
- Distinctive: line 27
Look at your diff. For each added block ask: does the request need it?
- Very specific: line 29
If you replaced or removed code, run python scripts/find_unused.py <folder> and delete what your change left unused (Python projects.
- Very specific: line 32
Run the self-check skill.
“Common” is measured: kept by at least 6 in 10 of the 10 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
lean-code
Fewer lines are cheaper to write, read, review and fix. The goal is the same behaviour in less code, never clever or cramped code.
Before writing
- Restate the request in one line. Anything not in that line is out of scope. Unsure whether something is wanted? Ask; don't build it "just in case".
- Find before you read:
CODEMAP.md, then theexploreragent, then a targeted search. Read only the line ranges you need, not whole files. - Run the
reuse-firstskill before creating any file, function or dependency.
While writing
- Change the fewest files and lines that fully solve the request.
- Use what the language, standard library and existing project code already give you.
- No new options, settings, abstractions, layers, wrappers or "future-proofing" unless the request needs them.
- Don't reformat, rename or tidy code you weren't asked to touch. Keep existing comments.
- Readable beats short: no one-letter names, no packed one-liners, no removed error handling.
Before you say done
- Look at your diff. For each added block ask: does the request need it? Delete it if not.
- Could an existing helper replace any new code? Use it.
- If you replaced or removed code, run
python scripts/find_unused.py <folder>and delete what your change left unused (Python projects; check each candidate first). If the script is missing (installed before 1.6.1), skip this step;/mainseat:setupadds it. - Run the
self-checkskill. - Report in one line: files changed, lines added and removed.
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.

