cco-clean
Clean up old tracking data and reset statistics
How do I install this agent skill?
npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill cco-cleanIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill performs cleanup tasks by deleting files in a specific application directory. It accepts user arguments to control the process, which presents a minor surface for indirect prompt injection if inputs are not handled carefully by the agent.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
--prune(or the user just wants the safe cleanup): apply the retention policy now — per-session files older than 90 days (sessions, summaries, prompts) and live-session state older than 14 days (budget, read-cache, notices). Aggregated stats and learned patterns are kept. This also runs automatically once a day at session start.node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js prune - If no arguments: Show current data size and ask what to clean (suggest
--prunefirst — it is non-destructive to stats)
To check data size, Glob ~/.claude-context-optimizer/sessions/*.json and report
the session count.
--reset-all and --sessions-older-than delete files: state exactly what will
be removed and let the user approve the command — these are not pre-approved.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/egorfedorov/claude-context-optimizer/cco-clean">View cco-clean on skillZs</a>