optimize
Skill71 starsChanged 3 days agoMITView on GitHub
Look at token metrics, propose setting changes that cut waste, and apply the ones the person approves.
77 other projects use a version of this.
Adopted by
Most recently taken up by
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tooltheir own version, first seen Nov 8, 2026
- Mrbaeksang/skillstheir own version, first seen Nov 8, 2026
- cihantopac/searvextheir own version, first seen Nov 8, 2026
- daintreehq/daintreetheir own version, first seen Nov 5, 2026
- theexperiencecompany/gaiatheir own version, first seen Nov 3, 2026
Used with
Projects with it also use arrange, teach-impeccable and 10 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.
HK-hubSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.
Also in 14 projects that use this
HK-hubSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 17 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 19 projects that use this
open-coder-aiSkillpolicy-init
Create conformant Chock policy from request. args(request, target_path,
Also in 3 projects that use this
- +8 more from HK-hub
Other versions77 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 77
- Z3Prover/z3★ 13ksame name
- highcharts/highcharts★ 13ksame name
- whitecircle/halo★ 851same name
- hacan359/tonkatsu_box★ 597same name
- talesofai/cohub★ 585same name
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tool★ 432same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- Southclaws/storyden★ 348same name
- 10xChengTu/Mux0★ 337same name
67 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- applySkill
- auditSkill
- dashboardSkill
- sessionsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 74 edited versions we read keep these.
1
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 11
Before recommending a setting you are not sure of, read its page in Claude Code's current docs: every page is Markdown at …
- Very specific: line 21
Measure: Call metrics (session context, rate limits, cost, the largest context categories, daily totals, audit findings).
- Very specific: line 23
See what can change: Call settings (every setting tokendoctor may change, set or not, with its current value and whether a change applies …
- Distinctive: line 49
Ask: Use AskUserQuestion (multiSelect) to let the person pick which changes to apply.
- Very specific: line 56
Never change hooks, permissions or anything outside the settings list.
“Common” is measured: kept by at least 6 in 10 of the 74 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
Tune this Claude Code setup for token use. Focus on $ARGUMENTS if given.
Before recommending a setting you are not sure of, read its page in Claude Code's current docs:
every page is Markdown at https://code.claude.com/docs/en/<page>.md (index:
https://code.claude.com/docs/llms.txt; settings in settings-reference.md, variables in
env-vars.md, costs in costs.md, caching in prompt-caching.md). The release changes often, so
prefer that to memory or a mirror.
The tokendoctor tools wait behind ToolSearch: load mcp__tokendoctor__metrics,
mcp__tokendoctor__settings, mcp__tokendoctor__config_list, mcp__tokendoctor__config_set and
mcp__tokendoctor__set_setting in one ToolSearch call first.
- Measure. Call
metrics(session context, rate limits, cost, the largest context categories, daily totals, audit findings). For the longer view runtokendoctor-sessions --json --days 30. - See what can change. Call
settings(every setting tokendoctor may change, set or not, with its current value and whether a change applies live) andconfig_list(the /config rows). - Propose. Pick at most five changes, largest saving first. For each give: the setting, the
current and new value, the evidence from step 1 in one sentence, the trade-off, and whether it
applies now or at the next session. Costs are dollars at API list prices, which on a plan are not
what the plan's limits count: speak in shares first. Do not propose a change the numbers do not support.
The window.
autoCompactWindowsets where Claude Code compacts (for example 400000 on a 1M model). Propose a smaller one when much of the cost is spent with a large context (thelate-compactionfinding, a highcompactAt): every request re-reads the whole context, so a smaller window is a direct saving, at the price of compacting more often. The slide.tokendoctor.slide: truemakes those compactions elide old tool outputs into short pointers instead of summarizing: no summary pause, and every prompt, answer and decision stays word for word. It is not a saving: measured on 60-file runs it costs the same as a summary (within 2% on Haiku 5.5 and Sonnet 5.5), and a recall test found no detail the summary lost. Offer it only as a separate choice, to someone who says summaries lose what they need, and say that a model may now and then read an elided file again. If the audit hasslide-blocked-by-guard, the slide will not run on this login untiltokendoctor-org-installis run (onesudocommand): say so before turning it on. How tools are used. Theusagepart oftokendoctor-sessions --jsonshows which tools fill the context, Bash calls that only printed a file, the files read most and how large subagent runs grow. Judge from it yourself.bashOutputMaxCharscaps one Bash output; with the slide on, a file printed through Bash that was read or changed again later is the first thing dropped. What a setting cannot fix (how subagents are briefed and sized, what they report back), propose as a few lines for the project's memory or CLAUDE.md and show them; the person writes them, or asks you to. Leavetokendoctor.slideToat its default (25) unless the person asks: a higher one slides more often, and every slide re-sends the context once. - Ask. Use AskUserQuestion (multiSelect) to let the person pick which changes to apply.
- Apply each picked change with
config_set(a /config row, live) orset_setting(a settings file, with a backup). Each call asks the person again; a refusal is final for that change. - Report what changed, what needs a new session (
model,effortLeveland everyenv.*value), and suggest runningtokendoctor-sessions --by dayin a few days to compare. Say that/tokendoctorshows these settings and/tokendoctor <name> <value>changes one with no model call.
Never change hooks, permissions or anything outside the settings list. Never write files with
other tools.
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.

