ai-slop-cleaner

ai-slop-cleaner is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 25 tokens per session (1,602 once invoked), scanned A, a copy of ai-slop-cleaner, MIT.

A code-cleanup workflow for removing unnecessary, repetitive, or over-abstracted parts of AI-generated code while preserving its intended behavior.

In plain words
What is it for?
It helps simplify working code, remove duplicate or unused logic, reduce unnecessary wrapper layers, improve weak test coverage, or perform a review-only cleanup pass.
Why use it?
It reduces code clutter and limits accidental behavior changes during cleanup by using focused checks and regression protection.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oh-my-copilot plugin — 51 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server shipped together

Good fit It helps simplify working code, remove duplicate or unused logic, reduce unnecessary wrapper layers, improve weak test coverage, or perform a review-only cleanup pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robinnorberg/oh-my-copilot/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 RobinNorberg/oh-my-copilot --skill ai-slop-cleaner
Clone the repo
git clone --depth 1 https://github.com/RobinNorberg/oh-my-copilot

Made for: Claude Code.

Or install oh-my-copilot, the plugin that ships this one along with the rest of its 51 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server.

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/robinnorberg/oh-my-copilot/ai-slop-cleaner/github.svg)](https://agentmods.dev/skills/robinnorberg/oh-my-copilot/ai-slop-cleaner)
Your own site
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/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/robinnorberg/oh-my-copilot/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/ai-slop-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,602 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.
Origin 88% copy Near-identical to another mod 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.00025 $0.01602
Opus 5 $0.00013 $0.00801
Sonnet 5 $0.00005 $0.00320
Haiku 4.5 $0.00003 $0.00160

Measured 11d ago against content hash a133b3eb6516, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

Origin

This is a copy

88% identical to ai-slop-cleaner — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

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

AI Slop Cleaner

Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In OMC, this is the bounded cleanup workflow for code that works but feels bloated, repetitive, weakly tested, or over-abstracted.

When to Use

Use this skill when:

  • the user explicitly says deslop, anti-slop, or AI slop
  • the request is to clean up or refactor code that feels noisy, repetitive, or overly abstract
  • follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
  • the user wants a reviewer-only anti-slop pass via --review
  • the goal is simplification and cleanup, not new feature delivery

When Not to Use

Do not use this skill when:

  • the task is mainly a new feature build or product change
  • the user wants a broad redesign instead of an incremental cleanup pass
  • the request is a generic refactor with no simplification or anti-slop intent
  • behavior is too unclear to protect with tests or a concrete verification plan

OMC Execution Posture

  • Preserve behavior unless the user explicitly asks for behavior changes.
  • Lock behavior with focused regression tests first whenever practical.
  • Write a cleanup plan before editing code.
  • Prefer deletion over addition.
  • Reuse existing utilities and patterns before introducing new ones.
  • Avoid new dependencies unless the user explicitly requests them.
  • Keep diffs small, reversible, and smell-focused.
  • Stay concise and evidence-dense: inspect, edit, verify, and report.
  • Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.

Scoped File-List Usage

This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.

  • Good fit: oh-my-copilot:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md
  • Good fit: a Ralph session handing off only the files changed in that session
  • Preserve the same regression-safe workflow even when the scope is a short file list
  • Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it

Read the full file on GitHub · 146 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. 11d ago First seen · 146 lines · 25 tokens per session scan A a133b3eb6516

Subscribe to this mod's changes

ai-slop-cleaner is a skill published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed 5d ago), licensed MIT. It adds 25 tokens to every session and 1,602 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to ai-slop-cleaner, differing in 8 lines, and is treated as a copy.

Related

Other skills, from other repositories

pr-review

Multi-dimensional review of a PR or feature branch in microsoft/win-dev-skills. Activate on "review my PR / changes / branch", "vet before pushing", "PR review", "is this ready to merge". Fans out parallel sub-agents over skill content, the skill-vs-tool boundary (solution hierarchy), tool correctness…

microsoft/win-dev-skills · 98 tokens

winui-code-review

Code quality review for WinUI 3 apps — MVVM compliance, x:Bind correctness, accessibility, theming, security, and performance. Use before committing to catch issues that the compiler and UI tests won't find.

microsoft/win-dev-skills · 49 tokens

verify

Answer "is this shippable / done?" with evidence before a commit or PR — fires on "verify", "is this done", "ready to ship?", pre-commit or pre-PR. Part of the Agentsmith harness; runs the project's verify phases and never claims "passing" without showing the output (R5).

PromptPartner/agentsmith · 69 tokens

karpathy-guidelines

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code. Derived from Andrej Karpathy's LLM coding pitfalls.

VKirill/claude-lane-stack · 39 tokens

verify-readme-features

Verifies that features listed in a README (or similar documentation) are actually implemented in the codebase. Use when user mentions verify features, check feature list, confirm README, validate documentation claims, or audit feature accuracy. Helps catch stale, missing, or inaccurate feature descriptions.

rlespinasse/agent-skills · 61 tokens

lead-review

Autonomous comprehensive review. Once-through pipeline over /review-health, /review-arch, /review-security, /review-perf, /review-a11y, /review-test, /review-release. Operator-configurable ticket creation at startup — when ON, auto-approves sub-skill ticket proposals per the orchestrator-family contract; when OFF…

chrisallenlane/claude-swe-workflows · 115 tokens