remove-ai-slops

Remove AI-generated code slop from branch diffs while preserving behavior.

5|Updated May 17, 2026
One-click install
npx skills add https://github.com/islee23520/lfg --skill remove-ai-slops-islee23520
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-ai-slops
Source: https://github.com/islee23520/lfg/tree/main/skills/remove-ai-slops
Command: npx skills add https://github.com/islee23520/lfg --skill remove-ai-slops-islee23520

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes AI-generated code smells from a focused set of changed files while protecting behavior with regression tests first.

Core Features & Use Cases

  • Behavior-locked cleanup: Pins existing behavior with tests before any edits.
  • Categorized slop removal: Targets comments, dead code, over-defensive checks, duplication, complexity, abstraction issues, and safe performance equivalences.
  • Safe verification: Rechecks the result with tests and quality gates so cleanup stays trustworthy.
  • Use case: Use it when recent branch changes need a careful pass to strip AI-generated patterns without altering public behavior.

Quick Start

Tell the skill to remove AI slops from the current branch changes and preserve behavior with tests.

Frequently Asked Questions about remove-ai-slops

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

FAQPage Schema
How do I remove AI slop from code changes without breaking behavior?

To remove AI slop without breaking behavior, you must pin existing functionality with regression tests first, then apply categorized cleanup to target comments, dead code, and complexity before re-verifying with tests and quality gates.

What is AI slop in refactoring and how do I clean it up safely?

AI slop in refactoring refers to generated code smells like over-defensive checks, duplication, and unnecessary abstractions. Safe cleanup requires categorizing these patterns, stripping them from changed files, and verifying that public behavior remains unaltered.

Do I need regression tests before cleaning up AI generated code?

Yes, you need regression tests before cleaning up AI generated code. Behavior-locked cleanup requires pinning existing functionality with tests prior to any edits, ensuring that readability improvements and safe refactoring do not alter public behavior.

Can I use automated code cleanup on a branch diff without failing type checks?

Yes, you can apply automated code cleanup to a branch diff without failing type checks. The process requires verifying the refactored result through tests, type checks, and linting, ensuring the cleanup remains trustworthy and behavior preservation holds.

What's the best way to strip AI generated patterns from changed files?

The best way to strip AI generated patterns from changed files is using a regression-locked cleanup approach. This involves targeting categorized slop like dead code and complexity, then validating the result through critical review, tests, and quality gates.

When should I not use automated slop removal on my codebase?

You should not use automated slop removal when your codebase lacks pre-change regression tests. Without tests to pin existing behavior first, applying refactoring, readability improvements, and dead code removal risks altering public behavior and failing verification.