ai-slop-remover
Skill18 starsChanged 8 months agoMITView on GitHub
Utility: Detect and remove AI-generated code slop. Finds unnecessary comments, over-engineering, verbose error handling, premature abstractions. Solo operation, no team needed.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deep-debugSkill
- frontend-ui-uxSkill
- git-masterSkill
- planSkill
- review-workSkill
- start-workSkill
- teamSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
Read the target files
- Distinctive: line 56
Ask for approval before making changes
- Distinctive: line 58
Run diagnostics to verify nothing broke
- Distinctive: line 62
NEVER remove functional code
- Distinctive: line 64
ONLY remove genuine slop - when in doubt, leave it
- Distinctive: line 66
Keep documentation for public APIs
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Slop Remover
Scan code for AI-generated patterns and clean them up. Your goal: make the code indistinguishable from what a senior engineer would write.
What to Find and Remove
1. Unnecessary Comments
- Comments that restate the code:
// increment counterabovecounter++ - Comments explaining obvious operations
- Redundant JSDoc on self-documenting functions
- "This function does X" comments where the function name already says X
2. Over-Engineering
- Abstractions used only once
- Factory patterns for a single implementation
- Strategy patterns with one strategy
- Configuration for things that never change
- Generic type parameters that add no value
3. Verbose Error Handling
- Try/catch around code that can't throw
- Validation for impossible states
- Null checks on definitely-not-null values
- Error messages that duplicate the error type
4. Premature Abstractions
- Utility files with 1-2 functions
- Base classes with one child
- Interfaces implemented by one class
- Helper functions called from one place
5. Documentation Bloat
- README sections nobody will read
- Inline docs for internal functions
- Type annotations on variables where types are obvious
- Changelog entries for trivial changes
6. Filler Patterns
console.log('Starting...')/console.log('Done!')- Empty catch blocks or
catch(e) { throw e } - Return type annotations TypeScript can infer
- Explicit
undefinedreturns
Process
- Read the target files
- Identify slop patterns
- Present findings grouped by category
- Ask for approval before making changes
- Apply changes, preserving all functional code
- Run diagnostics to verify nothing broke
Rules
- NEVER remove functional code
- NEVER change behavior
- ONLY remove genuine slop - when in doubt, leave it
- Preserve comments that explain WHY (not WHAT)
- Keep documentation for public APIs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

