AI slop cleaner. Activated when the user says "clean up", "remove slop", "polish code", "review for slop", "AI artifacts", "deslop", or wants to clean LLM-generated code patterns. Also auto-activated after /implement as a final pass.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
AI slop cleaner. Activated when the user says "clean up", "remove slop", "polish code", "review for slop", "AI artifacts", "deslop", or wants to clean LLM-generated code patterns. Also auto-activated after /implement as a final pass.
allowed tools
Read, Write, Edit, Grep, Glob
AI Slop Cleaner
Remove patterns that LLMs typically introduce: unnecessary comments, over-abstraction,
verbose code, dead code, and "AI verbal tics." The writer and the reviewer MUST be
different passes — never self-approve a cleanup.
Rules
Scope first: identify which files to clean (args, or git diff --name-only HEAD~3)
Read before editing: always read the full file before making changes
One category at a time: go through the checklist in order, not all at once
Preserve behavior: cleaning must NOT change functionality — only remove noise
Run tests after: if tests exist, run them after cleanup to confirm nothing broke
Report: list every change made with before/after snippets
Slop Patterns Checklist
1. Unnecessary comments
Comment restates the function/variable name: // Get the user above getUser()
Section headers in small files: // --- Imports ---, // Constructor
Comments should describe what the code does NOW, not why it was changed.
Code is read in a timeless present — change history belongs in git, not in source.
Past tense verbs in comments: "Added", "Fixed", "Changed", "Refactored", "Updated", "Removed", "Moved", "Replaced", "Converted"
Change-tracking language: "now uses", "no longer", "instead of", "was previously", "used to be"
PR/commit language in code: "as per review", "per discussion", "as requested"
Comments that explain the diff rather than the current state
BAD (temporal contamination):
// Added mutex to fix race condition in user cache
// Refactored to use factory pattern for better testability
// Changed from array to Set for O(1) lookup performance
// Fixed bug where null users caused crash
GOOD (timeless present):
// Mutex serializes concurrent cache access
// Factory pattern decouples creation from usage
// Set provides O(1) membership checks
// Guard clause rejects null users before processing
Language-specific patterns
[SPEC] Add patterns for your stack:
TypeScript / JavaScript
any type used as shortcut instead of proper typing