ai-slop-cleaner

ai-slop-cleaner is a skill for Claude Code, Codex from mrzhangguoguo/oh-my-workbuddy. It costs 66 tokens per session (1,890 once invoked), scanned A, original, MIT.

A cleanup workflow for reducing unnecessary, repetitive, duplicated, or poorly structured code while keeping its behavior unchanged. It starts with regression tests, which check that existing behavior still works.

In plain words
What is it for?
Cleaning up AI-generated code, removing dead or duplicate code, improving boundaries, and refactoring small problems with tests and verification.
Why use it?
It makes code cleanup safer by checking behavior before and after each focused change instead of relying on a broad rewrite.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Cleaning up AI-generated code, removing dead or duplicate code, improving boundaries, and refactoring small problems with tests and verification.

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

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/mrzhangguoguo/oh-my-workbuddy/ai-slop-cleaner/github.svg)](https://agentmods.dev/skills/mrzhangguoguo/oh-my-workbuddy/ai-slop-cleaner)
Your own site
<a href="https://agentmods.dev/skills/mrzhangguoguo/oh-my-workbuddy/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/mrzhangguoguo/oh-my-workbuddy/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/mrzhangguoguo/oh-my-workbuddy/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/mrzhangguoguo/oh-my-workbuddy/ai-slop-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,890 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 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.00066 $0.01890
Opus 5 $0.00033 $0.00945
Sonnet 5 $0.00013 $0.00378
Haiku 4.5 $0.00007 $0.00189

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

How it starts

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

Ported from oh-my-codex ai-slop-cleaner. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

AI Slop Cleaner Skill

Reduce AI-generated slop with a regression-tests-first, smell-by-smell cleanup workflow that preserves behavior and raises signal quality.

When to Use

Use this skill when:

  • A code path works but feels bloated, noisy, repetitive, or over-abstracted
  • A user asks to "cleanup", "refactor", or "deslop" AI-generated output
  • Follow-up implementation left duplicate code, dead code, weak boundaries, missing tests, fallback-like code, or unnecessary wrapper layers
  • You need a disciplined cleanup workflow without broad rewrites

Workflow Guidance Alignment

  • Keep outputs concise and evidence-dense unless risk or the user requests more detail.
  • Treat newer user instructions as local workflow updates without discarding earlier non-conflicting constraints.
  • Keep using inspection, tests, diagnostics, and verification until the cleanup is grounded.
  • Proceed automatically through clear, reversible cleanup steps; ask only when a choice materially changes scope or behavior.

Scoped File Lists

  • This skill can accept a file list scope instead of a whole feature area.
  • When the caller provides a changed-files list, keep the cleanup strictly bounded to those files.
  • When invoked as a mandatory deslop pass after a coding run, run on the changed files only, in standard mode unless the caller requests otherwise.

Procedure

  1. Lock behavior with regression tests first

    • Identify the behavior that must not change.
    • Add or run targeted regression tests before editing cleanup candidates.
    • If behavior is currently untested, create the narrowest test coverage needed first.
    • For fallback-like code, cover the primary path and any preserved compatibility/fail-safe fallback before cleanup.
  2. Create a cleanup plan before code

    • List the specific smells to remove.
    • Bound the pass to the requested files/scope.
    • Include fallback findings, classifications, and escalation status in the plan.
    • Order fixes from safest/highest-signal to riskiest.
    • Do not start coding until the cleanup plan is explicit. Track the plan with the task list (TaskCreate/TaskUpdate).

Read the full file on GitHub · 147 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. 12d ago First seen · 147 lines · 66 tokens per session scan A ffb5d49996e5

Subscribe to this mod's changes

ai-slop-cleaner is a skill published in the GitHub repository mrzhangguoguo/oh-my-workbuddy (2 stars, last pushed 2mo ago), licensed MIT. It adds 66 tokens to every session and 1,890 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

agent-watchdog

Use when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, independently investigate the same…

BuilderIO/skills · 115 tokens

flow-next-impl-review

Carmack-level implementation review of changes via the configured backend. Use when asked to review code or a diff in a flow-next repo.

gmickel/flow-next · 34 tokens

flow-next-resolve-pr

Resolve PR review feedback. Fetches unresolved threads, triages, fixes, replies and resolves via GraphQL. Use when asked to address review comments.

gmickel/flow-next · 36 tokens

agent-design-best-practices

Best practices for designing Claude Code agent files (.claude/agents/.md). This skill should be used when writing or reviewing agent markdown files to ensure proper design with focused domains, correct tool access, reusable definitions, and separation of capabilities from lifecycle. Combines Anthropic's official…

majiayu000/claude-skill-registry · 73 tokens

flow-next-worktree-kit

Manage git worktrees (create/list/switch/cleanup) and copy .env files. Use for parallel feature work, isolated review, clean workspace, or when user mentions worktrees.

gmickel/flow-next · 43 tokens

graphify-dotnet

Use graphify-dotnet to generate codebase knowledge graphs, architecture snapshots, and exportable repository maps from .NET or polyglot source trees, with optional AI-enriched semantic relationships. USE FOR: graphify commands; graph JSON, HTML, SVG, Cypher, Markdown, and Obsidian exports; repository map and…

managedcode/dotnet-skills · 125 tokens