ai-slop-cleaner

Remove redundant wrappers and duplicated logic from AI-generated code.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/oneforce/oh-my-gemini-cli --skill ai-slop-cleaner-oneforce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/oneforce/oh-my-gemini-cli/tree/main/skills/ai-slop-cleaner
Command: npx skills add https://github.com/oneforce/oh-my-gemini-cli --skill ai-slop-cleaner-oneforce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clean up AI-generated code slop without drifting scope or changing intended behavior, providing a bounded, regression-safe cleanup workflow.

Core Features & Use Cases

  • Deletion-first cleanup to remove redundant wrappers, duplicated logic, and weak abstractions.
  • Regression-aware workflow that prioritizes preserving behavior and verification through tests.
  • Optional reviewer-only mode to enable a separate review pass for quality assurance.

Quick Start

Execute a bounded anti-slop cleanup on the target files, guided by a cleanup plan and regression checks to confirm stability.

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

AI slop cleanup removes redundant wrappers and duplicated logic safely by enforcing a plan-first, deletion-first workflow with regression tests and diffs to verify behavior is preserved.

What is the best way to refactor AI-generated code safely?

The best way to refactor AI-generated code safely is using a bounded cleanup workflow that applies a formal cleanup plan alongside regression checks, ensuring changes are traceable and reversible via diffs.

Do I need regression tests before cleaning up AI slop in my changed files?

Yes, regression tests are required before cleaning up AI slop. The workflow uses them to confirm stability and prevent unintended behavior changes, ensuring the cleanup remains strictly bounded and safe.

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

Yes, you can review AI code cleanup changes. The workflow supports an optional reviewer-only mode, allowing a separate review pass for quality assurance before any deletions are finalized.

What limitations exist when deleting redundant wrappers and weak abstractions from AI code?

A key limitation is scope: cleanup is strictly bounded to designated modules or changed files. It must follow a formal cleanup plan and cannot drift scope or alter intended behavior without triggering rollback.

Why does AI slop cleanup require a formal cleanup plan?

AI slop cleanup requires a formal cleanup plan to enforce a deletion-first workflow that maintains safety and traceability. It guides the removal of weak abstractions within a controlled scope, preventing unintended regressions.