← ClaudeAtlas

cleanlisted

Clean the current branch's diff without changing behavior — naming, dead code, duplication, and the charter's deep-module rules — in one pass, then stop. Use when the user says "clean this diff", "/clean", "cleanup pass", or wants the branch tidied before review or hardening.
ConnorGriffin/skills · ★ 20 · Code & Development · score 66
Install: claude install-skill ConnorGriffin/skills
# Clean One cleanup pass over the code a branch changed. It keeps behavior and the test suite exactly as they were, and it ends with a ledger instead of a verdict. This skill **changes code**. It is not a reviewer: it never scores, never grades, and never emits findings for a human to action inside the diff. Anything it notices outside the diff becomes a follow-up line, never an edit. One pass. When the ledger is written, stop — no second sweep. ## Fixed point The pass is scoped to a diff, so it starts by pinning where that diff begins. Accept an optional ref argument (`/clean <ref>`). With none, the fixed point is the merge-base with the default branch. Resolve it by the rules in [`code-review`'s "Pin the fixed point"](../code-review/SKILL.md#1-pin-the-fixed-point) — the same SHA, branch, tag, PR, and stale-base handling, cited rather than restated. Confirm the diff is non-empty before touching anything. The **scope** is the files changed since that point. Unchanged files are read freely for context — that is how you learn the module that already covers a behavior — but they are not edited. ## Preconditions Discover the repo's test command the way `/ticket` does: read `AGENTS.md` or `CLAUDE.md` for a test line first, then the CI workflows, then package scripts. An argument naming the command overrides discovery. Run it before any edit. * **Green:** proceed, and record the command and result for the ledger. * **Red:** stop. Report the failing output and make no edi