Skip to content
Agentmart
Submit a tool

ai-slop-cleaner

Clean AI-generated code — remove unnecessary abstractions, verbose comments, over-engineering

Skill by TheTrustedAdvisor

IndexedMIT★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/thetrustedadvisor-ai-slop-cleaner

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Clean AI-generated code — remove unnecessary abstractions, verbose comments, over-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ai-slop-cleaner

What's inside

Skill name
ai-slop-cleaner
Description
Clean AI-generated code — remove unnecessary abstractions, verbose comments, over-engineering
License
MIT
Instructions
81 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## When to Use

- Code has AI-generated patterns: excessive abstractions, verbose comments, unnecessary error handling
- User says "clean slop", "deslop", "anti-slop"
- After a large generation pass that needs tightening
- Ralph post-implementation cleanup

## AI Slop Patterns to Remove

| Pattern | Example | Fix |
|---------|---------|-----|
| **Verbose comments** | `// This function adds two numbers` above `add(a, b)` | Remove — code is self-evident |
| **Unnecessary abstractions** | `createHelperFactory()` used once | Inline the logic |
| **Over-engineered error handling** | try/catch around `2 + 2` | Remove — can't fail |
| **Feature flags for nothing** | `if (ENABLE_ADDITION) { a + b }` | Remove flag, keep code |
| **Premature generalization** | `BaseAbstractProcessor<T>` with one impl | Remove base class |
| **Backwards-compat shims** | `const _oldName = newName // removed` | Delete entirely |
| **Empty catch blocks** | `catch (e) { /* TODO */ }` | Handle or remove |
| **Console.log debris** | `console.log('DEBUG:', value)` | Remove |

## Workflow

### 1. Identify Changed Files

Determine scope:
- If invoked after ralph/autopilot: use the files changed in that session
- If invoked standalone: ask user for scope, or use `bash: git diff --name-only HEAD~1`

### 2. Analyze

Review the identified files for AI slop patterns: unnecessary abstractions, verbose comments restating code, over-engineered error handling, debug artifacts. Simplify without changing behavior. Delegate to @omg:code-simplifier for systematic cleanup.

### 3. Verify

After cleanup:
- Run build via `bash` — must still compile
- Run tests via `bash` — must still pass
- If anything breaks: revert the specific change

### 4. Report

```
## Slop Cleanup Report

Files cleaned: N
Patterns removed:
- 3× verbose comments (file.ts:12, file.ts:45, file.ts:89)
- 1× unused abstraction (helper.ts → inlined into caller)
- 2× console.log debris

Lines removed: X
Verification: build PASS, tests PASS
```

## Review-Only Mode

If invoked with "review" or "scan": analyze but do NOT make changes. Report findings only.

## Checklist

- [ ] Scope defined (changed files or user-specified)
- [ ] Each change preserves functionality
- [ ] Build passes after cleanup
- [ ] Tests pass after cleanup
- [ ] Report lists every change with file:line

## Trigger Keywords

clean slop, deslop, anti-slop, remove AI patterns

## Example

```bash
copilot -i "clean AI slop in src/"
```

## Quality Contract

- Each change preserves functionality, build+tests pass after cleanup

From TheTrustedAdvisor/omg, MIT.

More from TheTrustedAdvisor/omg

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Apr 8, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from TheTrustedAdvisor

Cite this page

ai-slop-cleaner skill. Agent Mart. https://agentmart.dev/skills/thetrustedadvisor-ai-slop-cleaner (last updated 2026-10-24)