ai-slop-cleaner

ai-slop-cleaner is a skill for Claude Code, Codex from vibeeval/vibecosystem. It costs 50 tokens per session (3,097 once invoked), scanned A, original, MIT.

A cleanup process for removing unnecessary code left by AI-generated implementations while keeping the required behavior. It checks items such as dead imports, unused variables, debug output, and needless abstractions.

In plain words
What is it for?
Use it after implementing a feature to remove clutter in repeated passes, running tests after each pass.
Why use it?
It makes code easier to understand and maintain after an AI has added working but redundant or overly complicated parts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it after implementing a feature to remove clutter in repeated passes, running tests after each pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vibeeval/vibecosystem/ai-slop-cleaner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vibeeval/vibecosystem --skill ai-slop-cleaner
Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-slop-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/skills/vibeeval/vibecosystem/ai-slop-cleaner/github.svg)](https://agentmods.dev/skills/vibeeval/vibecosystem/ai-slop-cleaner)
Your own site
<a href="https://agentmods.dev/skills/vibeeval/vibecosystem/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/vibeeval/vibecosystem/ai-slop-cleaner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-slop-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/skills/vibeeval/vibecosystem/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/vibeeval/vibecosystem/ai-slop-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.03097
Opus 5.5 $0.00020 $0.01239
Sonnet 5.5 $0.00010 $0.00619
Haiku 4.5 $0.00005 $0.00310

Measured 2mo ago against content hash afaf01465972, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-slop-cleaner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ai-slop-cleaner/SKILL.md · 421 lines

How it starts

The opening of the file, as written. The whole thing — 421 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Slop Cleaner

AI code generation produces working code. It also produces unnecessary code alongside it. This skill removes the unnecessary parts while keeping everything that matters.

What Is "AI Slop"?

AI slop is code that:

  • Works, but shouldn't exist
  • Adds complexity without adding value
  • Was clearly generated to pad a response rather than solve a problem
  • Suggests the author wasn't thinking, just generating

Common slop categories and their signals:

Category Signal
Dead imports Imported but never referenced in the file
Unused variables Declared, never read
Commented-out code Blocks of // old code or /* removed */
Debug remnants console.log, print(), debugger, fmt.Println
Obvious comments // increment counter above count++
Redundant JSDoc @param name - the name above name: string
Premature abstractions A factory that creates exactly one thing
One-use helpers Private function called exactly once, trivially inlinable
Overly generic types <T extends object> when T is always User
Over-parameterized fn(a, b, c, d, e) where 4 params never vary
Unreachable branches if (false) or if (isLoggedIn && !isLoggedIn)
Speculative features Code paths for requirements that don't exist
Copy-paste duplication Two blocks identical except one variable name
Placeholder remnants TODO: implement, lorem ipsum, example data in prod

The Prime Directive

Tests are sacred. Never clean test files.

Tests exist to protect behavior. Any cleanup that breaks a test reveals that the "slop" was actually load-bearing. That is good information. The test wins.

Regression-Safe Workflow (Non-Negotiable)

BEFORE ANYTHING: Run full test suite → all tests must pass (baseline)

FOR EACH PASS:
  1. Identify targets for this pass category
  2. Apply cleanup
  3. Run tests
  4. If tests pass: keep cleanup, continue
  5. If tests fail: git checkout -- . (revert), skip this pass category
  6. Log what was reverted and why

AFTER ALL PASSES: Run full test suite → confirm all tests still pass
Report: lines removed, files touched, passes skipped, reason for each skip

Read the full file on GitHub · 421 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 421 lines · 50 tokens per session scan A afaf01465972

Subscribe to this mod's changes

ai-slop-cleaner is a skill published in the GitHub repository vibeeval/vibecosystem (539 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 3,097 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ai-slop-cleaner compared with skills from other repositories

ai-slop-cleaner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-slop-cleanervibeeval/vibecosystemSkill5392d agoMITA50Claude Code, Codex
auditoliver-kriska/claude-elixir-phoenixSkill573yesterdayMITA35Claude Code
code-review-webrampstackco/claude-skillsSkill1.0k11d agoMITA121Claude Code
java-code-reviewsivaprasadreddy/sivalabs-agent-skillsSkill1947d agoMITA64Claude Code
polish-codetobihagemann/turboSkill41914d agoMITA67Claude Code, Codex
simplify-codetobihagemann/turboSkill41914d agoMITA81Claude Code, Codex
ontoly-software-graphanbeime/skillSkill9.3ktodaynoneA41Claude Code, Codex