agentic-clean-ai-slop

Remove dead code and unnecessary abstractions from AI-generated code while preserving behavior.

3|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/alphabeen/oh-my-jinho --skill agentic-clean-ai-slop-alphabeen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-clean-ai-slop
Source: https://github.com/alphabeen/oh-my-jinho/tree/main/skills/agentic-clean-ai-slop
Command: npx skills add https://github.com/alphabeen/oh-my-jinho --skill agentic-clean-ai-slop-alphabeen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Correct AI-generated code by removing common smells while preserving functional behavior.

Core Features & Use Cases

  • Systematic cleanup: Remove dead code, over-commenting, unnecessary abstractions, and defensive paranoia from AI-produced code.
  • Behavior preservation: Changes are guarded by existing tests and regression checks to ensure no observable behavior change.
  • Use Case: After code generation sessions or PRs, apply this skill to produce cleaner, maintainable code with the same functionality.

Quick Start

Run the cleanup passes on the latest generated code and verify behavior with the existing test suite.

Frequently Asked Questions about agentic-clean-ai-slop

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

FAQPage Schema
How do I clean up AI-generated code without changing its behavior?

AI code cleanup removes dead code, unnecessary abstractions, and over-commenting from AI-generated code while preserving behavior. Existing tests and regression checks guard the refactoring passes to ensure no observable functional change occurs during the cleanup process.

What are common code smells in AI-generated code that require refactoring?

Common code smells in AI-generated code include dead code blocks, excessive or unnecessary commenting, redundant abstractions, and defensive paranoia. These patterns reduce maintainability and should be systematically removed during cleanup passes while verifying behavior with existing tests.

How do I automatically refactor AI code smells after a generation session?

Run automated cleanup passes on the latest generated code to refactor AI code smells like unnecessary abstractions and dead code. The process enforces cleanup rules and runs the existing test suite to verify that functional behavior remains unchanged after the refactoring session.

Can I remove unnecessary abstractions from AI-generated code if I have existing tests?

Yes, you can remove unnecessary abstractions from AI-generated code when existing tests are present. The cleanup process relies on your existing test suite and regression checks to guard the refactoring, ensuring the code quality improves while the observable functional behavior remains strictly unchanged.

Does AI code cleanup work without breaking existing test suites?

AI code cleanup is designed to work without breaking existing test suites by enforcing cleanup rules and running tests immediately. Behavior preservation is a core feature, using your regression checks to validate that no observable behavior change happens when removing dead code or defensive paranoia.

When should I avoid using automated AI code cleanup passes?

You should avoid automated AI code cleanup passes when your software project lacks existing tests or regression checks. Because behavior preservation depends on test validation, attempting to remove unnecessary abstractions or dead code without a test suite risks introducing unobserved functional regressions.