clean-up

clean-up is a skill for Claude Code from wenhaochai/claude-plugins. It costs 98 tokens per session (906 once invoked), scanned A, original, MIT.

A cleanup workflow that turns a tested optimization campaign into a branch ready for merging. A branch is a separate line of Git history used to prepare and review code changes.

In plain words
What is it for?
Use it after an optimization campaign to cherry-pick the accepted commits, remove experiment controls and checkpoint calls, and leave a reproducible handover.
Why use it?
Experiment branches often contain rejected candidates, test harnesses, flags, and checkpoint code that should not ship. This keeps the successful workload changes, verifies them again, and removes campaign-only parts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the who-ate-my-flops plugin — 9 skills shipped together

Good fit Use it after an optimization campaign to cherry-pick the accepted commits, remove experiment controls and checkpoint calls, and leave a reproducible handover.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wenhaochai/claude-plugins/clean-up
Install

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.

Any agent
npx skills add wenhaochai/claude-plugins --skill clean-up
Clone the repo
git clone --depth 1 https://github.com/wenhaochai/claude-plugins

Made for: Claude Code.

Or install who-ate-my-flops, the plugin that ships this one along with the rest of its 9 skills.

Wrote 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.

agentmods badge for clean-up

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/clean-up/github.svg)](https://agentmods.dev/skills/wenhaochai/claude-plugins/clean-up)
Your own site
<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/clean-up"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/clean-up/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.

agentmods 80×15 button for clean-up

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/clean-up"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/clean-up.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 906 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.00906
Opus 5.5 $0.00039 $0.00362
Sonnet 5.5 $0.00020 $0.00181
Haiku 4.5 $0.00010 $0.00091

Measured 14d ago against content hash ee8eb55dc948, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clean-up 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 14d 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.

who-ate-my-flops/skills/clean-up/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deliver the branch

The campaign branch is a record, not something to merge.

  1. Tag it, then cherry-pick the survivors onto the base it ran on. git tag <campaign>-full-history HEAD. Never rewrite the campaign branch: records/candidates.jsonl references its shas, and every check below compares against it.
  2. Cherry-pick, do not rebase and drop. A rejected candidate and its revert cancel out in the net diff, but a replay still applies each one.
  3. Ship only what changed the workload, plus the checkpoint calls, which step 6 removes again. Runners and capture harnesses stay behind, and their commands go into the reproduce block instead. Anything in the shipped source that imports a file outside the checkout is a harness, whatever it is called.
  4. Delete the A/B flags before you measure, not on both sides of the deletion, and as one commit of its own. Watch for an else that is another caller's entry point, and the import os only the flag needed.
  5. Run the recorder comparison here, on the head with the flags hardcoded and the checkpoint calls still in, against the setup tolerance. This is the code that ships plus the calls that record it, so name it: git branch <delivery>-verify HEAD. A maintainer who wants to reproduce the correctness table checks that branch out.
  6. Strip the checkpoint calls in one last commit. Pure deletion, nothing else in it: the recorder's import, its calls and any file that exists only for them. Maintainers review the speed-up, not the instrumentation, so the delivery branch carries none. If the repo's own recorder was used, there is nothing to strip and no verify branch; say so in the handover.
  7. Time what ships. An interleaved timed pair on this head, with git checkout <base> -- <src dirs> for the before arm. If something goes wrong, fix it, and redo step 5 if the fix touched the model's math.

Rename the branch to what you want merged and leave it checked out.

Move stray files out of the workspace root and update any affected paths or commands.

Read the full file on GitHub · 72 lines

Changes

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.

  1. 14d ago Changed · +32 tokens per session ee8eb55dc948
  2. 17d ago First seen · 72 lines · 66 tokens per session scan A a23cb395a83f

Subscribe to this mod's changes

clean-up is a skill published in the GitHub repository wenhaochai/claude-plugins (17 stars, last pushed 2d ago), licensed MIT. It adds 98 tokens to every session and 906 once invoked, about $0.0004 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-10-01.