ai-slop-cleaner

ai-slop-cleaner is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 41 tokens per session (999 once invoked), scanned A, original, MIT.

A cleanup pass for code produced with AI tools. It removes repeated comments, unnecessary layers, and template-like code while keeping the program's behavior unchanged.

In plain words
What is it for?
Use it after an AI-assisted implementation, before a code review, or as a standalone cleanup of an existing codebase.
Why use it?
AI-written code can be longer and more complicated than needed, making it harder to read and review. This helps tidy that code without changing its logic.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it after an AI-assisted implementation, before a code review, or as a standalone cleanup of an existing codebase.

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

Made for: Claude Code.

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/random6913/claude-code-superkit/ai-slop-cleaner/github.svg)](https://agentmods.dev/skills/random6913/claude-code-superkit/ai-slop-cleaner)
Your own site
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/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/random6913/claude-code-superkit/ai-slop-cleaner"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/ai-slop-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 999 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.00041 $0.00999
Opus 5.5 $0.00016 $0.00400
Sonnet 5.5 $0.00008 $0.00200
Haiku 4.5 $0.00004 $0.00100

Measured 12d ago against content hash 69af03f1d68a, 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 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.

packages/codex/skills/ai-slop-cleaner/SKILL.md · 47 lines

How it starts

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

AI Slop Cleaner

Improve readability by removing demonstrated redundancy without changing behavior. “AI-generated” appearance is a search hint, not evidence that code is wrong or disposable. A clean result with no changes is valid. Use after implementation or before review; in dev-orchestrator, these are Phase 7 — Implement and Phase 12 — Review, not a substitute for its intervening acceptance gates.

Scope and authority

Start with the request, target diff/paths, applicable project instructions, relevant style/lint configuration, and tests/contracts. Review requests are read-only; cleanup requests permit only authorized behavior-preserving edits. Inspect relevant callers, exports, generated-code markers, and framework use before deciding something is redundant. Preserve dirty work owned by others.

If the scope or evidence is ambiguous, ask the question that resolves it and leave the uncertain code unchanged. Do not sweep the repository, reformat unrelated code, rename public APIs, add features, change configuration, or make external writes because of this role. Report logic/security defects separately for bounded authorized follow-up.

Preserve Go example // Output: lines, cgo preambles, executable doctests, runtime docstrings and locals with effectful initializers. Inlining a helper containing defer or finally can move the cleanup boundary. Treat those as behavior changes until the affected control path establishes equivalence.

Assess candidates, not quotas

  • Comments: remove prose that adds no information beyond nearby code when project conventions allow. Preserve rationale, warnings, meaningful TODOs, API documentation, licenses, directives, generated markers, compiler/linter controls, and tooling annotations. A comment describing “what” can still document a public contract.
  • Helpers and abstractions: consider simplifying wrappers, factories, strategies, generic types, interfaces, or speculative flags only when their purpose and consumers are understood. One-use helpers may express a domain, testing, transaction, resource-lifetime, or side-effect boundary; one implementation can still justify an interface. Neither count is a deletion rule.
  • Compatibility and apparent dead code: inspect public exports, indirect/reflection-based consumers, serialization, framework callbacks, and generated uses. Preserve required parameter positions, _ placeholders, default arms, and re-exports unless evidence establishes removal is safe within scope. Type exhaustiveness does not prove external/runtime inputs cannot reach a branch.
  • Template residue: identify unnecessary assertions, unreachable scaffolding, empty handlers, and incomplete TODOs, but distinguish redundancy from missing behavior. Changing a swallowed error into logging, propagation, retry, or failure handling changes behavior and is not cleanup; report it separately.
  • Style: simplify needless locals, prefixes, boolean wrappers, or verbose names only when supported by local idiom and language semantics. Preserve return types, truthiness/coercion, evaluation order, side effects, resource cleanup, public signatures, and observable behavior. A shorter expression is not automatically equivalent.

Read the full file on GitHub · 47 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 Changed · +2 lines 69af03f1d68a
  2. 1mo ago Changed · -74 lines · +16 tokens per session 0f9375439761
  3. 3mo ago First seen · 119 lines · 25 tokens per session scan A 84a233ef4c33

Subscribe to this mod's changes

ai-slop-cleaner is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 999 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-08-31.

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-cleanerRaNDoM6913/claude-code-superkitSkill3yesterdayMITA41Claude Code
two-axis-reviewwhite1024/agent-nextupSkill49d agoMITA62Claude Code, Codex
ai-dev-os-checkyunbow/ai-dev-os-plugin-claude-codeSkill28mo agoMITA68Claude Code
ai-dev-os-scanyunbow/ai-dev-os-plugin-claude-codeSkill28mo agoMITA59Claude Code
ai-dev-os-reviewyunbow/ai-dev-os-plugin-claude-codeSkill28mo agoMITA64Claude Code
ai-dev-os-extractyunbow/ai-dev-os-plugin-claude-codeSkill28mo agoMITA43Claude Code
ai-dev-os-evolveyunbow/ai-dev-os-plugin-claude-codeSkill28mo agoMITA50Claude Code