alexgreensh/token-optimizer/fleet-auditor
Claude Code and agent skill by alexgreensh/token-optimizer
- community
Checking that the SKILL.md file is still in the repository.
Audits token waste and cost across Claude Code, Codex, OpenClaw, Hermes and OpenCode, with dollar savings. Use when running several agent systems or suspecting idle heartbeats burn tokens.
Install
npx vskill@latest install alexgreensh/token-optimizer/fleet-auditorSKILL.md
The same SKILL.md was published earlier as alexgreensh/token-optimizer/fleet-auditor.
Fleet Auditor: Cross-Platform Agent Token Waste Auditor
Token Optimizer's own skills (token-optimizer, token-coach, token-dashboard, fleet-auditor) are the measurement layer, so leave them out of every removal, archive, trimming, disabling or consolidation suggestion; deleting them to save a few hundred tokens defeats the audit.
Detects installed agent systems, collects token usage data, identifies waste patterns, and recommends fixes with dollar savings estimates.
Use when running multiple agent systems, spending $2-5/day on agents, suspecting idle heartbeats are burning tokens, or wanting a cross-system cost audit.
Phase 0: Initialize
- Resolve runtime and fleet.py path (works for both skill and plugin installs):
Use $FLEET_PY for all subsequent fleet.py calls.
- Detect systems:
Parse the JSON output. Report what was found.
If nothing detected, explain: "No agent systems found. Fleet Auditor supports: Claude Code, Codex, OpenClaw, NanoClaw, Hermes, OpenCode, IronClaw."
Phase 1: Scan
Collect token usage data from detected systems:
Report how many runs were collected per system. If this is the first scan, it may take a moment to parse all session files.
Phase 2: Audit
Run waste pattern detection:
Parse the JSON output. Present findings ordered by severity and monthly savings.
If no waste found: "Your fleet looks clean. No significant waste patterns detected."
Dollar figures need a price for the model. For Codex and other non-Claude systems, and for the OpenClaw security checks, read references/report-template.md before presenting.
Phase 3: Present Findings
Use the layout in references/report-template.md: systems detected, waste patterns with severity, monthly savings and a fix for each, then the total and the next-step options.
Phase 4: Dashboard (optional)
If user wants visual analysis:
This generates ~/.claude/_backups/token-optimizer/fleet-dashboard.html in Claude Code, or ~/.codex/_backups/token-optimizer/fleet-dashboard.html when TOKEN_OPTIMIZER_RUNTIME=codex.
Phase 5: Deep Dive (optional)
For Claude Code specifically, offer /token-optimizer for full audit (CLAUDE.md, skills, MCP, hooks, etc.).
For Codex specifically, offer token-optimizer for full audit (AGENTS.md, Codex memories, plugin skills, MCP, balanced hooks, compact prompt, status line).
For other systems, show the fix snippets from the audit and guide the user through implementing them.
Reference Files
| Read | When | |
|---|---|---|
| references/report-template.md | Presenting findings, Codex dollar caveats, OpenClaw checks | |
| references/waste-patterns.md | Detector thresholds, severity and confidence levels | |
| references/fleet-systems.md | Per-system data locations and token fields |
Error Handling
- No systems detected: report cleanly and list the supported systems
- Empty scan results: system detected but no session data in the window; suggest a larger
--days - Permission errors: name the files that could not be read and continue with the rest
- Corrupted data: skip bad files and report how many were skipped
- fleet.py not found: check both the skill and plugin install paths
Core Rules
- Quantify everything in dollars and tokens
- Never read or expose message content (privacy-first)
- Report confidence levels alongside findings and suppress anything below 0.4
- Show a fix snippet with every recommendation
- Frame savings as monthly recurring, not one-time
Written for and checked on Claude Opus 5.5 and Sonnet 5.5, and GPT-5.6 on Codex.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fleet-auditor/SKILL.md
Popularity
- Repository stars
- 2,032
- Repository forks
- 160
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alexgreensh/token-optimizer/fleet-auditor)