/token-efficiency-coach:coach [optional/path/to/session.jsonl]from Token-Efficiency Coach
Run the token-efficiency coach on a Claude Code session transcript: find wasted tokens (uncached context, bloat, oversized tool output, redundant reads, wrong-tier spend) and report the fixes with dollar estimates. Use when a session felt expensive/slow or the user wants to cut token spend.
Ships in Token-Efficiency Coach. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reads a Claude Code session transcript and coaches the user on token waste — the observable inefficiencies (uncached context, context bloat, oversized tool output, failed tool calls, output-heavy turns, wrong-tier routing, redundant reads) — with a per-finding fix and a dollar estimate. It flags waste; it never grades work quality or scores a person. The analyzer runs locally and reads only your own session log, so no prompt leaves your machine.
The report below is generated at command time by the shared engine (scripts/analyze.py),
which auto-finds the latest session for this project when no path is given, or analyzes
the path you pass as an argument.
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/analyze.py" $ARGUMENTS
scripts/statusline.py (live $cost · ctx tokens · cache-hit% · ⚠),
but a plugin cannot register a statusLine itself — it must go in the user's
~/.claude/settings.json pointing at a stable copy of the script. If they say yes,
walk them through the README's "Wire up the statusline" steps (copy the script to a
stable path, add the statusLine block, accept the trust dialog).If the report says no waste patterns tripped, congratulate the user on a clean session and skip the fix offer (the statusline offer may still apply).
scripts/analyze.py (the single engine). This command
adds zero analysis logic — it only injects the engine's output and relays it.scripts/patterns.json; prices in
scripts/prices.json. Edit those, not this file, to tune behavior.${CLAUDE_PLUGIN_ROOT} is substituted in skill content for plugin skills, so the
engine path above resolves to the installed plugin's scripts/analyze.py.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jimmynycu/token-efficiency --plugin token-efficiency-coachOther plugins' skills for the same job