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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/token-efficiency-coach:coach [optional/path/to/session.jsonl][optional/path/to/session.jsonl]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reads a Claude Code session transcript and coaches the user on **token waste** — the
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.npx claudepluginhub jimmynycu/token-efficiency --plugin token-efficiency-coachProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.