with one click
slop
Remove AI-generated code slop from git diffs to maintain code quality
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Remove AI-generated code slop from git diffs to maintain code quality
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Verify understanding after implementation with targeted quizzes
Clarify requirements through targeted questions — uncovers unknown unknowns in specs
Remove AI-generated code patterns that don't match codebase style
Review code for quality, security, and best practices — read-only analysis
Create clear documentation for code and APIs
Audit code for security vulnerabilities — read-only analysis
| name | slop |
| description | Remove AI-generated code slop from git diffs to maintain code quality |
| license | MIT |
| compatibility | cline, claude, opencode, amp, codex, gemini, cursor, pi |
| hint | Use when cleaning up AI-generated code slop in git diffs |
| user-invocable | true |
| metadata | {"audience":"all","workflow":"code-quality"} |
Check the diff against a branch and remove all AI-generated slop introduced in this branch. Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
/slop [branch-name]
/slop mainThis includes:
any to get around type issuesNever change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.
Follow the established coding standards from @CLAUDE.md or conventions:
Simplify code structure by:
Preserve necessary complexity — over-simplification can:
# Compare against main branch
git diff main...HEAD --stat
# Or against specific branch
git diff $1 --stat
For each changed file:
any casts where possible# Show remaining changes
git diff --stat
# Check tests still pass
npm test
x as any to bypass TypeScriptWhen refining code: