slop-cleaner

slop-cleaner is a skill for Claude Code from rtazima/claude-proj-blueprint. It costs 65 tokens per session (1,499 once invoked), scanned A, original, MIT.

A code-cleanup practice for removing patterns often added by AI, such as unnecessary comments, excessive structure, verbose code, unused code, and repetitive wording.

In plain words
What is it for?
Use it to polish selected files, review recent changes for AI-generated clutter, or perform a final cleanup after implementing a feature.
Why use it?
It reduces code noise while requiring behavior to stay unchanged and tests to be run after cleanup.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it to polish selected files, review recent changes for AI-generated clutter, or perform a final cleanup after implementing a feature.

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

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 slop-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/slop-cleaner/github.svg)](https://agentmods.dev/skills/rtazima/claude-proj-blueprint/slop-cleaner)
Your own site
<a href="https://agentmods.dev/skills/rtazima/claude-proj-blueprint/slop-cleaner"><img src="https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/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 slop-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/skills/rtazima/claude-proj-blueprint/slop-cleaner"><img src="https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/slop-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 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.00065 $0.01499
Opus 5 $0.00032 $0.00749
Sonnet 5 $0.00013 $0.00300
Haiku 4.5 $0.00006 $0.00150

Measured 10d ago against content hash cbd3d5213be0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

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 10d 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.

.claude/skills/slop-cleaner/SKILL.md · 140 lines

How it starts

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

AI Slop Cleaner

Remove patterns that LLMs typically introduce: unnecessary comments, over-abstraction, verbose code, dead code, and "AI verbal tics." The writer and the reviewer MUST be different passes — never self-approve a cleanup.

Rules

  1. Scope first: identify which files to clean (args, or git diff --name-only HEAD~3)
  2. Read before editing: always read the full file before making changes
  3. One category at a time: go through the checklist in order, not all at once
  4. Preserve behavior: cleaning must NOT change functionality — only remove noise
  5. Run tests after: if tests exist, run them after cleanup to confirm nothing broke
  6. Report: list every change made with before/after snippets

Slop Patterns Checklist

1. Unnecessary comments

  • Comment restates the function/variable name: // Get the user above getUser()
  • Section headers in small files: // --- Imports ---, // Constructor
  • Obvious explanations: // Increment counter above counter++
  • JSDoc/docstrings that only restate the signature with no added insight
  • // TODO without context or assignee (either add context or remove)

2. Over-abstraction

  • Single-use interfaces/types that could be inline
  • Wrapper functions that only call one thing with no added logic
  • Abstract factory / Strategy / Builder for something with one implementation
  • Config objects for values that will never change
  • Event emitters with a single listener

3. Redundant type assertions

  • as Type where the type is already inferred by the compiler
  • ! non-null assertions where the value is guaranteed non-null
  • Explicit return types that match the inferred type and add no clarity
  • String(x) or Number(x) where x is already that type

4. Excessive logging

  • console.log / logger.debug on every function entry/exit
  • Logging the same data that is already in the request/response
  • Logging inside tight loops (performance hazard)
  • Debug logs left from development (not guarded by env/level)

Read the full file on GitHub · 140 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. 10d ago First seen · 140 lines · 65 tokens per session scan A cbd3d5213be0

Subscribe to this mod's changes

slop-cleaner is a skill published in the GitHub repository rtazima/claude-proj-blueprint (20 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 1,499 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-30.

Related

Other skills, from other repositories