AI Code Cleaner & Deslop
Removes AI-generated code smells, excessive complexity, and dead code while safely locking behavior with automated regression tests.
The Remove AI Slops skill automatically detects and cleans up unwanted AI-generated artifacts, boilerplate, and antipatterns across git branches or specific file lists. Before altering code, it locks existing behavior by creating and running narrow regression tests. It then performs structured multi-pass refactoring across 10 distinct categories—such as eliminating obvious comments, unwinding over-defensive error handling, flattening deep nesting, removing single-use abstractions, and modularizing oversized files (250+ pure LOC)—before verifying everything against strict quality gates and project test suites.
Key Features
01Splits oversized source modules exceeding 250 pure LOC into single-responsibility units
02Validates all changes against project linters, LSP type checks, and test runner quality gates
03Applies the deletion ladder to reuse standard library utilities before refactoring
04Locks existing software behavior with targeted regression tests prior to cleanup
05Cleans 10 distinct slop categories including dead code, needless abstractions, and over-defensive try/catch blocks
061 GitHub stars
Use Cases
01Polishing AI-generated pull requests and feature branches before submitting for code review
02Refactoring bloated modules and speculative abstractions into clean, idiomatic code
03Standardizing defensive checks, exception handling, and pattern matching across git diffs