alexgreensh/token-optimizer/token-coach
Claude Code and agent skill by alexgreensh/token-optimizer
- community
Checking that the SKILL.md file is still in the repository.
Coaches a token-efficient Claude Code or Codex setup from the user's own usage data. Use when planning a build, fixing a slow or costly setup, or deciding which workflow steps need a model.
Install
npx vskill@latest install alexgreensh/token-optimizer/token-coachSKILL.md
The same SKILL.md was published earlier as alexgreensh/token-optimizer/token-coach.
Token Coach
A coaching conversation about where the user's tokens go and what to change, grounded in numbers measured on their machine. The deliverable is a short, prioritised action plan the user agrees with. For a full audit that edits their setup, hand over to token-optimizer. Token Optimizer's own skills (token-optimizer, token-coach, token-dashboard, fleet-auditor, resume-checkpoint) are the measurement layer, so leave them out of every unused-skill, archive or consolidation suggestion, however rarely they run.
1. Collect the data
Run exactly this first. It finds the newest installed copy, so a stale plugin cache never answers. Each Bash call is a fresh shell, so env vars do not persist: the block echoes the resolved values, and every later command must use them verbatim.
Then gather, skipping any command that fails (older installs lack some):
Under Cursor, coach --json does not run (it scans the Claude Code setup); cursor-coach --json is the data source instead. It carries snapshot (sessions analyzed, turns/tool calls/compactions, token provenance counts, the cost block that always reads cursor_no_cost_data), patterns_good/patterns_bad built from real session evidence (hot pre-compaction fill, repeated compactions, recorded tool failures, unknown token footprints), history from the rollup's Cursor rows, questions, and a health_score built from per-session quality scores whose signals_active/signals_omitted say exactly which evidence backed them - plus what the user tells you. What the coach JSON holds: snapshot (current overhead), patterns_good and patterns_bad (named patterns with detail and fix), history (7-day against earlier: quality, session length, cache hit rate, grade spread, cost per session, short against long sessions, compression gap, share of sessions that switched model), deterministic_candidates when present (work the user repeats that a script could do), and usage_recommendations on Claude Code (the daily-measured record: one item each for the compact window and the subagent cache lifetime, plus wins once the user acted on an earlier recommendation and the numbers moved). Field-by-field meaning and the numbers to quote: references/quick-reference.md. Every number you quote comes from these outputs or from the quick reference. When the data is thin or a command returned nothing, say so and coach from what the user tells you; an invented figure costs the user's trust in every real one.
2. Ask what they want
Ask one question and wait for the answer before showing findings:
What's your goal today?a) Building something new and want it token-efficient from the startb) An existing setup feels slow or context fills too fastc) Designing a multi-agent systemd) Quick health checke) Review a workflow or automation: which steps need a model at all
Skip the question when the request already answers it.
3. Load what that goal needs
| Goal | Read | Example to follow | |
|---|---|---|---|
| a, b | references/coach-patterns.md, quick reference | examples/coaching-session-new-project.md (a), examples/coaching-session-heavy-setup.md (b) | |
| c | references/agentic-systems.md, quick reference | examples/coaching-session-agentic.md | |
| d | quick reference only | none, keep it fast | |
| e | references/deterministic-stages.md | none |
For a, b and c also read references/coaching-scripts.md for how each conversation tends to run. All paths are under $COACH_DIR. The examples show tone and pacing; the user's data decides the content.
4. Coach
This is a conversation. One or two findings, then a question; the user steers the rest.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/token-coach/SKILL.md
Popularity
- Repository stars
- 1,662
- Repository forks
- 133
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alexgreensh/token-optimizer/token-coach)