/cco-clean
Clean up old tracking data and reset statistics
$ npx -y skills add egorfedorov/claude-context-optimizer --skill cco-clean --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-clean
Context preview
The summary Claude sees to decide when to auto-load this skill.
Clean up old tracking data and reset statistics
SKILL.md
cco-clean.SKILL.mdname: cco-clean description: Clean up old tracking data and reset statistics license: MIT argument-hint: "[--sessions-older-than <days>] [--reset-all]" allowed-tools: [Bash]
Clean Context Optimizer Data
The user wants to clean up tracking data. Parse $ARGUMENTS:
- If `--reset-all`: Delete all data in `~/.claude-context-optimizer/` and confirm
- If `--sessions-older-than N`: Delete session files older than N days
- If no arguments: Show current data size and ask what to clean
Run to check data size:
du -sh ~/.claude-context-optimizer/ 2>/dev/null && find ~/.claude-context-optimizer/sessions/ -name "*.json" 2>/dev/null | wc -l
For cleanup, delete the appropriate files and confirm what was removed.
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-claudemd
Analyze CLAUDE.md files for token bloat and suggest optimizations
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

