ai-slop-cleaner

Remove dead code, duplication, and needless abstractions from scoped files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI‑generated code often contains slop—dead code, duplication, needless abstractions, boundary violations, and missing tests—that makes maintenance painful and risks regressions.

Core Features & Use Cases

  • Regression‑test first: Locks behavior before any modifications.
  • Structured smell removal: Dead code deletion, duplicate removal, naming/error handling cleanup, and test reinforcement executed in separate passes.
  • Quality gates: Enforces lint, type‑checking, test suites, and static/security scans.
  • Evidence‑dense reporting: Generates a concise report of changes, simplifications, and remaining risks.
  • Scoped operation: Works on whole feature areas or a provided list of changed files, integrating with Ralph workflows.

Quick Start

Run the AI Slop Cleaner on the changed files to remove dead code, duplication, and unnecessary abstractions while preserving behavior.

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 from my codebase?

To remove AI-generated code slop, you can apply automated cleanup passes that delete dead code, eliminate duplication, and refactor needless abstractions while locking behavior with regression tests.

How do I refactor redundant AI implementations without causing regressions?

Refactoring redundant AI implementations safely requires locking behavior with regression tests first, then executing structured smell removal passes, and finally enforcing quality gates like lint and type checks.

What is AI code slop and how does it affect code quality?

AI code slop consists of dead code, duplication, needless abstractions, and missing tests that make maintenance painful. It degrades code quality by introducing boundary violations and increasing regression risks.

Can I run automated code cleanup on a specific list of changed files?

Yes, automated code cleanup can operate on a scoped list of changed files or entire feature areas. It processes the provided files to remove bloat and generate an evidence-dense report of changes.

How do I enforce quality gates after cleaning up duplicated code?

To enforce quality gates after cleaning up duplicated code, run lint, type-checking, test suites, and static analysis scans. This ensures the refactored code passes security and quality checks.