ai-slop-cleaner

Enforce a regression-tests-first cleanup workflow for AI-generated code.

3|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Tienching/oh-my-codebuddy --skill ai-slop-cleaner-tienching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/Tienching/oh-my-codebuddy/tree/main/.codex/skills/ai-slop-cleaner
Command: npx skills add https://github.com/Tienching/oh-my-codebuddy --skill ai-slop-cleaner-tienching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduce AI-generated code slop and improve maintainability by guiding a tightly scoped cleanup workflow that preserves behavior.

Core Features & Use Cases

  • Guided cleanup plan: Creates a scoped plan listing smells to remove and validates scope before editing.
  • Regression-tests-first: Requires targeted regression tests to lock behavior before changes.
  • Bounded scope: Accepts a file list or feature area to limit cleanup to changes and avoid broad rewrites.

Quick Start

Identify the target files or area and run the cleanup pass to begin.

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

AI code cleanup removes generated slop like duplication and needless abstraction by enforcing a regression-tests-first workflow. This approach requires targeted tests to lock behavior before any modifications, ensuring safe refactoring without breaking existing functionality.

What is a regression-tests-first code cleanup workflow?

A regression-tests-first cleanup workflow requires writing targeted tests to lock current behavior before removing code smells like duplication or dead code. This bounded process validates scope, performs stepwise passes, and produces an evidence-rich report of all changes.

How do I scope AI code refactoring to avoid broad rewrites?

Scope AI code refactoring by providing a specific file list or changed feature area to limit cleanup. This bounded approach prevents broad rewrites by focusing only on caller-provided files and validating the scope before any editing begins.

What types of code smells does AI-assisted code cleanup remove?

AI-assisted code cleanup removes smells such as duplication, dead code, needless abstraction, and boundary violations. It targets these specific issues within a bounded scope to improve maintainability while preserving original software behavior.

Can I use regression-first cleanup on a specific feature area instead of the whole project?

Yes, regression-first cleanup accepts a file list or feature area to limit modifications. It strictly bounds the cleanup scope to caller-provided files, preventing unintended broad rewrites across the entire project.

When should I not use a bounded AI code cleanup workflow?

Avoid bounded AI code cleanup when you lack the ability to define a specific file list or feature area. The workflow requires a bounded scope and a regression test gate, making it unsuitable for unscoped or untested legacy codebases.