cleanup

cleanup is a skill for Claude Code from nicograef/handbook. It costs 40 tokens per session (248 once invoked), scanned A, original, MIT.

A code-review workflow that checks recent changes or a specified area for maintainability problems, design issues, and overly generated-looking code. It can also report broader cross-layer consistency issues when a whole-project audit is requested.

In plain words
What is it for?
Use it to review staged or unstaged changes, a recent commit, a module, route, component, or page, and to suggest or apply cleanup fixes after confirmation.
Why use it?
It helps identify unclear structure, repeated patterns, and inconsistencies before they become harder to fix. It uses surrounding code as the project's style baseline.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the nico plugin — 10 skills, 1 agent, 4 hooks shipped together

Good fit Use it to review staged or unstaged changes, a recent commit, a module, route, component, or page, and to suggest or apply cleanup fixes after confirmation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nicograef/handbook/cleanup
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 nicograef/handbook --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/nicograef/handbook

Made for: Claude Code.

Or install nico, the plugin that ships this one along with the rest of its 10 skills, 1 agent, 4 hooks.

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 cleanup

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

agentmods 80×15 button for cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/nicograef/handbook/cleanup"><img src="https://agentmods.dev/badge/skills/nicograef/handbook/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 248 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.00040 $0.00248
Opus 5.5 $0.00016 $0.00099
Sonnet 5.5 $0.00008 $0.00050
Haiku 4.5 $0.00004 $0.00025

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

Security

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 12d 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.

plugin/skills/cleanup/SKILL.md · 17 lines

What it actually says

Cleanup

Arguments: $ARGUMENTS: named paths, staged changes, the last commit, or the whole repo. Without arguments: staged, else unstaged, else the last commit.

  • Find bugs and fix them. Add a regression test only under the global test rule.
  • Remove outdated, stale, deprecated and unused code, comments, docs, config, tests and dependencies. Remove the tests the global test rule says to delete.
  • Before removing something as unused, rule out uses the grep misses: dynamic access, framework conventions, external consumers, persisted data.
  • Apply the findings directly. Removals that touch external consumers or persisted data go to the user first.
  • Run the build and the tests after applying.
  • ux reviews the UI on a 375×667 viewport instead: broken layouts, small touch targets, inconsistent labels and states.
Files

What ships with it

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

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. 12d ago Changed 362effac4189
  2. 18d ago Changed · -40 lines · -9 tokens per session 855779b5331c
  3. 28d ago Changed · -5 lines · +49 tokens per session 8bc62753bbdc
  4. 1mo ago Changed · +15 lines a9bdad4a3d86
  5. 1mo ago Changed dc4d0e9182ab
  6. 1mo ago Changed 810a58f26758
  7. 1mo ago Changed · +1 lines 740974b59bc9
  8. 1mo ago Changed · -94 lines · -125 tokens per session ba320f8c5529
  9. 2mo ago Changed · -8 lines c8c343179383
  10. 2mo ago First seen · 148 lines · 125 tokens per session scan A fac95e16657f

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository nicograef/handbook (2 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 248 once invoked, about $0.0002 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.

Related

cleanup compared with skills from other repositories

cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cleanupnicograef/handbookSkill22d agoMITA40Claude Code
autoreviewopenclaw/clawhubSkill9.5kyesterdayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k6d agoMITA115Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.2kyesterdayMITA48Claude Code, Codex
revdiff-planumputun/revdiffSkill945yesterdayMITA84Claude Code
explore-unknownsdzhng/skillsSkill1.4k2d agoMITA162Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.4k4d agoMITA70Claude Code