agentic-clean-ai-slop

Remove AI-generated code smells while preserving behavior and running tests.

273|26|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/tmdgusya/roach-pi --skill agentic-clean-ai-slop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-clean-ai-slop
Source: https://github.com/tmdgusya/roach-pi/tree/main/extensions/agentic-harness/skills/agentic-clean-ai-slop
Command: npx skills add https://github.com/tmdgusya/roach-pi --skill agentic-clean-ai-slop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI-generated code often carries patterns and slop that reduce readability and maintainability; this skill cleans that up while preserving behavior.

Core Features & Use Cases

  • One-pass cleanup of AI-generated code to remove unnecessary comments, dead code, and redundant abstractions.
  • Safety-first workflow: enforce tests and preserve functionality to prevent regressions.
  • Use Case: after an AI-generated PR, run this skill to produce shipping-grade, readable code ready for review.

Quick Start

Clean AI-generated code in the current project and run tests to verify behavior.

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 remove AI-generated code smells without changing functionality?

To remove AI-generated code smells without altering functionality, execute a cleanup pass that strips dead code, over-commenting, and unnecessary abstractions. The workflow enforces test execution after each pass to verify behavior preservation.

What are common AI-generated code smells that reduce readability?

Common AI-generated code smells that reduce readability include redundant abstractions, excessive comments, dead code, and unnecessary defensive programming patterns. These slop patterns are targeted for removal during the cleanup process.

Can I clean up AI-assisted code changes across multiple programming languages?

Yes, you can clean up AI-assisted code changes across multiple programming languages. The cleanup process applies broadly to any AI-generated codebase, focusing on universal readability and maintainability improvements rather than language-specific syntax.

Does AI code cleanup require running tests after each refactoring pass?

Yes, AI code cleanup requires running tests after each refactoring pass. This safety-first workflow enforces test execution to prevent regressions and verify that the cleanup preserved the original code's behavior.

What's the best way to prepare AI-generated PRs for code review?

The best way to prepare AI-generated PRs for review is to run a one-pass cleanup that removes unnecessary comments, dead code, and redundant abstractions. This produces shipping-grade, readable code while preserving functionality.