fleet-auditor — Claude Code skill: token audit and installation
This skill checks agent systems for token waste and estimates potential savings. Use it to review usage across a fleet of agents.
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a claude-codeWhat fleet-auditor does
The skill detects installed agent systems, gathers token-usage data from sessions, and looks for waste. It runs detection, a session scan, an audit, then prepares findings with severity, estimated monthly savings, and a suggested fix. It does not read or expose message content.
The workflow uses fleet.py with python3 and can optionally create an HTML dashboard. Model prices are needed to calculate dollar amounts. For Codex and systems outside the Claude family, the skill consults a report template that covers cost caveats; without model pricing, dollar savings cannot be calculated.
What it helps with
- detect installed agent systems
- collect token usage from sessions
- find waste and estimate recurring monthly savings
- pair each finding with a suggested fix
- create an HTML cost dashboard
Example prompts for the agent
- Audit my installed agent systems and identify token waste.
- Scan session data and estimate monthly savings from the findings.
- Create an HTML dashboard of token costs.
How to install fleet-auditor
1Skills CLI (Vercel)
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a claude-code2Manually: put the files in place
~/.claude/skills/fleet-auditor/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/fleet-auditor/
1Skills CLI (Vercel)
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a codex2Manually: put the files in place
.agents/skills/fleet-auditor/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a cursor2Manually: put the files in place
.cursor/skills/fleet-auditor/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install alexgreensh/token-optimizer fleet-auditor2Manually: put the files in place
.github/skills/fleet-auditor/SKILL.md1Skills CLI (Vercel)
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a gemini-cli2Platform CLI
gemini skills install https://github.com/alexgreensh/token-optimizer --path skills/fleet-auditorManually: put the files in place
.devin/skills/fleet-auditor/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about fleet-auditor
How do I install fleet-auditor in Claude Code?
Run npx skills add alexgreensh/token-optimizer --skill fleet-auditor -a claude-code. The skill file is available at ~/.claude/skills/fleet-auditor/SKILL.md.
What does fleet-auditor do?
It detects agent systems, gathers token usage, and identifies waste. Its report ranks findings by severity and includes monthly savings estimates and suggested fixes.
Does the audit need model prices?
Yes. Prices are needed to calculate savings in dollars. For Codex and systems outside the Claude family, the skill uses a report template with cost caveats.