ai-slop-cleaner

Remove dead code and duplicated logic from AI-generated modules.

Updated May 18, 2026
One-click install
npx skills add https://github.com/solitude6060/Yao-skills --skill ai-slop-cleaner-solitude6060
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/solitude6060/Yao-skills/tree/main/skills/ai-slop-cleaner
Command: npx skills add https://github.com/solitude6060/Yao-skills --skill ai-slop-cleaner-solitude6060

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes bloated, repetitive, weakly tested, or over-abstracted “AI-generated slop” while preserving intended behavior and preventing accidental regressions.

Core Features & Use Cases

  • Deletion-first anti-slop workflow: simplifies by removing dead code, duplicate logic, needless wrappers, and boundary violations before adding anything new.
  • Regression-safe editing posture: protects behavior by locking it with narrow regression tests and re-running verification after each smell-focused pass.
  • Optional reviewer-only mode: uses a separate --review pass to validate the cleanup plan, evidence, and changed files without mixing writing and self-approval.

Quick Start

Use the /oh-my-claudecode:ai-slop-cleaner command on the specified target files to draft a bounded, behavior-preserving cleanup plan and implement safe deletions.

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 slop without breaking existing behavior?

To clean up AI-generated code slop safely, apply a regression-first workflow using deletion-first edits. Remove dead code, duplicated logic, needless abstractions, and boundary leaks while locking behavior with narrow regression tests and verification after each pass.

What is a deletion-first code cleanup workflow?

A deletion-first code cleanup workflow simplifies bloated modules by removing dead code, duplicate logic, and boundary violations before adding anything new. This anti-slop approach prevents accidental regressions by enforcing smell-ordered passes and targeted test gates.

How do I remove needless abstractions and dead code during a code review follow-up?

Remove needless abstractions and dead code during a code review follow-up by running incremental cleanup passes on bloated modules. The process enforces smell-ordered deletions, targeted lint and typecheck gates, and produces an evidence-dense report of changed files and remaining risks.

Can I validate a refactoring and cleanup plan without mixing code writing and self-approval?

Yes, you can validate a refactoring and cleanup plan without self-approval by using a reviewer-only mode. This separate validation pass checks the cleanup plan, evidence, and changed files to ensure safe code refactoring without mixing writing and approval logic.

What are the limitations of automated AI slop removal for bloated modules?

Automated AI slop removal for bloated modules requires existing or newly written regression tests to ensure behavior preservation. Without these targeted test, lint, and typecheck gates, safe code cleanup cannot be guaranteed and accidental regressions may occur.

Does ai-slop-cleaner work for incremental refactoring passes on modules that work but feel bloated?

Yes, ai-slop-cleaner works for incremental refactoring passes on modules that work but feel bloated. It drafts a bounded, behavior-preserving cleanup plan and implements safe deletions of dead code, duplicate logic, and boundary leaks using targeted verification gates.