Cleans Claude Context Optimizer tracking data in ~/.claude-context-optimizer/: deletes sessions older than N days, resets all, or shows size and prompts. Uses Bash.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-context-optimizer:cco-clean [--sessions-older-than <days>] [--reset-all][--sessions-older-than <days>] [--reset-all]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user wants to clean up tracking data. Parse $ARGUMENTS:
The user wants to clean up tracking data. Parse $ARGUMENTS:
--reset-all: Delete all data in ~/.claude-context-optimizer/ and confirm--sessions-older-than N: Delete session files older than N daysRun 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.
npx claudepluginhub egorfedorov/claude-context-optimizer --plugin claude-context-optimizerAnalyzes Claude Code environment for token waste in skills, plugins, memory files, and CLAUDE.md; proposes and performs safe cleanups with user approval. Invoke via /claude-slim for token optimization.
Analyzes context usage and recommends compression strategies for bloated or quota-heavy Claude Code sessions, including /clear + /catchup, archiving, and spawning subagents.
Runs disk usage diagnostics, growth history logs, and automated cache/temp cleanup on development machines via disk_magician.sh.