Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add shck-dev/ccx-context-system/plugin install ccxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shck-dev/ccx-context-system/tidy-scratch)<a href="https://agentmods.dev/skills/shck-dev/ccx-context-system/tidy-scratch"><img src="https://agentmods.dev/badge/skills/shck-dev/ccx-context-system/tidy-scratch/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shck-dev/ccx-context-system/tidy-scratch"><img src="https://agentmods.dev/badge/skills/shck-dev/ccx-context-system/tidy-scratch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01149 |
| Opus 5.5 | $0.00019 | $0.00460 |
| Sonnet 5.5 | $0.00010 | $0.00230 |
| Haiku 4.5 | $0.00005 | $0.00115 |
Grade C, and why
tidy-scratch scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **delete:** `rm -rf <scratch_root>/<slug>` — permanent if the notebook isn't version-controlled. How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tidy scratch — date-aware GC for the scratch notebook
A read → propose → execute sweep. This is the only ccx skill that proposes destructive actions; save-state stays a pure read-only dashboard. The sweep is dry-run by default — it prints a plan and touches nothing until you confirm. If the scratch dir is not version-controlled (the usual setup), a delete is permanent. When in doubt: archive (move), don't delete.
Live data (injected at load)
Project + config:
!bun "${CLAUDE_PLUGIN_ROOT}/scripts/where.ts"
Now: !date "+%Y-%m-%d %H:%M %Z"
Folder scan — date-aware, stalest first (newest-file age per folder; STATE=NO = no handoff doc):
!bun "${CLAUDE_PLUGIN_ROOT}/scripts/scan.ts"
Open PRs (a matching open PR keeps a thread alive):
!gh pr list --limit 30 2>/dev/null || echo "(gh unavailable / not a GitHub repo)"
Then do this
- Classify every folder from the scan. With
ticket_system: nonethere is no external "closed" oracle — only age + PR signals exist, so stay patient and conservative.age= the scan'sage_days; thresholds are defaults you may adjust per item when presenting the plan:- KEEP (active) —
age < 3(protects an active spike), OR an open PR that matches the thread's topic/branch. - ARCHIVE (likely done) — has a STATE doc AND
age > 30AND no open PR. (Longer threshold than a ticket-oracle setup would use: age alone must be more patient.) - ADOPT (unfiled work) —
STATE = NOANDfiles > 3— too much accumulated work to be throwaway; propose creating a STATE doc for it (offer /ccx:start-thread), never delete in this pass. - DELETE (throwaway) —
STATE = NOANDage > 14ANDfiles ≤ 3(no handoff value + cold + tiny). - DELETE (empty) —
files = 0. - FLAG → default KEEP (unsure) — anything that fits no rule above, and every
kind: hubreference note. Never auto-propose deleting a folder that has a STATE doc.
- KEEP (active) —
- Print the PLAN — execute NOTHING yet. One table, stalest first:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 74 lines · 48 tokens per session scan C 77eb072c5008
tidy-scratch is a skill published in the GitHub repository shck-dev/ccx-context-system (1 stars, last pushed 4mo ago), licensed MIT. It adds 48 tokens to every session and 1,149 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
tidy-scratch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tidy-scratchshck-dev/ccx-context-system | Skill | 1 | 4mo ago | MIT | C | 48 | Claude Code |
| claude-code-bash-patternssecondsky/claude-skills | Skill | 257 | yesterday | MIT | B | 52 | Claude Code |
| branch-recapMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 338 | Claude Code |
| audit-contextMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 249 | Claude Code |
| promoteArcticFox2029/chamnan | Skill | 9 | 26d ago | MIT | A | 29 | Claude Code |
| slack-changelogMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 332 | Claude Code |
| ignore-setupMalo-T/claude-toolbelt | Skill | 2 | 5d ago | MIT | A | 157 | Claude Code |