token-efficiency
Skill1 starsChanged 5 months agoMITView on GitHub
This skill should be used when the user asks to "save tokens", "reduce cost", "be token efficient", "token diet", "optimize context", "keep it lean", "minimize tokens", or when starting long sessions on large codebases where context and cost efficiency matter.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- prangishviliAbe/agent-skillstheir own version, first seen Sep 26, 2026
- HHU3637kr/skillstheir own version, first seen Sep 22, 2026
- denfry/claude-skillstheir own version, first seen Jul 22, 2026
- Biznomad/claude-skillstheir own version, first seen Jul 14, 2026
- ChrisLamDev/hermes-core-skillstheir own version, first seen Jun 30, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- rohitg00/pro-workflow★ 2.9ksame name
- HHU3637kr/skills★ 145same name
- ChrisLamDev/hermes-core-skills★ 11same name
- prangishviliAbe/agent-skills★ 7same name
- denfry/claude-skills★ 3same name
- d3labs-thomas/claude-code★ 2same name
- vikast908/agent-repo-card★ 1same name
- Biznomad/claude-skills★ 0same name
- Naimul-islam-bd/token-efficiency★ 0same 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 repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
10
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 18
Never read a whole file when a targeted read works.
- Distinctive: line 19
Never re-read a file already in context unless it changed.
- Very specific: line 20
Prefer Glob/Grep over find, grep -r, or exploratory ls chains.
- Very specific: line 21
Use terse command flags by default: git status --porcelain -b, git log --oneline -15, git diff --stat (then targeted diffs), ls -1, pytest …
- Distinctive: line 24
When context grows stale or bloated, recommend compacting early — before quality degrades, not after.
- Distinctive: line 28
Before writing any code, climb this ladder and stop at the first rung that works:
- Distinctive: line 31
Does it already exist in the codebase?: Search first. Reuse or extend the existing function/pattern.
- Distinctive: line 33
Can it be one line, or a few?: Write the least code that solves the stated problem — no speculative parameters, no "flexibility" nobody …
- Distinctive: line 34
Only then write new code — and make it small.
- Distinctive: line 40
No preamble, no recap, no "Great question", no restating the task.
- Distinctive: line 42
Do not narrate tool calls or explain each step.
- Distinctive: line 43
No summaries of what was just done when the diff/file speaks for itself — one sentence max.
“Common” is measured: kept by at least 6 in 10 of the 9 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
Token Efficiency
Operate in maximum token efficiency mode. Every token read, written, or spoken must earn its place. Three pillars, applied in this order: read less, write less, say less.
Pillar 1: Read Less (context hygiene)
- Never read a whole file when a targeted read works. Use Grep to locate, then Read with offset/limit on the matching region.
- Never re-read a file already in context unless it changed. Trust what was read.
- Prefer Glob/Grep over
find,grep -r, or exploratorylschains. - Use terse command flags by default:
git status --porcelain -b,git log --oneline -15,git diff --stat(then targeted diffs),ls -1,pytest -q. - Pipe potentially long output through filters:
| head -50,| grep <pattern>,| tail -20. Never dump raw logs, full test output, or dependency trees into context. - For broad exploration ("where is X handled?"), delegate to the
scoutsubagent so search noise stays out of the main context; only the conclusion returns. - When context grows stale or bloated, recommend compacting early — before quality degrades, not after.
Pillar 2: Write Less (minimal-code decision ladder)
Before writing any code, climb this ladder and stop at the first rung that works:
- Does this need to exist at all? Question the requirement. Sometimes deleting code or config is the fix.
- Does it already exist in the codebase? Search first. Reuse or extend the existing function/pattern.
- Does the standard library or a native platform feature cover it? No new dependency, no new abstraction.
- Can it be one line, or a few? Write the least code that solves the stated problem — no speculative parameters, no "flexibility" nobody asked for, no wrapper classes around single functions.
- Only then write new code — and make it small.
Corollaries: no dead code "for later", no duplicated logic, no boilerplate comments, no restating types in docstrings. Fewer lines means fewer output tokens now and less context to re-read later.
Pillar 3: Say Less (terse output)
- No preamble, no recap, no "Great question", no restating the task.
- Answer first. Detail only if asked.
- Do not narrate tool calls or explain each step. Show the result.
- No summaries of what was just done when the diff/file speaks for itself — one sentence max.
- Match answer length to question weight: one-line question, one-line answer.
Escalation and routing
- Route grunt work (log scans, file summaries, repo-wide searches) to the
scoutsubagent — it runs on a cheaper model and returns only conclusions. - Reserve the most capable model for architecture and hard multi-file debugging.
- Vague tasks burn tokens exploring. If the task is ambiguous enough to force a repo-wide hunt, ask one precise clarifying question instead — a question costs less than a wrong exploration.
For rationale, measured savings, and extended patterns, read references/playbook.md.
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.

