1. Habit
  2. Skills
  3. AI Slop Cleaner skill
yeachan-heo · 2K installs

AI Slop Cleaner skill
Runs by itself, after AI code lands.

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

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

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

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after the bounded file scope is cleaned, with at most 2 retries; it does not expand scope on its own.

  1. 01

    Protect behavior

    Your agent identifies what must stay the same and adds the narrowest regression tests first.

  2. 02

    Write the plan

    It bounds the pass to the given files and lists the concrete smells to remove, safest first.

  3. 03

    Classify slop

    It classifies duplication, dead code, needless abstraction, boundary leaks and missing tests.

  4. 04

    Delete first

    It runs one smell-focused pass at a time, dead code, then duplicates, then naming, then tests.

  5. 05

    Run gates

    It keeps regression tests green and runs lint, typecheck and the touched area's tests after each pass.

  6. 06

    Report

    It reports changed files, simplifications, the verification run and remaining risks.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the AI Slop Cleaner skill helps.

Use it when

  • ✓ cleaning bloated or repetitive AI code
  • ✓ removing dead code and wrapper layers
  • ✓ a reviewer-only anti-slop pass

Skip it when

  • – the task is a new feature or redesign
  • – behavior is too unclear to protect with tests

Questions

AI Slop Cleaner skill, answered.

Does it change behavior?

No. It preserves behavior unless you ask otherwise, and locks it with regression tests before editing.

Is it a redesign?

No. It is incremental, deletion-first cleanup, not a new feature or broad redesign.

How do I install the AI Slop Cleaner skill?

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.

Is the AI Slop Cleaner skill free?

Yes. It is published under MIT. Habit is free too.

AI Slop Cleaner. Now as a habit.

Install the AI Slop Cleaner skill and make it a habit: follow https://gethabit.dev/skills/yeachan-heo/ai-slop-cleaner.md

  • Free
  • No account
  • Undo in one line

All yeachan-heo skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by yeachan-heo, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.