ai-slop-cleaner

Remove dead code and duplication from AI-generated code while preserving behavior.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Leap0920/Clean-Portfolio --skill ai-slop-cleaner-leap0920
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/Leap0920/Clean-Portfolio/tree/main/%25USERPROFILE%25/.openclaude/plugins/cache/omc/oh-my-claudecode/4.14.0/skills/ai-slop-cleaner
Command: npx skills add https://github.com/Leap0920/Clean-Portfolio --skill ai-slop-cleaner-leap0920

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes AI-generated “slop” like duplicated logic, dead code, needless abstractions, and weak verification while preserving the original behavior as much as possible.

Core Features & Use Cases

  • Regression-safe cleanup plan: Start with a behavior-protection and verification approach before editing.
  • Deletion-first workflow: Prefer removing dead code and duplicates before consolidation.
  • Scope control: Optionally operate on a provided file list to avoid drifting into unrelated refactors.
  • Reviewer-only mode: Use --review to inspect cleanup proposals and changed files without self-approving high-impact changes in the same pass.
  • Quality gates + evidence report: Re-run targeted verification and report changed files, simplifications, verification runs, and remaining risks.

Quick Start

Run the command to clean AI slop in your target codebase: /oh-my-claudecode:ai-slop-cleaner src.

Frequently Asked Questions about ai-slop-cleaner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up AI-generated code without breaking existing behavior?▼

To clean up AI-generated code without behavior regressions, apply a deletion-first workflow that prioritizes removing dead code and duplication before consolidation, running focused regression tests and lint gates to verify preserved logic.

What is the best way to remove dead code and duplication from bloated codebases?▼

The best way to remove dead code and duplication is using a plan-before-edit approach that executes deletion-first refactoring, validates boundary leaks, and runs targeted verification to produce evidence-dense reports of changed files and remaining risks.

Can I limit my code cleanup and refactor to specific files to avoid scope drift?▼

Yes, you can limit code cleanup to specific files by providing a bounded file-scope argument, which constrains the refactor scope to prevent drifting into unrelated changes while still running lint and typecheck gates.

How do I review AI code cleanup proposals before applying high-impact changes?▼

You can review AI code cleanup proposals before applying changes by using a reviewer-only mode, allowing you to inspect suggested deletions, boundary leak fixes, and changed files without self-approving high-impact modifications in the same pass.

Does regression testing work with automated code refactoring to catch boundary leaks?▼

Regression testing works with automated code refactoring by running focused verification gates after removing abstractions and fixing boundary leaks, ensuring intended behavior is preserved while generating evidence-dense reports of remaining risks.