$npx -y skills add jmstar85/oh-my-githubcopilot --skill ai-slop-cleanerClean AI-generated code slop with regression-safe workflow. Activate when user says: deslop, anti-slop, AI slop, cleanup slop, clean up this code, remove bloat.
| 1 | # AI Slop Cleaner |
| 2 | |
| 3 | Clean AI-generated code slop without changing behavior. Deletion-first workflow with regression safety. |
| 4 | |
| 5 | ## When to Use |
| 6 | - Code that works but feels bloated, repetitive, or over-abstracted |
| 7 | - Duplicate logic, dead code, wrapper layers, boundary leaks |
| 8 | - `--review` for reviewer-only mode (no changes, just findings) |
| 9 | |
| 10 | ## When NOT to Use |
| 11 | - New feature build or product change |
| 12 | - Broad redesign |
| 13 | - Behavior is unclear and untestable |
| 14 | |
| 15 | ## Principles |
| 16 | - Preserve behavior unless explicitly asked for changes |
| 17 | - Delete before refactoring — removal is safest |
| 18 | - Scope-bounded: only clean what was specified |
| 19 | - Regression-safe: verify tests pass after every change |
| 20 | |
| 21 | ## Slop Signals |
| 22 | - Unnecessary wrapper functions |
| 23 | - Duplicated logic across files |
| 24 | - Over-abstracted single-use helpers |
| 25 | - Dead code / unreachable branches |
| 26 | - Excessive comments restating obvious code |
| 27 | - Premature abstractions (used only once) |
| 28 | |
| 29 | ## Workflow |
| 30 | 1. Identify target files/scope |
| 31 | 2. Run existing tests (baseline) |
| 32 | 3. Apply deletions first (dead code, unused imports) |
| 33 | 4. Simplify remaining code (reduce nesting, merge duplicates) |
| 34 | 5. Re-run tests after each change |
| 35 | 6. Report what was cleaned and verification results |