/cco-claudemd
Analyze CLAUDE.md files for token bloat and suggest optimizations
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-claudemd --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/cco-claudemd
Context preview
The summary Claude sees to decide when to auto-load this skill.
Analyze CLAUDE.md files for token bloat and suggest optimizations
SKILL.md
cco-claudemd.SKILL.mdname: cco-claudemd description: Analyze CLAUDE.md files for token bloat and suggest optimizations license: MIT allowed-tools: [Bash, Read]
CLAUDE.md Analyzer
Analyze CLAUDE.md files in the current project for token bloat and optimization opportunities.
Run the analyzer:
node ${CLAUDE_PLUGIN_ROOT}/src/claudemd-analyzer.js "${CWD}"Present the output to the user. The analyzer checks for:
- **Overall size** — files over 2K tokens get flagged
- **Large sections** — sections over 1K tokens
- **Duplicate lines** — repeated content
- **Verbose patterns** — "please make sure to", "it is important that", etc.
- **Long code blocks** — examples over 20 lines
- **Excessive whitespace** — empty lines eating tokens
For each issue found, explain the savings potential and suggest a concrete fix.
If the user wants to apply fixes, help them edit the CLAUDE.md directly using the Edit tool.
Claude Code plugin that tracks token usage, identifies wasted context, and saves 30-50% on API costs. Heatmaps, ROI reports, budget alerts, efficiency scores, git-aware suggestions — all local, zero config.
Repo: egorfedorov/claude-context-optimizer
Other skills on claude-context-optimizer.
- /cco-anatomy
Generate a compact project map so Claude understands the codebase without opening every file
Open skill - /cco-budget
Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Opus 4.8 default, full 1M context at standard price)
Open skill - /cco-clean
Clean up old tracking data and reset statistics
Open skill - /cco-coach
Analyze the user's last prompt for clarity, scope and specificity — give a quality score and concrete suggestions to make the next prompt produce better results
Open skill - /cco-digest
Show weekly/daily efficiency digest with score and trends
Open skill - /cco-doctor
Health check for the context-optimizer plugin install — verifies versions, hooks, data dir, model config, and reports any issues
Open skill

