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…
от civitai★ 7 333 звезды на GitHubОб этом скилле
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.mdline 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-reviewreturns exact replacement text. Relay it verbatim rather than paraphrasing — paraphrasing it is how the next drift starts.- A
claim-reviewfinding 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
Установить cleanup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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 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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cleanup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic