AI Slop Cleaner Task Card
Use this bounded helper for cleanup/refactor/deslop work, not as a competing top-level
workflow. Shared operating invariants live in templates/AGENTS.md; this card defines
scope, smell taxonomy, passes, and evidence.
When to use and inputs
Use when working code is bloated, noisy, repetitive, over-abstracted, or AI-generated; the user requests cleanup/refactor/deslop; or a follow-up left duplicate/dead code, weak boundaries, missing tests, fallback-like paths, or wrappers. Inputs are the requested feature/files and behavior to preserve. A file list scope is valid; keep the pass bounded to it. In the Ralph workflow, run this skill on Ralph's changed files only, standard mode unless explicitly requested otherwise.
Before editing
- Lock behavior with regression tests first: identify behavior to preserve, run/add the narrowest targeted tests, and cover both primary and preserved compatibility/fail-safe fallback paths.
- Create a cleanup plan before code: list scope and smells, include fallback findings/classifications/escalation, and order safest/highest-signal fixes first.
- Inventory fallback-like code in scope: quick hacks, temp…