slop
Clean AI-generated code slop — deletion-first, regression-safe cleanup without drifting scope
Input: $ARGUMENTS — optional --review flag and/or specific paths to clean.
- Dispatch the
refactor-cleaneragent to run static analysis (knip, depcheck, ts-prune) and identify dead code, duplicates, and unused exports. - Apply the
dog:ai-slop-cleanerskill to clean up AI-generated bloat without breaking behavior.
Flags:
--review— reviewer-only mode: report slop found without making changes
The skill will:
- Lock behavior — Write focused regression tests for the areas to be cleaned (before touching anything)
- Plan — Produce a cleanup plan listing specific slop patterns found: duplicate logic, dead code, wrapper layers, over-abstraction, boundary leaks, weak tests
- Clean (deletion-first) — Remove slop in small, reversible diffs; reuse existing utilities; no new dependencies
- Verify — Run regression tests after each change; revert if behavior changes
- Report — Lines removed, patterns eliminated, tests added or strengthened
Posture: preserve behavior, prefer deletion over addition, keep diffs small and smell-focused.
Use when: "deslop", "anti-slop", "clean this up", or after AI-generated implementation that works but feels noisy. Do NOT use when: redesigning behavior, building new features, or broad architectural changes.