01
It starts by itself
after AI code lands. Runs in Claude Code routine.
- ↻ after AI code lands
a changed-file set to clean
Bloated AI code trimmed, behavior kept.
Install the AI Slop Cleaner skill and make it a habit: follow https://gethabit.dev/skills/yeachan-heo/ai-slop-cleaner.md
2K installs40K starsMIT licenceSource on GitHub ↗

AI Slop Cleaner
by yeachan-heo · 2K installs
The skill
AI Slop Cleaner cleans AI-generated code with a regression-safe, deletion-first workflow: lock behavior, plan, then remove dead code, duplication and needless abstraction, with an optional reviewer-only mode.
Only when you ask.
The habit
Bloated AI code trimmed, behavior kept.
↻ Runs by itselfafter AI code lands
When does it start? How does it check its work? What does it remember?
Stops after the bounded file scope is cleaned, with at most 2 retries; it does not expand scope on its own.
Your agent identifies what must stay the same and adds the narrowest regression tests first.
It bounds the pass to the given files and lists the concrete smells to remove, safest first.
It classifies duplication, dead code, needless abstraction, boundary leaks and missing tests.
It runs one smell-focused pass at a time, dead code, then duplicates, then naming, then tests.
It keeps regression tests green and runs lint, typecheck and the touched area's tests after each pass.
It reports changed files, simplifications, the verification run and remaining risks.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the AI Slop Cleaner skill helps.
No. It preserves behavior unless you ask otherwise, and locks it with regression tests before editing.
No. It is incremental, deletion-first cleanup, not a new feature or broad redesign.
Copy the prompt at the top into your agent. It installs the skill from yeachan-heo/oh-my-claudecode and sets up the habit. Or run npx skills add yeachan-heo/oh-my-claudecode --skill ai-slop-cleaner.
Yes. It is published under MIT. Habit is free too.
Install the AI Slop Cleaner skill and make it a habit: follow https://gethabit.dev/skills/yeachan-heo/ai-slop-cleaner.md
All yeachan-heo skills →More code skills →
Works in
Made by yeachan-heo, published under MIT. Habit links to the original and never changes it. Is this your skill?