ai-slop-cleaner

Identify and fix AI-generated slop in code while preserving behavior.

24|2|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/Orinks/AccessiWeather --skill ai-slop-cleaner-orinks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/Orinks/AccessiWeather/tree/main/.codex/skills/ai-slop-cleaner
Command: npx skills add https://github.com/Orinks/AccessiWeather --skill ai-slop-cleaner-orinks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI-generated slop accumulates during rapid AI-assisted development; this skill provides a regression-tests-first cleanup workflow to restore clarity while preserving behavior.

Core Features & Use Cases

  • Bounded scope: constrain cleanup to changed or requested files to avoid blast-radius changes.
  • Pass-based cleanup: perform passes in order: dead code deletion, duplicate removal, naming/error handling cleanup, and test reinforcement.
  • Evidence-rich reporting: produce a concise report with changes, tests, and risks.

Quick Start

Run the regression-tests-first cleanup pass on the target files, starting with the most impactful smells first.

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

To clean up AI-generated code without breaking behavior, use a regression-tests-first workflow that deletes dead code and refactors noisy paths while validating that existing functionality remains intact.

What is the best way to remove dead code and duplicates from AI-assisted development?

The best way to remove dead code and duplicates from AI-assisted development is to perform explicit cleanup passes in order, starting with dead code deletion and duplicate removal, followed by naming and error handling cleanup.

Can I restrict AI code cleanup to only changed files to limit blast radius?

Yes, you can restrict AI code cleanup to changed files by setting a bounded scope, which confines the refactoring and dead code deletion to a defined scope and prevents blast-radius changes across the entire project.

How does a regression-tests-first workflow handle code refactoring?

A regression-tests-first workflow handles code refactoring by reinforcing tests before modifying code, ensuring that dead code deletion and duplicate removal passes preserve the original behavior and produce evidence-rich reports.

What are the limitations of automated AI slop cleanup?

Automated AI slop cleanup is limited by its scope boundaries; it should not be used for unbounded refactoring outside requested files, and it relies on existing regression tests to safely verify behavior preservation.