What problem does it solve?
ai-slop-cleaner removes AI-generated code “slop” like duplicated logic, dead code, needless abstractions, and weakly supported cleanup that would otherwise drift scope or subtly change behavior.
Core Features & Use Cases
- Regression-safe, deletion-first cleanup: prioritizes deleting dead code and consolidating duplicates to keep diffs small and behavior stable.
- Behavior preservation with verification gates: encourages adding or running the narrowest regression tests needed before editing and re-verifying after each cleanup pass.
- Optional reviewer-only workflow (
--review): separates writer changes from reviewer inspection to prevent self-approval of high-impact cleanup without an explicit review step.
- Scoped file targeting: supports cleaning a bounded set of files (e.g., Ralph sessions) to avoid expanding the cleanup surface unintentionally.
Quick Start
Run the skill on the specified file(s) to remove AI slop while locking behavior with targeted regression tests and keeping the changes focused.