Agent skill

Token Coach

by alexgreensh in alexgreensh/token-optimizer

Coaches a token-efficient Claude Code or Codex setup from the user's own usage data.

Custom licenceAuto-check passedAgent Workflows

Install Token Coach

skills CLI
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alexgreensh/token-optimizer token-coach --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/token-coach .claude/skills/token-coach && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
token-coach
GitHub stars
2.5k
Token cost
~2.5k tokens
SKILL.md length
979 words
Files
11 (incl. references, assets)
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Coaches a token-efficient Claude Code or Codex setup from the user's own usage data.

  • Works in 5 steps: Collect the data → Ask what they want → Load what that goal needs → …
  • Planning a build
  • SKILL.md covers 1. Collect the data, 2. Ask what they want, 3. Load what that goal needs and 4. Coach, plus 2 more sections
  • Calls python3

What it does

Token Coach is an agent skill from alexgreensh/token-optimizer. 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.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including reference files and assets (for example `examples/coaching-session-agentic.md`, `examples/coaching-session-heavy-setup.md` and `examples/coaching-session-new-project.md`).

It sits in Agent Workflows. The repository describes itself as: Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.

When your agent uses it

  • Planning a build
  • Deciding which workflow steps need a model

Example prompts

  • “Use the token-coach skill to coach a token-efficient Claude Code or Codex setup from the user's own usage data”
  • “/token-coach”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Collect the data
  2. Ask what they want
  3. Load what that goal needs
  4. Coach
  5. Agree the action plan

What it can do on your machine

Read from SKILL.md and the folder at commit 723c19b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Token Coach loads about 2.5k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 979 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 979 words (~2,507 tokens).

“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…”

— opening of SKILL.md by alexgreensh, Custom licence
name
token-coach

Read the full SKILL.md on GitHub

Files

SKILL.md and 10 other files (references, assets) in skills/token-coach of alexgreensh/token-optimizer.

  • SKILL.md
  • assets/coach-dashboard-tab.html
  • examples/coaching-session-agentic.md
  • examples/coaching-session-heavy-setup.md
  • examples/coaching-session-new-project.md
  • references/agentic-systems.md
  • references/coach-patterns.md
  • references/coaching-scripts.md
  • references/deterministic-stages.md
  • references/keepwarm-consent.md
  • references/quick-reference.md

Open the folder on GitHubat commit 723c19b

Compare with similar skills

Token Coach next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Token Coach compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Token Coach this skillalexgreensh/token-optimizer2.5k—~2.5kAutomated safety check: PassCustom licence
Claude Code Agent Developmentanthropics/claude-plugins-official38k7 repos~2.8kAutomated safety check: PassApache-2.0
Copilot Session Failure Analysisdotnet/maui23k—~3.4kAutomated safety check: PassMIT
Mem0 CLI Memory Commandsmem0ai/mem067k—~2kAutomated safety check: NotesApache-2.0
Create Agentvectorize-io/hindsight48k—~1.1kAutomated safety check: PassMIT
Google Antigravity SDKgoogle-antigravity/antigravity-sdk-python3.7k—~2.1kAutomated safety check: NotesApache-2.0

Similar skills

  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.

    23k GitHub stars~3.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.

    67k GitHub stars~2k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check: notes
  • Create Agent

    vectorize-io/hindsight

    Create a new Hindsight-powered subagent with long-term memory.

    48k GitHub stars~1.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Google Antigravity SDK

    google-antigravity/antigravity-sdk-python

    Design, implement, and debug autonomous AI agents and multi-agent systems using the Google Antigravity (AGY) SDK.

    3.7k GitHub stars~2.1k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check: notes
  • Yao Meta Skill

    yaojingang/yao-meta-skill

    Create, improve, or evaluate an existing skill from workflows, prompts, SOPs, scripts.

    2.7k GitHub stars~768 tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed

More from alexgreensh/token-optimizer

  • Token Optimizer

    alexgreensh/token-optimizer

    Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the saving.

    2.5k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Fleet Auditor

    alexgreensh/token-optimizer

    Audits token waste and cost across Claude Code, Codex, OpenClaw, Hermes and OpenCode, with dollar savings.

    2.5k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Resume Checkpoint

    alexgreensh/token-optimizer

    Pulls a prior session's checkpoint as fenced, scrubbed recovery context.

    2.5k GitHub stars~838 tokensUpdated today
    Auto-check passed
  • Token Dashboard

    alexgreensh/token-optimizer

    Opens the Token Optimizer dashboard in the browser (context usage, quality, savings).

    2.5k GitHub stars~950 tokensUpdated today
    Auto-check passed
  • Token Optimizer

    alexgreensh/token-optimizer

    Audit your OpenClaw setup for token waste, context bloat, and cost optimization opportunities

    2.5k GitHub stars~481 tokensUpdated today
    Auto-check passed

Questions about Token Coach

What does Token Coach do?

Coaches a token-efficient Claude Code or Codex setup from the user's own usage data. Token Coach is an agent skill from alexgreensh/token-optimizer. Coaches a token-efficient Claude Code or Codex setup from the user's own usage data.

When should I use Token Coach?

Token Coach fits situations like: planning a build; deciding which workflow steps need a model.

How do I install Token Coach in Claude Code?

Run `npx skills add alexgreensh/token-optimizer --skill token-coach -a claude-code`. Or copy the skill folder (skills/token-coach in alexgreensh/token-optimizer) into .claude/skills/token-coach in your project. Claude Code loads it when a task matches its description.

How do I install Token Coach in Codex?

Run `npx skills add alexgreensh/token-optimizer --skill token-coach -a codex`. Or copy the skill folder (skills/token-coach in alexgreensh/token-optimizer) into .agents/skills/token-coach in your project. Codex loads it when a task matches its description.

Can I use Token Coach in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alexgreensh/token-optimizer --skill token-coach -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/token-coach, .gemini/skills/token-coach, .github/skills/token-coach and .opencode/skills/token-coach in your project.

What does Token Coach need to run?

Going by SKILL.md and its folder, Token Coach needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Token Coach access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Token Coach safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Token Coach use?

Token Coach has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Token Coach use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Token Coach?

Skills that share tags, products or a category with Token Coach: Claude Code Agent Development (anthropics/claude-plugins-official, 38k stars), Copilot Session Failure Analysis (dotnet/maui, 23k stars), Mem0 CLI Memory Commands (mem0ai/mem0, 67k stars) and Create Agent (vectorize-io/hindsight, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Token Coach?

alexgreensh (a GitHub user) maintains it in alexgreensh/token-optimizer, which has 2,534 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 10, 2026.

Source: alexgreensh/token-optimizer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.