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.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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