Remove AI Slops
Strips AI-generated code smells from your branch diff, but only after regression tests lock the current behavior.
Dev & CodingAdvanced★ 67,531⑂ 5,507AI score 8/10Last updated: Aug 9, 2026
What it does
This skill finds and removes typical AI-generated "slop" across a bounded scope — your branch diff or an explicit file list. The ordering is the whole point:
- Scope — files changed since
git merge-base main HEAD, excluding deleted, binary, generated and vendored paths. - Lock behavior — write the narrowest regression test for any uncovered behavior and make it green before deleting a single line. No green baseline means STOP.
- Deletion ladder — before trimming smells, ask whether the code should exist at all: delete entirely → reuse an existing repo helper → replace with stdlib/platform native → only then simplify in place.
- Ten slop categories — obvious comments, over-defensive code (
except Exception, emptycatch {}), excessive complexity (nested ternaries, if/elif variant chains →match/case+assert_never,objectannotations), needless abstraction, boundary violations, dead code, duplication, provably-equivalent performance wins, missing tests, and oversized modules (>250 pure LOC, with a mandatory modular split plan). Applied safest-to-riskiest. - Quality gates + critical review — tests, lint, typecheck, security scan; failing hunks get reverted rather than patched over. Three failures on one file escalates to the user.
Every category ships explicit KEEP rules, so WHY-comments, trust-boundary validation and reflection-referenced code survive the pass.
Who it's for
- Reviewers and tech leads triaging large AI-authored pull requests
- Teams drowning in restating comments, redundant try/except, and single-use wrappers
- Developers who want automated refactoring with a hard "behavior must not change" guarantee
- Architects enforcing file-size and complexity budgets across a codebase
Examples
- PR cleanup: say "remove AI slop on this branch" and get regression tests added, dead code and over-defensive guards removed, plus a report with per-gate results and net LOC delta.
- Breaking up a monster file: a 420-pure-LOC
service.pygets a responsibility-based split plan presented for approval first, then clean modules with re-export-only__init__.py. - Safe performance fixes: a list scan inside a loop becomes a set lookup (O(n²)→O(n)) when equivalence is obvious, while ambiguous algorithm changes land in the "Skipped" list with a stated reason.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the packages/shared-skills/skills/remove-ai-slops folder from the GitHub repo code-yeongyu/oh-my-openagent into my ~/.claude/skills/remove-ai-slops/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent && mkdir -p ~/.claude/skills && cp -r /tmp/oh-my-openagent/packages/shared-skills/skills/remove-ai-slops ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository into a temp folder:
git clone https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent - Create the skills directory if needed:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/oh-my-openagent/packages/shared-skills/skills/remove-ai-slops ~/.claude/skills/ - Verify:
ls ~/.claude/skills/remove-ai-slops/SKILL.md - Restart Claude Code, open your project repo, and ask it to "remove ai slops" or "deslop this branch".
- Always run it from a clean, committed branch so you can inspect
git diffand revert if needed. - Note: the parallel
deepagent batching andcheck-no-excuse-rules.pyare tooling from the source repo. If they're unavailable, tell Claude to run the phases sequentially and count LOC with the providedawkone-liner.
View source on GitHub ↗License: NOASSERTION