ai-slop-cleaner

Refactor AI-generated code with regression tests and smell-by-smell cleanup.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/JaCha00/nais2-integration-complete --skill ai-slop-cleaner-jacha00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/JaCha00/nais2-integration-complete/tree/main/.codex/skills/ai-slop-cleaner
Command: npx skills add https://github.com/JaCha00/nais2-integration-complete --skill ai-slop-cleaner-jacha00

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the cleanup and refactoring of AI-generated code, addressing bloated, noisy, or over-abstracted code bases.

Core Features & Use Cases

  • Behavior Preservation: Focuses on cleaning without changing behavior, utilizing regression tests for confidence.
  • Code Analysis: Categorizes issues from dead code to unnecessary abstractions, including UI/slop considerations.
  • Scalable Cleanups: Offers step-by-step cleanup plans and pass-based refactorings to minimize scope creep.

Quick Start

Apply the 'ai-slop-cleaner' skill to refactor a section of the codebase to enhance signal quality.

Frequently Asked Questions about ai-slop-cleaner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor AI-generated code without breaking existing behavior?

Refactoring AI-generated code without breaking existing behavior requires prioritizing regression tests to establish confidence. The Skill performs smell-by-smell refactoring across files to clean up code while preserving grounded functionality.

What is the best way to remove fallback slop and unnecessary abstractions from my codebase?

Removing fallback slop and unnecessary abstractions is best achieved through structured, pass-based refactoring. This approach categorizes issues from dead code to UI slop, minimizing scope creep while systematically eliminating code duplication.

How do I clean up AI code quality issues like duplication and over-abstraction?

Cleaning up AI code quality issues involves automating the detection and removal of bloated, noisy, or over-abstracted code. The Skill analyzes the codebase to categorize issues and offers step-by-step cleanup plans to enhance signal quality.

Does AI code refactoring require regression tests before cleanup?

AI code refactoring strongly relies on regression tests before cleanup to protect existing behavior. Utilizing these tests provides the confidence needed to perform smell-by-smell refactoring and remove fallback slop safely.

Can I use automated code cleanup for large sections of an AI-generated codebase?

Automated code cleanup can be applied to large sections of an AI-generated codebase by using scalable, pass-based refactorings. This method focuses on minimizing scope creep while systematically addressing code smells file by file.

When should I avoid using an automated refactoring tool for AI code?

Automated refactoring for AI code should be avoided when regression tests are unavailable to verify behavior preservation, as the cleanup process relies on them to safely remove unnecessary abstractions and fallback slop without introducing regressions.