/token-efficiency:token-efficiencyfrom token-efficiency
Explains where input tokens go (95%+ cache reads) and ranks cost-reduction levers by impact: one-task-per-session, proactive compacting, subagent offloading, bulk avoidance, cache discipline.
Ships in token-efficiency. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Where the tokens actually go, measured from real Claude Code transcripts on a ~$400/day account: fresh input is negligible (a few thousand tokens per session), output is ~2% of the bill. 95%+ of input is cache reads — the entire conversation context re-sent on every single API call. One 3,744-message session burned 771M cache-read tokens at an average context of ~330k per call.
The bill is: (avg context size) × (number of API calls). Every rule below attacks one of those two factors.
in per out is the good direction, and long sessions are what inflate in.One task, one session. Context cost is superlinear in session length: a session twice as long has more calls AND a bigger context per call. /clear when the task changes. Resuming a 2,000-message session to ask one question re-sends hundreds of k of dead context per turn.
Compact early, not at the ceiling. A high context pin with auto-compact near the top means marathons cruise at 300k+/call. If a session must run long, /compact proactively at natural checkpoints (after a deploy, after a merge) while context is still ~100k, instead of letting it ride to the threshold.
Push tool-heavy loops into subagents. Grep sweeps, test-fix iterations, log spelunking: every tool call in the main loop is another full-context API round. A subagent does those rounds at its own small context and returns one summary. 50 tool calls × 300k main-loop context vs 50 × 90k agent context is the difference.
Keep bulk out of context. Big command outputs, file dumps, transcripts → write to a scratchpad file and read back only the slice needed. Never paste a 5k-line log into chat; never re-read a file already in context.
Don't bust the cache. Fully-uncached input costs ~10x a cache read. Cache-busters: switching models mid-session, editing always-on hooks/CLAUDE.md mid-day (invalidates every session's prefix), models with no prompt caching (keep those sessions short). Slow first-token on every turn is the tell; start a fresh session.
Delegate execution down-ladder. The fable skill already says it: the expensive model plans and judges, cheaper models type. A cheaper model burning the same cache reads costs proportionally less. Marathons especially should not run on the priciest model end to end.
Report $, not input tokens. Input token totals are dominated by cache reads and mostly measure session length, not work. The levers, in order of impact: session length, per-call context size, model tier, output volume.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub noahdunnagan/cafe --plugin token-efficiency