token-saver
Skill0 starsChanged 2 months agoMITView on GitHub
Cuts input-token burn: search before read, line ranges, diff-first, batched calls, no re-reads, terse output. Use when a session burns context, reads feel wasteful, or a task spans many files/logs/shell output.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- DanielNoamTuby/token-savertheir own version, first seen Nov 22, 2026
- yossifrenkel79/claude-skillstheir own version, first seen Nov 16, 2026
- swap-cameroon/kuro-antigravity-configtheir own version, first seen Nov 15, 2026
- cyberspezie/Token-Savertheir own version, first seen Nov 1, 2026
- taro1037-design/claude-skillstheir own version, first seen Oct 20, 2026
- chidekina/aria-superpowerstheir own version, first seen Oct 13, 2026
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- lokikill123/codex-token-skills★ 119same name
- 4pixeltechBR/token_saver_ClaudeCode★ 14same name
- 4pixeltechBR/Token-Saver★ 14same name
- SiruGao/token-saver★ 9same name
- otnc/skills_ai-agent-saving-tech★ 6same name
- caiolocateli46-cell/skills-caio★ 4same name
- chidekina/aria-superpowers★ 2same name
- DanielNoamTuby/token-saver★ 2same name
- OpenWorkai/claude-token-saver★ 2same name
- otnc/agent-skills★ 2same name
16 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 repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentkit-auditSkill
- chart-designSkill
- context-budgetSkill
- context-compressorSkill
- daily-standupSkill
- data-architectSkill
- data-eng-routerSkill
- data-quality-standardsSkill
- data-storytellingSkill
- debug-loopSkill
- doc-standardsSkill
- ext-archifySkill
- ext-awsSkill
- ext-azureSkill
- ext-cli-opsSkill
- ext-codegraphSkill
- ext-databricksSkill
- ext-diagramsSkill
- ext-gap-discoverySkill
- ext-gcpSkill
- ext-hallmarkSkill
- ext-meta-museSkill
- ext-reaSkill
- ext-security-auditSkill
- ext-seoSkill
- ext-slidesSkill
- ext-systems-designSkill
- ext-ui-uxSkill
- frontend-motion-3dSkill
- genai-engineeringSkill
- humanizerSkill
- mcp-security-reviewSkill
- meeting-to-actionsSkill
- memorySkill
- memory-syncSkill
- ml-lifecycleSkill
- orchestrateSkill
- pipeline-scaffoldSkill
- prompt-enhancerSkill
- pr-reviewSkill
- session-insightsSkill
- setup-guardianSkill
- skill-forgeSkill
- smart-navigatorSkill
- spec-writerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Size before you read: Run scripts/estimate.py on candidate files.
- Very specific: line 29
Search before read: Never full-file-read to *find* something.
- Very specific: line 46
Diff-first: Before reading both versions of a changed file, run git diff --stat then git diff -- <file>.
- Very specific: line 72
Measure the session, not just the read: Run scripts/session_audit.py to see real spend from Claude Code transcripts.
- Distinctive: line 86
One read, one purpose: If you're reading to find X, stop at X.
- Distinctive: line 87
Don't finish the file "in case".
“Common” is measured: kept by at least 6 in 10 of the 21 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 Saver
Input tokens are spent mostly on reads, not writes. This skill makes
reads surgical: locate first, read only what you need, never read the
same bytes twice, and keep outputs small. See
reference/patterns.md for before/after command examples and
scripts/estimate.py to size a file before you touch it.
Procedure
Size before you read. Run
scripts/estimate.pyon candidate files. It reports lines/bytes/estimated tokens and a read strategy:python3 scripts/estimate.py src/app.py logs/server.log --budget 8000Pass
--jsonfor machine-readable output. With--budget, it warns when a full read would blow the budget. Default heuristic: tokens ≈ chars/4.Search before read. Never full-file-read to find something. Locate with
rg, then read only the matched ranges:rg -n "def handle_submit" src/ sed -n '120,160p' src/app.py # read only the match windowFor unknown codebases, start with structure, not content:
rg -n "^class |^def |^function "beats reading three files.- Head/tail + targeted ranges. For logs:
head/tail(errors live at the end, schemas at the start). For code: read imports and signatures first (sed -n '1,40p'), then bodies only where needed. When a read tool supports offset/limit, use it — never open a >400-line file whole. - Diff-first. Before reading both versions of a changed file,
run
git diff --statthengit diff -- <file>. The diff is the relevant content; reading the pre-image separately doubles cost. Batch independent calls. Independent reads/searches go in one block. Never do sequential round-trips for things that don't depend on each other:
# bad: three round-trips read A -> read B -> read C # good: one block { read A; read B; read C; }- Don't re-read. Record conclusions and
path:linerefs in session notes, not file contents. Re-read the narrow range only after an edit. If a long output must be referenced again, save it to/tmpandgrepthe file instead of re-running the command. - Compact outputs. Request terse output from tools
(
--quiet,--format=short,jqto select fields,| head -n). Produce terse responses: short confirmations, no echo of tool output back to the user, no redundant summaries of what you just did. - Measure the session, not just the read. Run
scripts/session_audit.pyto see real spend from Claude Code transcripts. Long sessions re-read their whole context every turn — in practice a handful of 300+ turn sessions hold nearly all cache-read tokens./clearbetween unrelated tasks; split long work into subagents.
Rules
- Locate, then read. A grep that costs 50 tokens beats a read that costs 5,000. No exceptions for "just checking".
- Budget before bulk. Any read estimated >25% of remaining context gets a strategy change (range, grep, or summary), not a bigger read.
- One read, one purpose. If you're reading to find X, stop at X. Don't finish the file "in case".
- Logs are tail-first.
tail -n 100before anything else;wc -ldecides if the middle matters. - Output diet in responses. Terse by default: confirm actions in one line, show only deltas, link files instead of pasting them.
Token economy
One-off need? Skip the skill: python3 scripts/estimate.py --budget <n> <files>. Jump to the one matching section of reference/patterns.md. This skill is the canonical read/search/output reference other skills point at.
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.

