token-optimizer
Skill0 starsChanged 58 days agoMITView on GitHub
Minimizes LLM token consumption and context bloat by enforcing codebase-first documentation lookups, targeted symbol searches, and surgical file slice viewing. Use on every coding and research task.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- tingyulu/MyR2D2their own version, first seen Oct 1, 2026
- simtransforma/HAOS-CC-Modeltheir own version, first seen Sep 23, 2026
- TeqfocusAdmin/ClaudeSkillsRepotheir own version, first seen Sep 22, 2026
- aayushostwal/nexustheir own version, first seen Aug 10, 2026
- vatevstoil/claude-self-learning-ostheir own version, first seen Jul 4, 2026
- GPire/claude-skills-swarmtheir own version, first seen Jun 30, 2026
Used with
Projects with it also use skill-creator.
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.
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 5 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- alexgreensh/token-optimizer★ 2.5ksame name
- georgekhananaev/claude-skills-vault★ 28same name
- aayushostwal/nexus★ 19same name
- tingyulu/MyR2D2★ 18same name
- GPire/claude-skills-swarm★ 8same name
- samibajwaisking/Token-Optimizer-Skill★ 6same name
- amunozdev/token-optimizer★ 4same name
- vatevstoil/claude-self-learning-os★ 4same name
- liogogogo/claude-code-enhancement★ 2same name
- vikneshwaran16032005-alt/claude-skills★ 2same name
3 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 repository5 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- ci-cd-automationSkill
- codebase-bootstrapSkill
- code-hygiene-auditorSkill
- iphone-duo-migratorSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
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 14
Before listing whole directories or grepping across hundreds of files, check if AGENTS.md or ARCHITECTURE.md exists in the repository root.
- Very specific: line 15
Read the directory taxonomy in ARCHITECTURE.md to pinpoint the exact 1–2 files that contain the relevant logic.
- Distinctive: line 18
Never load entire 500+ line files into context when checking a specific function or struct.
- Very specific: line 19
Use targeted range reads (StartLine and EndLine) or grep for specific symbol signatures.
- Distinctive: line 26
Run the project's fast test command (specified in AGENTS.md) rather than generating dozens of exploratory speculative code variations.
“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
Token Optimizer Skill
This skill teaches AI agents how to maximize reasoning quality while slashing token consumption by up to 80%.
Core Principles
- Manifest-First Traversal:
- Before listing whole directories or grepping across hundreds of files, check if
AGENTS.mdorARCHITECTURE.mdexists in the repository root. - Read the directory taxonomy in
ARCHITECTURE.mdto pinpoint the exact 1–2 files that contain the relevant logic.
- Before listing whole directories or grepping across hundreds of files, check if
- Surgical Slice Reading:
- Never load entire 500+ line files into context when checking a specific function or struct.
- Use targeted range reads (
StartLineandEndLine) or grep for specific symbol signatures.
- Incremental Patching:
- Make precise diff edits rather than regenerating whole source files.
- Preserves token budget for multi-step reasoning and deep verification.
- Verify Locally, Don't Guess:
- Run the project's fast test command (specified in
AGENTS.md) rather than generating dozens of exploratory speculative code variations.
- Run the project's fast test command (specified in
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.

