Claude Token Optimizer — AI skill for Claude Code
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%.
How to install Claude Token Optimizer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open wagnercreative/claude-token-optimizer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Token Optimizer does
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%. Detects missing .claudeignore, uncompressed terminal output, wrong model defaults, bloated CLAUDE.md, and MCP overhead. Auto-fixes safe issues, produces a severity-tagged report, and analyzes ccusage spending patterns.
Alternatives in AI
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
- Internal Safety Collapse — We built an adversarial codespace setup 1.2k ★
README
token-optimizer
A [Claude Code skill](https://code.claude.com/docs/en/skills) that audits your setup for token waste, applies safe fixes, and helps you cut per-session costs by 30-85%.
**What is a Claude Code skill?** Skills are reusable instruction sets that Claude Code loads on demand. They live in `~/.claude/skills/` (personal) or `.claude/skills/` (per-project) and activate automatically when you mention relevant keywords.
The problem
A typical Claude Code session burns tokens on things that don't help you:
- Terminal noise —
npm testdumps 10,000 lines; Claude reads all of them. You needed 12. - Bloat indexing — Every file search scans
node_modules/,dist/,.next/because there's no.claudeignore. - Wrong model for the job — Opus on a one-line typo fix costs 10-15× more than Sonnet.
- Fat CLAUDE.md — 500 lines of instructions loaded every session, even when irrelevant.
- No output compression — No PreToolUse hooks means raw terminal output hits context every time.
This skill finds all of these, tells you how much each one costs, and fixes the safe ones automatically.
What it does
You: "Token kullanımını optimize et"
token-optimizer:
[*] Scanning ~/.claude/
[*] Scanning project at ./my-app
[✓] 8 findings:
🔴 No .claudeignore — node_modules (1.2 GB) being indexed
🟠 No PreToolUse hooks — test output uncompressed
🟠 Default model is Opus — 10-15× more expensive than Sonnet
🟡 CLAUDE.md is 340 lines
...
Estimated savings: ~65%
Then asks how you want to proceed: auto-fix everything safe, walk through each issue, or just keep the report.
Quick start
Option 1: Claude.ai upload
Settings → Capabilities → Skills → Upload `token-optimizer.zip`
Option 2: Claude Code (personal)
# Clone into your personal skills directory
git clone https://github.com/wagnercreative/token-optimizer.git ~/.claude/skills/token-optimizer
Option 3: Claude Code (per-pr
Related Skills
Svelte Markdown
📝 Markdown and HTML renderer for Svelte 5 — built for streaming AI agent output from Claude Code, ChatGPT, an
Apex Optimizer Skills
AI-native code review and optimization skills for Claude Code, Cursor, and agent IDEs. Audits Salesforce Apex,
Cost Optimizer
git clone https://github.com/fullstackcrew-alpha/skill-cost-optimizer Save 60-80% on AI token costs with smart
Instruction Health Skills
Agent skills to keep AI instruction files (AGENTS.md, CLAUDE.md, MEMORY.md) lean. Guardian runs before edits t
Groq Prompt Scorer
Claude Code hook that uses Groq free LLM API to catch vague prompts before they waste tokens
Tokopt Upload
TokOpt — LLM Cost Intelligence Platform. Analyze LLM API logs to identify token waste and deliver actionable c
Related Agents
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize
Trimmer
Use when a drafted plan or a completed diff needs a dedicated subtraction pass — proposes cuts (machinery no f
Budget Optimizer
Finds wasted spend and winners across platforms, then reallocates budget by ROAS, tunes bids, and kills losers