AI Slop Cleaner
Refactors and simplifies AI-generated code by removing redundancy, dead code, and unnecessary abstractions while ensuring regression safety.
The AI Slop Cleaner skill is designed to remediate 'code slop'—the bloated, repetitive, or overly complex code often produced by Large Language Models during iterative development. It follows a rigorous, deletion-first workflow that prioritizes behavioral preservation through mandatory regression testing and evidence-dense reporting. By systematically identifying duplication, dead code, and boundary violations across multiple focused passes, it helps developers maintain lean, production-grade codebases without the risk of scope drift or accidental breaking changes.
Key Features
01Systematic multi-pass cleaning (Dead code, Duplication, Naming, and Test reinforcement)
02Reviewer-only mode for decoupled audit and manual approval of high-impact refactors
03Deletion-first approach to eliminate unnecessary wrappers and 'speculative indirection'
04Automatic generation of evidence-dense reports covering simplifications and verification results
050 GitHub stars
06Regression-safe cleanup workflow that locks behavior with tests before editing
Use Cases
01Removing redundant logic and duplicate helpers left behind after multiple AI-assisted coding sessions
02Cleaning up legacy 'AI slop' in specific modules without changing existing functional behavior
03Simplifying over-abstracted 'wrapper' code to improve maintainability and architectural clarity