AI Slop Cleaner

•
6
•

Refactors and streamlines AI-generated code by removing redundancy, dead code, and unnecessary abstractions through a test-driven workflow.

The AI Slop Cleaner skill provides a disciplined, step-by-step framework for improving the quality of AI-generated outputs that feel bloated, repetitive, or over-engineered. By prioritizing regression tests to lock in behavior before any changes are made, it allows developers to safely eliminate 'slop'—such as dead code, redundant logic, and leaky abstractions—without the risk of broad, breaking rewrites. This skill is particularly effective for hardening experimental code into production-ready logic while maintaining a minimal and evidence-dense audit trail of all improvements made.

Key Features

01Bounded scope support for specific file lists or feature areas
026 GitHub stars
03Multi-pass cleanup covering dead code, duplication, and naming
04Regression-tests-first workflow to ensure behavioral stability
05Evidence-dense reporting of simplifications and remaining risks
06Automated quality gates including linting and type-checking

Use Cases

01Hardening a quick prototype into a clean, test-backed implementation
02Cleaning up repetitive or over-abstracted code generated by LLMs
03Reducing technical debt by removing dead code and boundary violations