ai-slop-cleaner

Remove dead code and duplicate logic from AI-generated code without changing behavior.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/cheafi/Trading-bot-CC --skill ai-slop-cleaner-cheafi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/cheafi/Trading-bot-CC/tree/main/.github/skills/ai-slop-cleaner
Command: npx skills add https://github.com/cheafi/Trading-bot-CC --skill ai-slop-cleaner-cheafi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you clean up AI-generated code that has unnecessary complexity, duplicated logic, and dead code, while preserving the original behavior to prevent regressions.

Core Features & Use Cases

  • Deletion-first slop cleanup: Removes dead code, unused imports, wrappers, and unreachable branches before attempting any refactors.
  • Regression-safe workflow: Runs a baseline test pass, verifies after each cleanup step, and keeps changes scoped to what you specify.
  • Bloat and over-abstraction detection: Targets duplicated logic, over-abstracted single-use helpers, and overly obvious comments that add noise.

Quick Start

Run ai-slop-cleaner on the pull request diff in review mode by saying: "deslop, anti-slop, clean up this code --review for .github/skills/ai-slop-cleaner".

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 dead code and bloat from AI-generated code without causing regressions?

To remove AI-generated code bloat safely, run a baseline test pass first, then delete dead code, duplicate logic, and unnecessary wrappers step by step, re-running tests after each change to ensure behavior is preserved.

What is the best way to clean up over-abstraction and unused imports in AI-generated code?

Cleaning up over-abstraction in AI-generated code involves a deletion-first workflow: remove dead code, unreachable branches, and single-use helpers before refactoring, verifying existing tests after each step to prevent behavior changes.

Can I refactor AI-generated code if I don't have existing tests for regression safety?

Regression safety in AI code cleanup requires existing tests to run as a baseline and after each step. Without baseline test verification, stepwise simplification and dead code removal cannot safely guarantee unchanged behavior.

Does AI slop cleanup change the functional behavior of my codebase?

AI slop cleanup does not change functional behavior. It removes duplicated logic, unnecessary abstractions, and unreachable branches while keeping changes scoped, requiring test verification after each step to ensure behavior remains identical.

How do I start a scoped refactoring request to remove duplicate logic and wrappers?

To start scoped refactoring for wrapper cleanup and duplicate logic removal, trigger a review mode on your pull request diff, which applies a deletion-first workflow and stepwise simplification with baseline test verification.

When should I avoid using an automated deletion-first workflow for code cleanup?

You should avoid a deletion-first workflow for code cleanup when you cannot run existing tests for regression safety, as the process requires baseline test verification and re-running tests after each step to prevent breaking behavior.