ai-slop-cleaner

Automates bounded, regression-safe cleanup of AI-generated code.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/ClementATH/oh-my-claudecode --skill ai-slop-cleaner-clementath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/ClementATH/oh-my-claudecode/tree/main/skills/ai-slop-cleaner
Command: npx skills add https://github.com/ClementATH/oh-my-claudecode --skill ai-slop-cleaner-clementath

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cleaning AI-generated code slop can introduce drift or risk breaking behavior. This skill provides a bounded, regression-safe workflow to trim noise while preserving intent and tests.

Core Features & Use Cases

  • Bounded cleanup scope: target only changed or explicitly specified files to minimize risk.
  • Regression-first workflow: plan, verify, and only then apply changes, with optional reviewer mode.
  • Clear guidance for detection and elimination of duplication, dead code, and boundary violations across codebases.

Quick Start

Tell the AI to perform a bounded, post-review cleanup of the changed source files in the current project.

Frequently Asked Questions about ai-slop-cleaner

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

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

Safe AI code cleanup requires a regression-proof workflow that plans edits first, classifies code smells, applies risk gating, and verifies regressions before changes are committed. This targets only changed files to minimize drift.

What is the best way to remove dead code and duplication from AI-generated source files?

Removing AI code slop like dead code and duplication works best through bounded cleanup sessions that target explicitly specified files. This approach applies smell classification and risk gating to preserve intent while trimming noise.

Can I review AI code cleanup changes before they are applied to my project?

Yes, you can use a reviewer-only mode to inspect planned AI code cleanup changes before execution. This regression-first workflow verifies behavior first, ensuring you maintain explicit scope controls over the refactoring process.

Does bounded code cleanup work on large existing codebases or just changed files?

Bounded code cleanup targets only changed or explicitly specified files to minimize risk, rather than processing entire large codebases at once. This scoped approach prevents unintended behavioral drift when removing AI-generated slop.

When should I avoid using automated AI code cleanup tools?

You should avoid automated AI code cleanup when lacking a defined workflow for plan-first edits and regression verification. Without explicit scope controls and risk gating, removing AI slop can easily introduce behavioral drift or break tests.

How do I set up a regression-first workflow for refactoring AI code slop?

Setting up a regression-first workflow for AI code slop involves defining bounded cleanup scopes, planning edits, classifying smells, and verifying regressions. Tell the AI to perform a bounded, post-review cleanup of changed source files.