AI Slop Cleaner
Systematically removes AI-generated bloat and redundant code patterns while ensuring functional integrity through rigorous test verification.
AI Slop Cleaner is a post-implementation hygiene tool designed to refine code generated by AI agents. It addresses the common issue of 'AI slop'—code that works but adds unnecessary complexity, such as dead imports, debug remnants, and over-engineered abstractions. By employing a non-negotiable, seven-pass regression-safe workflow, the skill applies optimizations and verifies them against your test suite, automatically reverting any change that causes a failure. This ensures your codebase remains lean, readable, and maintainable without risking regressions.
Key Features
01Automatic reversal of changes that break existing test suites
02Seven-pass optimization strategy covering dead code, debug logs, and over-engineering
03Customizable exclusion via .slopignore files for legacy or generated paths
04501 GitHub stars
05Regression-safe workflow that mandates test verification after every individual pass
06Detailed metrics reporting including lines removed and reduction percentages
Use Cases
01Simplifying over-engineered design patterns and premature abstractions in growing projects
02Post-generation cleanup after high-volume AI code implementation to remove padding
03Routine codebase maintenance to eliminate technical debt and redundant comments