ai-slop-cleaner

Simplify bloated AI-generated code while preserving intended behavior.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/nichobbs/lyric-lang --skill ai-slop-cleaner-nichobbs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/nichobbs/lyric-lang/tree/main/.claude/skills/ai-slop-cleaner
Command: npx skills add https://github.com/nichobbs/lyric-lang --skill ai-slop-cleaner-nichobbs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves bloat and fragility in AI-generated code by removing duplication, dead code, needless wrappers, and boundary leaks while preserving intended behavior.

Core Features & Use Cases

  • Regression-safe anti-slop cleanup: focuses on simplification and deletion-first edits with behavior preservation as the default.
  • Smell-focused cleanup workflow: runs dead-code deletion, duplication removal, naming/error-handling cleanup, then test reinforcement in ordered passes.
  • Reviewer-only mode: supports a --review workflow that drafts and critiques a cleanup plan without performing writer-level changes.

Quick Start

Ask the AI: "Use /oh-my-claudecode:ai-slop-cleaner on src/auth and remove AI slop by deleting dead code and consolidating duplicate logic without changing behavior, and add the smallest regression tests needed first."

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 slop from my codebase without breaking existing functionality?▼

AI slop cleanup removes duplication, dead code, and needless wrappers while preserving intended behavior. A deletion-first workflow runs ordered smell passes for dead-code removal, duplication consolidation, and naming cleanup, locking changes behind regression tests.

What is the best way to refactor AI-generated code that has become bloated and fragile?▼

Refactoring AI-generated code bloat involves simplifying weakly structured implementations through a smell-focused cleanup workflow. This process targets duplication, dead code, and boundary leaks sequentially, ensuring behavior preservation by adding the smallest necessary regression tests first.

Can I review an AI code cleanup plan before any changes are written to my files?▼

Yes, a reviewer-only mode drafts and critiques a cleanup plan without performing writer-level changes. This allows you to verify the intended deletion-first edits and smell-pass ordering before any modifications are applied to your source files.

Does AI slop cleanup work on specific file lists or is it applied to the entire project?▼

AI slop cleanup supports bounded cleanup by explicit file lists or changed-file scope. This means you can target specific directories or modified files for dead code removal and duplication consolidation without scanning the entire project.

What steps are involved in a regression-safe code cleanup workflow?▼

A regression-safe workflow requires adding the smallest regression tests needed first, followed by ordered smell passes. It executes dead-code deletion, duplication removal, naming and error-handling cleanup, then test reinforcement to guarantee behavior preservation.

When should I avoid using automated refactoring tools on AI-generated code?▼

You should avoid automated refactoring when you lack explicit anti-slop intent or cannot provide regression tests. This cleanup method requires a deletion-first, regression-locked workflow, making it unsuitable for untested codebases or vague refactoring requests.