remove-ai-slops

Removes AI-generated code slop from changed files using ten categorized cleanup rules.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/UtsavBalar1231/oh-my-claudeagent --skill remove-ai-slops-utsavbalar1231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-ai-slops
Source: https://github.com/UtsavBalar1231/oh-my-claudeagent/tree/main/skills/remove-ai-slops
Command: npx skills add https://github.com/UtsavBalar1231/oh-my-claudeagent --skill remove-ai-slops-utsavbalar1231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI-generated code often ships with defensive clutter: double-guards, dead fallbacks, redundant re-validation, narrating comments, and speculative abstractions. Manually auditing a diff for these patterns is slow and error-prone, and naive cleanup risks deleting load-bearing validation at trust boundaries. ## Core Features & Use Cases - Ten slop categories: Detects defensive double-guards, dead fallbacks, redundant re-validation, narrating comments, speculative flexibility, premature abstraction, over-broad error swallowing, duplicated shape checks, boilerplate restating defaults, and journal comments. - KEEP rules and trust-boundary proofs: Every category pairs with a rule naming what must survive, and deletions at trust boundaries (user input, API responses, file reads) require constructing the adversarial input case before removal. - Scoped, verifiable workflow: Operates only on the diff or an explicit file list, supports batched delegation to executor agents, and requires running the project's build, lint, and tests after edits. - Use Case: After an LLM generates a feature branch, run this skill on the diff to strip narrating comments and dead fallbacks while preserving the input validation that actually guards external data. ## Quick Start Ask the agent to remove AI slop from the files changed in the current diff and verify the build still passes.

Frequently Asked Questions about remove-ai-slops

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

FAQPage Schema
How do I clean up AI-generated code safely?

Scope the cleanup to the diff or an explicit file list, categorize each candidate cut against the ten slop categories, and apply KEEP rules before deleting anything. Afterward, run the project's build, lint, and test commands to confirm nothing broke.

What kinds of AI code slop does this skill detect?

It detects ten categories: defensive double-guards, dead fallbacks, redundant re-validation, narrating comments, speculative flexibility, premature abstraction, over-broad error swallowing, duplicated shape checks, boilerplate restating defaults, and journal or changelog comments.

When should a defensive guard not be removed?

A guard at a trust boundary, such as user input, an external API response, or a file read, stays unless you can construct the adversarial input that would reach it and prove something else already catches that failure. If the proof fails, the guard remains.

What are the limitations of automated slop removal?

The skill does not touch test assertions, change public function signatures, introduce new abstractions, or rewrite algorithms. Any equivalence claim requiring a proof is treated as a refactor and belongs in a separate change.

Can slop removal be delegated across multiple agents?

Yes. When invoked from a session that supports delegation, the file list is split into small batches handed to executor agents with the category list and KEEP rules attached, so each executor evaluates independently.