ai-slop-cleaner

Remove dead code and duplicate logic while preserving intended behavior.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/marcmunoz-uno/jailbreak --skill ai-slop-cleaner-marcmunoz-uno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/marcmunoz-uno/jailbreak/tree/main/skills/ai-slop-cleaner
Command: npx skills add https://github.com/marcmunoz-uno/jailbreak --skill ai-slop-cleaner-marcmunoz-uno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI-generated code often becomes bloated, repetitive, weakly verified, or over-abstracted, making it harder to maintain and review without clearly changing what it does.

Core Features & Use Cases

  • Regression-safe, deletion-first cleanup: removes dead code, duplicates, needless abstractions, and boundary violations while prioritizing small, reversible diffs.
  • Verification-first workflow: adds or runs narrow regression tests to lock intended behavior before editing, then runs quality gates (lint/typecheck/unit/integration/security checks when available).
  • Optional reviewer-only mode: supports a two-step writer/reviewer flow using --review so higher-impact cleanup does not get self-approved in a single pass.

Quick Start

Use the command /oh-my-claudecode:ai-slop-cleaner <target> to clean AI-generated slop while preserving behavior and backing changes with regression verification.

Frequently Asked Questions about ai-slop-cleaner

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

FAQPage Schema
How do I remove AI-generated code slop without changing program behavior?

To remove AI-generated code slop without changing behavior, use a regression-safe cleanup workflow that prioritizes deletion, deduplication, and small reversible diffs. It locks intended behavior with narrow regression tests before applying edits.

What is the best way to clean up over-abstracted and repetitive AI code?

The best way to clean up over-abstracted and repetitive AI code is to apply smell-focused passes that simplify logic and remove dead code, followed by running quality gates like lint, typecheck, and unit tests to verify integrity.

How does regression testing work during AI code deduplication and refactoring?

Regression testing during AI code deduplication involves adding or running narrow tests to lock intended behavior before editing. This protect-first strategy ensures that boundary tightening and logic deduplication do not alter functionality.

Can I use a two-step writer and reviewer workflow for dead code removal?

Yes, you can use a reviewer-only mode for dead code removal by enabling the --review flag. This enforces separation of duties so higher-impact cleanup and refactoring changes are not self-approved in a single pass.

What limitations exist when tightening boundaries in weakly tested AI code?

When tightening boundaries in weakly tested AI code, limitations include the risk of breaking intended behavior if regression tests are absent. The workflow requires writing a cleanup plan and running available quality gates after each pass to mitigate this.

Do I need existing unit tests to run a code cleanup and refactoring workflow?

You do not need existing unit tests to start a code cleanup workflow. The verification-first approach adds or runs narrow regression tests to lock intended behavior before executing any deletion or refactoring edits.