token-coach

Solid

Context window coach analyzing setup overhead, historical usage trends, and session habits. Use when building something new and wanting token efficiency from the start, existing sessions feel sluggish or context fills too fast, designing multi-agent systems, or wanting a quick health check with real numbers. Do NOT use for running the full audit and applying fixes (use /token-optimizer instead).

Web & Frontend 1,750 stars 140 forks Updated yesterday NOASSERTION

Install

View on GitHub

Quality Score: 83/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Token Coach: Plan Token-Efficient Before You Build Interactive coaching for Claude Code or Codex architecture decisions. Analyzes your setup, identifies patterns (good and bad), and gives personalized advice with real numbers. **Use when**: Building something new, existing setup feels slow, designing multi-agent systems, or want a quick health check. --- ## Phase 0: Initialize 1. **Resolve runtime and measure.py path** (same as token-optimizer): ```bash RUNTIME="${TOKEN_OPTIMIZER_RUNTIME:-}" if [ -z "$RUNTIME" ]; then if [ -n "$CLAUDE_PLUGIN_ROOT" ] || [ -n "$CLAUDE_PLUGIN_DATA" ]; then RUNTIME="claude" elif [ -n "$OPENCODE" ] || [ -n "$OPENCODE_BIN" ] || [ -n "$OPENCODE_CONFIG_DIR" ] || [ -n "$OPENCODE_CONFIG" ]; then RUNTIME="opencode" elif [ -n "$CODEX_HOME" ]; then RUNTIME="codex" elif [ -d "$HOME/.config/opencode" ] && [ ! -d "$HOME/.codex" ]; then RUNTIME="opencode" elif [ -d "$HOME/.codex" ]; then RUNTIME="codex" else RUNTIME="claude" fi fi # Resolve measure.py to the NEWEST installed copy across channels so a stale # plugin-cache copy never shadows a fresh install (issue #57). find -L follows the # install.sh symlink under ~/.claude/skills; cd -P resolves it before reading each # copy's plugin.json for its version. find (not bare globs) never errors under zsh. MEASURE_PY=""; _best_ver="" while IFS= read -r _cand; do [ -f "$_cand" ] || continue _root="$(cd -P -- "$(dirname -- "$_cand")/../../.." 2>/dev/null && pwd)" _...

Details

Author
alexgreensh
Repository
alexgreensh/token-optimizer
Created
5 months ago
Last Updated
yesterday
Language
Python
License
NOASSERTION

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category