Claude Code Agent Development
anthropics/claude-plugins-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.
Coaches a token-efficient Claude Code or Codex setup from the user's own usage data.
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install alexgreensh/token-optimizer token-coach --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .claude/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coachType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install alexgreensh/token-optimizer token-coach --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/token-coach .agents/skills/token-coach && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .agents/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install alexgreensh/token-optimizer token-coach --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/token-coach .cursor/skills/token-coach && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .cursor/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/alexgreensh/token-optimizer.git --path skills/token-coach--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install alexgreensh/token-optimizer token-coach --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/token-coach .gemini/skills/token-coach && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .gemini/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install alexgreensh/token-optimizer token-coachInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/token-coach .github/skills/token-coach && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .github/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alexgreensh/token-optimizer --skill token-coach -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install alexgreensh/token-optimizer token-coach --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexgreensh/token-optimizer.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/token-coach .opencode/skills/token-coach && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "token-coach" agent skill from https://github.com/alexgreensh/token-optimizer/tree/main/skills/token-coach into .opencode/skills/token-coach/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "token-coach", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
token-coachCoaches 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. 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.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 723c19b. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
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…”
SKILL.md and 10 other files (references, assets) in skills/token-coach of alexgreensh/token-optimizer.
Open the folder on GitHubat commit 723c19b
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Token Coach this skillalexgreensh/token-optimizer | 2.5k | — | ~2.5k | Automated safety check: Pass | Custom licence | |
| Claude Code Agent Developmentanthropics/claude-plugins-official | 38k | 7 repos | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Copilot Session Failure Analysisdotnet/maui | 23k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Mem0 CLI Memory Commandsmem0ai/mem0 | 67k | — | ~2k | Automated safety check: Notes | Apache-2.0 | |
| Create Agentvectorize-io/hindsight | 48k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Google Antigravity SDKgoogle-antigravity/antigravity-sdk-python | 3.7k | — | ~2.1k | Automated safety check: Notes | Apache-2.0 |
anthropics/claude-plugins-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.
dotnet/maui
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.
mem0ai/mem0
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.
vectorize-io/hindsight
Create a new Hindsight-powered subagent with long-term memory.
google-antigravity/antigravity-sdk-python
Design, implement, and debug autonomous AI agents and multi-agent systems using the Google Antigravity (AGY) SDK.
yaojingang/yao-meta-skill
Create, improve, or evaluate an existing skill from workflows, prompts, SOPs, scripts.
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.
alexgreensh/token-optimizer
Audits token waste and cost across Claude Code, Codex, OpenClaw, Hermes and OpenCode, with dollar savings.
alexgreensh/token-optimizer
Pulls a prior session's checkpoint as fenced, scrubbed recovery context.
alexgreensh/token-optimizer
Opens the Token Optimizer dashboard in the browser (context usage, quality, savings).
alexgreensh/token-optimizer
Audit your OpenClaw setup for token waste, context bloat, and cost optimization opportunities
Categories
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.
Token Coach fits situations like: planning a build; deciding which workflow steps need a model.
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.
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.
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.
Going by SKILL.md and its folder, Token Coach needs the command-line tools its instructions call (python3). Our summary lists: Python 3.
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.
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.
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.
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.
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.
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.