lean
Skill2 starsChanged 15 days agoMITView on GitHub
Token-lean mode. Use when the user says lean, save tokens, cheap mode, low token, hitting limits, or asks to get max result for min tokens. Also audits setup overhead.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- yugasun/aiopstheir own version, first seen Nov 29, 2026
- civillizard/claude-lean-skilltheir own version, first seen Nov 27, 2026
- kapadias/nonnatheir own version, first seen Nov 12, 2026
- varelaia/claude-skills-publictheir own version, first seen Oct 26, 2026
- FareedKhan-dev/lean-agenttheir own version, first seen Oct 13, 2026
- mattbutlerengineering/skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use ship, tdd and 1 more.
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.
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- utk2103/Prompt-Studio★ 8same name
- naticorrea-03/claude-code-skills★ 4same name
- ousid/lean★ 4same name
- yugasun/aiops★ 4same name
- civillizard/claude-lean-skill★ 3same name
- CrystalPlatforms/ADM-CLI★ 1same name
- FareedKhan-dev/lean-agent★ 1same name
- mattbutlerengineering/skills★ 1same name
- Co4an/claude-auto★ 0same name
- kapadias/nonna★ 0same name
1 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 repository27 other files it gives its agents.
- bash-checkpointSkill
- brave-cdpSkill
- cf-backupSkill
- cf-pages-deploySkill
- claude-md-doctorSkill
- claude-safety-auditSkill
- claude-sandboxSkill
- claude-token-auditSkill
- cws-extension-checkSkill
- env-doctorSkill
- event-recap-videoSkill
- freelance-proposalSkill
- gif-makerSkill
- itch-html5-packageSkill
- link-preview-checkSkill
- mcp-auditSkill
- package-guardSkill
- promo-videoSkill
- pwa-checkSkill
- read-guardSkill
- readme-upgradeSkill
- release-notesSkill
- secret-commit-guardSkill
- session-handoffSkill
- site-qaSkill
- thumbnail-makerSkill
- visual-diffSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
6
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 12
Never re-read a file you already read or just edited.
- Very specific: line 13
Use output_mode: "files_with_matches" or head_limit on Grep before asking for content.
- Distinctive: line 14
Don't open lockfiles, build output, minified, generated or vendored files.
- Very specific: line 18
Never dump logs, JSON blobs or ls -R.
- Distinctive: line 23
Don't spawn agents for things doable in 1–3 tool calls.
- Distinctive: line 27
No narration between tool calls.
- Distinctive: line 33
If the task is ambiguous in a way that would waste a lot of work, ask one short question instead of guessing.
- Distinctive: line 41
When asked to check the setup, or the user keeps hitting limits, run:
“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 mode
Goal: same quality result, fewest tokens. Context is re-sent every turn, so every byte you pull in is paid for again and again. Follow these rules for the rest of the session.
Reading
- Grep/Glob first, then Read only the file you need, with
offset/limitaround the hit. Never Read a whole large file to find one function. - Never re-read a file you already read or just edited. Edit fails loudly if it didn't apply.
- Use
output_mode: "files_with_matches"orhead_limiton Grep before asking for content. - Don't open lockfiles, build output, minified, generated or vendored files.
Commands
- Cap output:
| tail -n 40,| head -n 40,grep -m 20,--quiet,-q,--silent. Tests: show failures only (pytest -q --tb=short,npm test 2>&1 | tail -n 40). - Never dump logs, JSON blobs or
ls -R. Filter with grep/jq/python first, print only what matters. - Chain related shell steps into one call; run independent tool calls in parallel in one message.
Delegation
- Broad search over many files: one
Exploreagent withmodel: "haiku", ask for a conclusion of under 150 words. Don't also search yourself. - Don't spawn agents for things doable in 1–3 tool calls. Never fan out multiple agents unless the work is truly parallel.
Writing
- Edit with small, exact
old_stringhunks. Never rewrite a whole file to change a few lines. - No narration between tool calls. No restating the plan or the user's request.
- Final answer: result first, short. Bullets over paragraphs. Show code only when it's new for the user. No summary of what you just did unless asked.
Thinking
- Act as soon as there's enough info. Don't re-derive facts already in the conversation.
- Pick one approach and go; don't survey options.
- If the task is ambiguous in a way that would waste a lot of work, ask one short question instead of guessing.
Tell the user (once, briefly) when it helps
- Switching to unrelated work →
/clear(free) beats/compact(costs a full read). - Simple task on Opus →
/model sonnetor/effort low. - Session idle a long time → cache is cold; a fresh
/clear+ short brief is cheaper than continuing.
Setup audit
When asked to check the setup, or the user keeps hitting limits, run:
python scripts/lean_check.py [project_dir](Run from this skill's folder; needs Python 3.8+, no packages.) It prints the fixed per-session overhead (model, CLAUDE.md, MEMORY.md, MCP servers, plugins, skill descriptions, prompt hooks) with fixes. Show the user its output and offer to apply the fixes. Never edit settings without approval. For a deep log analysis, use the claude-token-audit skill if installed.
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.

