Skip to content
Back to skills

Cco Clean

ASecurity

Clean up old tracking data and reset statistics

  • 113 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
toolsbashnode

Security analysis

A100/100

Scanned September 30, 2026

npx -y skills add egorfedorov/claude-context-optimizer --skill cco-clean --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cco Clean?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cco Clean
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/egorfedorov-cco-clean/badge)](https://www.skillsdirectory.com/skills/egorfedorov-cco-clean)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cco-clean
description: Clean up old tracking data and reset statistics
license: MIT
argument-hint: "[--prune] [--sessions-older-than <days>] [--reset-all]"
allowed-tools:
  - "Bash(node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js prune)"
  - Glob
---

# 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.
  ```bash
  node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js prune
  ```
- If no arguments: Show current data size and ask what to clean (suggest `--prune` first — 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.