Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add es6kr/skills --skill cleanupgit clone --depth 1 https://github.com/es6kr/skillsWrote 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/es6kr/skills/cleanup)<a href="https://agentmods.dev/skills/es6kr/skills/cleanup"><img src="https://agentmods.dev/badge/skills/es6kr/skills/cleanup/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/es6kr/skills/cleanup"><img src="https://agentmods.dev/badge/skills/es6kr/skills/cleanup.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.00271 | $0.01009 |
| Opus 5.5 | $0.00108 | $0.00404 |
| Sonnet 5.5 | $0.00054 | $0.00202 |
| Haiku 4.5 | $0.00027 | $0.00101 |
Grade A, and why
cleanup scanned grade A with 0 findings 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 1mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cleanup
Sequentially run cleanup tasks before session end.
Topics
| Topic | Description | Guide |
|---|---|---|
| config | Enable/disable individual tasks | config.md |
| hook-review | Review hook errors and suggest improvements | hook-review.md |
| rag-store | Persist to RAG before session end + sync completed fix_plan items (medium matrix fallback) | rag-store.md |
| run | 4-step sequential execution (commit → self-improve → knowledge persist → backlog delegation) + automated helper script execution (fa-analyze.py, hybrid_sweep_rag.py, sync_dual_wiki.py) |
run.md |
| run-self-improve | Step 2 body — mistake analysis, hook/skill review, pattern detection | run-self-improve.md |
| run-knowledge-persist | Step 3 body — walkthrough, infra check, RAG store modes (3-C.1~3-C.4), memory dual-sync | run-knowledge-persist.md |
| run-checklist-sync | Step 4-A / 4-B body — checklist record via backlog skill, comprehensive result report matrix | run-checklist-sync.md |
| run-wip-handoff | Step 4-C / 4.5 body — wip delegation via backlog skill, status-based self-task prune | run-wip-handoff.md |
Moved topics: retrospect and fa-prune are owned by the fa skill — invoke Skill("fa") / Skill("fa", "fa-prune"). The stubs retrospect.md / fa-prune.md only redirect.
Quick Reference
Run everything
/cleanup # run topic (default)
/cleanup run # explicit run
Suppress asks (attended session, no interruptions)
/cleanup --auto # attended session, don't ask — use documented defaults, still commit/edit/call skills normally
/cleanup --ralph # typed in an interactive session (no RALPH_LOOP=1): treated as --auto (see run.md's mode comparison table)
--ralph's fully-restricted meaning (record-only, no direct modification, report to .ralph/improvements.md) applies only to a true autonomous loop — .ralph/ directory present and RALPH_LOOP=1 set. See run.md "Auto Mode vs. Ralph Mode" for the full comparison.
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .config.json 114 B
- .gitignore 6 B
- CHANGELOG.md 16 KB
- config.md 1.5 KB
- fa-prune.md 263 B
- hook-review.md 3.3 KB
- rag-store.md 22 KB
- resources/block-cleanup-missing-rename.js 7.1 KB runs code
- resources/block-cleanup-missing-rename.sh 6.9 KB runs code
- resources/block-cleanup-missing-walkthrough.sh 4.3 KB runs code
- resources/block-cleanup-option-below-context-gate.sh 18 KB runs code
- resources/block-cleanup-without-claudify.sh 10 KB runs code
- resources/block-cleanup-without-rag.sh 11 KB runs code
- resources/block-rename-schema-when-wrapup-adjacent.sh 5.1 KB runs code
- resources/graph-stop-evaluator.sh 765 B runs code
- resources/triage-fixplan-completed.py 3.2 KB runs code
- retrospect.md 290 B
- run-checklist-sync.md 14 KB
- run-knowledge-persist.md 32 KB
- run-self-improve.md 9.1 KB
- run-wip-handoff.md 8.1 KB
- run.md 48 KB
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.
- 1mo ago Changed · +1 lines · +3 tokens per session 7d8c6282d5c9
- 2mo ago Changed · +4 lines · +49 tokens per session 65be2a6d8cb7
- 2mo ago Changed · +2 lines · +20 tokens per session aa91bd4169c2
- 2mo ago Changed · +7 lines 1fc0b744cc2f
- 3mo ago Changed · +1 lines · -5 tokens per session 7427d30dd9cc
- 3mo ago First seen · 51 lines · 204 tokens per session scan A dda94ea0ef85
cleanup is a skill published in the GitHub repository es6kr/skills (2 stars, last pushed 20d ago), licensed MIT. It adds 271 tokens to every session and 1,009 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cleanup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cleanupes6kr/skills | Skill | 2 | 20d ago | MIT | A | 271 | Claude Code |
| knowledge-ingestopenclaw/openclaw | Skill | 396k | today | MIT | A | 80 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | yesterday | Apache-2.0 | A | 217 | Claude Code, Codex |
| forgetasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 0 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 17d ago | MIT | A | 184 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 115 | Claude Code, Codex |
| memoryopensquilla/opensquilla | Skill | 7.2k | 9d ago | Apache-2.0 | A | 44 | Claude Code, Codex |