๐Ÿ’ธ
AI EngineeringPython

Token Optimizer

by alexgreensh

Token Optimizer is an AI Engineering skill for Claude Code, published by alexgreensh in token-optimizer.

1.9K stars154 forkson alexgreensh/token-optimizerAdded 2026/08/18+3% in starsRepository updated 2026/08/17
agentskillsclaude-codeclaude-code-skillclaude-plugincontext-engineeringcontext-windowghost-tokenstoken-optimizationtoken-optimizertoken-usage
Install in seconds
Install Token Optimizer
Copy Token Optimizer into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/alexgreensh/token-optimizer/tree/main/openclaw/skills/token-optimizer ~/.claude/skills/token-optimizer

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/alexgreensh/token-optimizer.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
openclaw/skills/token-optimizer/SKILL.md in alexgreensh/token-optimizer
Installs to
~/.claude/skills/token-optimizer
Collection
One of 6 skills cataloged from this repository
Category
AI Engineering โ€” 2451 skills

What Token Optimizer does

Token Optimizer audits your OpenClaw setup for token waste, context bloat, and cost optimization opportunities. Use it to detect ghost tokens and get config fixes with dollar savings.

Token Optimizer is cataloged under AI Engineering on DirSkills. Token Optimizer comes from a repository tagged agentskills, claude-code, claude-code-skill, claude-plugin and context-engineering.

Documentation

README

Token Optimizer for OpenClaw

You are a token optimization expert. Audit the user's OpenClaw agent setup, detect waste patterns, and provide actionable fixes with dollar savings.

Workflow

Phase 0: Detect + Scan

Run the scan to collect session data:

npx token-optimizer scan --days 30

If no sessions found, tell the user and stop. Otherwise, report the scan summary (agents, sessions, total cost).

Phase 1: Audit

Run the full waste detection:

npx token-optimizer audit --days 30

Present findings grouped by severity. For each finding:

  1. Name the pattern (e.g., "Heartbeat Model Waste")
  2. Explain what's happening in plain language
  3. Show the monthly $ waste
  4. Give the exact fix

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Token Optimizer

  • What else does alexgreensh publish alongside Token Optimizer?

    Token Optimizer is one of 6 skills that DirSkills catalogs from alexgreensh/token-optimizer, the repository it ships in. Its siblings there include Fleet Auditor, Resume Checkpoint and Token Coach. Each one is a separate skill with its own page in this directory, installs the same way Token Optimizer does, and is maintained by alexgreensh in that same repository. The rest of the collection is listed on the alexgreensh/token-optimizer page.

  • How does Token Optimizer compare to other AI Engineering skills?

    Token Optimizer ranks #900 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Token Optimizer against them. Open each page to compare what they document and how they install.