agentleFS
erkandoganerkandogan/oh-my-team/skills/ai-slop-remover/SKILL.md

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.

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
  1. Distinctive:

    Read the target files

    line 53
  2. Distinctive:

    Ask for approval before making changes

    line 56
  3. Distinctive:

    Run diagnostics to verify nothing broke

    line 58
  4. Distinctive:

    NEVER remove functional code

    line 62
  5. Distinctive:

    ONLY remove genuine slop - when in doubt, leave it

    line 64
  6. Distinctive:

    Keep documentation for public APIs

    line 66

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 counter above counter++
  • 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 undefined returns

Process

  1. Read the target files
  2. Identify slop patterns
  3. Present findings grouped by category
  4. Ask for approval before making changes
  5. Apply changes, preserving all functional code
  6. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.