/cleanup
Runs the three review lanes that no build or test covers over everything this session touched, consolidates them, and APPLIES the fixes: comment-review (comment necessity + false claims), docs-drift-review (docs the session made wrong) and claim-review (behaviour the session's
Claude Code
$ npx -y skills add civitai/civitai --skill cleanup --agent claude-code
Codex
$ npx skills add civitai/civitai --skill cleanup -a codex -y
Cursor
$ npx skills add civitai/civitai --skill cleanup -a cursor -y
Gemini CLI
$ npx skills add civitai/civitai --skill cleanup -a gemini-cli -y
GitHub Copilot
$ npx skills add civitai/civitai --skill cleanup -a github-copilot -y
OpenCode
$ npx skills add civitai/civitai --skill cleanup -a opencode -y
Windsurf
$ npx skills add civitai/civitai --skill cleanup -a windsurf -y
SKILL.md
cleanup.SKILL.mdname: cleanup
description: "Runs the three review lanes that no build or test covers over everything this session touched, consolidates them, and APPLIES the fixes: comment-review (comment necessity + false claims), docs-drift-review (docs the session made wrong) and claim-review (behaviour the session's prose asserts, traced to the code). Session-scoped, not segment-scoped. Use partway through a long session, before opening a PR, and whenever a pushback has turned up an overstatement."
Cleanup — the three lanes no build or test covers
Runs **`comment-review`**, **`docs-drift-review`** and **`claim-review`** over the whole session's work, consolidates them into one list, and **applies the fixes** — the lanes produce exact replacement text, so a run that stops at a list has done the expensive half and skipped the useful one.
| Agent | Reviews | | --- | --- | | `comment-review` | Comments: still true? earns its place? said in the fewest words? | | `docs-drift-review` | Docs the session made wrong — stale paths, done checklist items, contradictions — plus padding | | `claim-review` | Claims about behaviour — consequences, absences, "already does" — traced to the line that decides them, in docs, comments, commit messages and PR bodies |
All three lanes are read-only, and no build or test checks what they check — comments aren't type-checked, docs are never executed, and a PR body is never read by a tool, so typecheck, lint, prettier and every test suite pass over all of them. That is the whole reason this exists. `comment-review` alone also runs as the hosted PR review's `comments` lane, and `civitai-review` runs it locally when recording; that covers a PR's diff, not the session's whole work.
The first two check text against **names**; only `claim-review` follows a described behaviour to where it is decided. A sentence whose every symbol resolves can still claim a consequence the caller never produces — that passes the first two lanes, and is the third's whole job.
**These three lanes are pre-authorised.** Running them needs no separate permission, and neither does re-running one that goes idle. That covers these three only; everything else about spawning is unchanged.
1. Scope to the SESSION, not to a segment
This is what makes it different from `civitai-review` and `svelte-review`, which scope to a slice of work. Here the scope is everything that has happened since the session started:
git log --oneline origin/main..HEAD # commits made this session
git diff --stat origin/main..HEAD # their combined effect
git status --short # plus whatever is still uncommitted
🔴 **A shared worktree may contain someone else's work.** More than one agent can be editing the same tree, and files you never touched will show up in `git status`. Before spawning, separate what this session did from what it did not, and pass only the former. Reviewing another agent's half-finished edits produces findings nobody asked for and can send them backwards.
If unsure whether a file is yours, say so and leave it out — a named exclusion is fine, a wrong inclusion is not.
2. Fan out
Give each agent the file list and the commit range. They need different things beyond that:
- **`comment-review`** — the diff. It reviews comments *in the change*; adjacent noise is at most a
one-line note, so it needs to know which lines are new.
- **`docs-drift-review`** — the commits, and specifically **what moved**: files added/deleted/renamed,
symbols removed, scripts and env vars added or retired, commands whose flags changed, checklist items the session completed. That list is its highest-value input and it cannot recover all of it from a diffstat.
- **`claim-review`** — the commit range, the numbers of any PRs the session opened (their bodies are
text it must read), and the docs the session touched. **Do not pass your reasoning or your own verdicts on the claims** — a lane handed the conclusion tends to return it confirmed. If a pushback already turned up an overstatement, name the claim that failed so it looks for its siblings.
Serial is the safe default. Two at once is fine when the session is small.
3. Consolidate
One ranked list, not three reports.
- **Drop what you can disprove.** Read the code or the file before relaying anything; a fix applied to a
non-finding is a new defect.
- Rank by blast radius: a **false comment** and a **wrong `CLAUDE.md` line** both outrank everything
else, because both are read as authoritative and the second is an instruction that gets followed.
- Separate **fix now** from **note and move on**, and put the second group somewhere durable.
- `docs-drift-review` returns exact replacement text. Relay it verbatim rather than paraphrasing —
paraphrasing it is how the next drift starts.
- A `claim-review` finding that **decided something** — what a PR changed or left alone, what was
tested — ranks with a false comment. A merged PR body cannot be edited into history; the fix is a correcting comment on the PR.
4. Apply — the run is not finished until the fixes are in the tree
**Apply them.** All three lanes return exact replacement text, and a consolidated list handed back unapplied is a to-do the next session inherits without the context that produced it. Fix everything you did not disprove in step 3, then say what you applied and what you deliberately left.
Ask first only when a finding needs a decision you cannot make — a comment whose fix is a rename, a doc whose correct value you cannot verify from the repo (whether a migration was applied, whether a box should be ticked). Reopen a box rather than assert something you could not check, and say so.
**Then verify each edit landed.** Do not trust the write — re-read or grep for the new text. Three ways these fail silently:
- **The anchor is stale.** The lanes quote the file as it was when they read it, and a long review runs
minutes behind the tree.
Read more
name: cleanup description: "Runs the three review lanes that no build or test covers over everything this session touched, consolidates them, and APPLIES the fixes: comment-review (comment necessity + false claims), docs-drift-review (docs the session made wrong) and claim-review (behaviour the session's prose asserts, traced to the code). Session-scoped, not segment-scoped. Use partway through a long session, before opening a PR, and whenever a pushback has turned up an overstatement."
Cleanup — the three lanes no build or test covers
Runs **`comment-review`**, **`docs-drift-review`** and **`claim-review`** over the whole session's work, consolidates them into one list, and **applies the fixes** — the lanes produce exact replacement text, so a run that stops at a list has done the expensive half and skipped the useful one.
| Agent | Reviews | | --- | --- | | `comment-review` | Comments: still true? earns its place? said in the fewest words? | | `docs-drift-review` | Docs the session made wrong — stale paths, done checklist items, contradictions — plus padding | | `claim-review` | Claims about behaviour — consequences, absences, "already does" — traced to the line that decides them, in docs, comments, commit messages and PR bodies |
All three lanes are read-only, and no build or test checks what they check — comments aren't type-checked, docs are never executed, and a PR body is never read by a tool, so typecheck, lint, prettier and every test suite pass over all of them. That is the whole reason this exists. `comment-review` alone also runs as the hosted PR review's `comments` lane, and `civitai-review` runs it locally when recording; that covers a PR's diff, not the session's whole work.
The first two check text against **names**; only `claim-review` follows a described behaviour to where it is decided. A sentence whose every symbol resolves can still claim a consequence the caller never produces — that passes the first two lanes, and is the third's whole job.
**These three lanes are pre-authorised.** Running them needs no separate permission, and neither does re-running one that goes idle. That covers these three only; everything else about spawning is unchanged.
1. Scope to the SESSION, not to a segment
This is what makes it different from `civitai-review` and `svelte-review`, which scope to a slice of work. Here the scope is everything that has happened since the session started:
git log --oneline origin/main..HEAD # commits made this session git diff --stat origin/main..HEAD # their combined effect git status --short # plus whatever is still uncommitted
🔴 **A shared worktree may contain someone else's work.** More than one agent can be editing the same tree, and files you never touched will show up in `git status`. Before spawning, separate what this session did from what it did not, and pass only the former. Reviewing another agent's half-finished edits produces findings nobody asked for and can send them backwards.
If unsure whether a file is yours, say so and leave it out — a named exclusion is fine, a wrong inclusion is not.
2. Fan out
Give each agent the file list and the commit range. They need different things beyond that:
- **`comment-review`** — the diff. It reviews comments *in the change*; adjacent noise is at most a
one-line note, so it needs to know which lines are new.
- **`docs-drift-review`** — the commits, and specifically **what moved**: files added/deleted/renamed,
symbols removed, scripts and env vars added or retired, commands whose flags changed, checklist items the session completed. That list is its highest-value input and it cannot recover all of it from a diffstat.
- **`claim-review`** — the commit range, the numbers of any PRs the session opened (their bodies are
text it must read), and the docs the session touched. **Do not pass your reasoning or your own verdicts on the claims** — a lane handed the conclusion tends to return it confirmed. If a pushback already turned up an overstatement, name the claim that failed so it looks for its siblings.
Serial is the safe default. Two at once is fine when the session is small.
3. Consolidate
One ranked list, not three reports.
- **Drop what you can disprove.** Read the code or the file before relaying anything; a fix applied to a
non-finding is a new defect.
- Rank by blast radius: a **false comment** and a **wrong `CLAUDE.md` line** both outrank everything
else, because both are read as authoritative and the second is an instruction that gets followed.
- Separate **fix now** from **note and move on**, and put the second group somewhere durable.
- `docs-drift-review` returns exact replacement text. Relay it verbatim rather than paraphrasing —
paraphrasing it is how the next drift starts.
- A `claim-review` finding that **decided something** — what a PR changed or left alone, what was
tested — ranks with a false comment. A merged PR body cannot be edited into history; the fix is a correcting comment on the PR.
4. Apply — the run is not finished until the fixes are in the tree
**Apply them.** All three lanes return exact replacement text, and a consolidated list handed back unapplied is a to-do the next session inherits without the context that produced it. Fix everything you did not disprove in step 3, then say what you applied and what you deliberately left.
Ask first only when a finding needs a decision you cannot make — a comment whose fix is a rename, a doc whose correct value you cannot verify from the repo (whether a migration was applied, whether a box should be ticked). Reopen a box rather than assert something you could not check, and say so.
**Then verify each edit landed.** Do not trust the write — re-read or grep for the new text. Three ways these fail silently:
- **The anchor is stale.** The lanes quote the file as it was when they read it, and a long review runs
minutes behind the tree.
Other skills on civitai.
More skills from other plugins.
hf-cli
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
feast-architecture
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…
accessing-mlflow
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…
Questions about cleanup.
- Which coding agents can use cleanup?
- cleanup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

