ai-slop-remover

ai-slop-remover is a skill for Claude Code from code-yeongyu/lazyclaudecode. It costs 32 tokens per session (1,189 once invoked), scanned A, original, MIT.

A code-cleanup tool for one file at a time. It removes unnecessary comments and overly cautious code while keeping the file's behavior unchanged.

In plain words
What is it for?
Use it to tidy a single source file, remove commented-out code and trivial explanations, and simplify checks or error handling that are not needed.
Why use it?
It reduces clutter and repetitive patterns often added by AI-generated code, without changing what the code does.

Skill for Claude Code

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

Part of the omo plugin — 14 skills, 6 agents, 1 hook, 2 MCP servers shipped together

Good fit Use it to tidy a single source file, remove commented-out code and trivial explanations, and simplify checks or error handling that are not needed.

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

Made for: Claude Code.

Or install omo, the plugin that ships this one along with the rest of its 14 skills, 6 agents, 1 hook, 2 MCP servers.

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-remover

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-yeongyu/lazyclaudecode/ai-slop-remover/github.svg)](https://agentmods.dev/skills/code-yeongyu/lazyclaudecode/ai-slop-remover)
Your own site
<a href="https://agentmods.dev/skills/code-yeongyu/lazyclaudecode/ai-slop-remover"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazyclaudecode/ai-slop-remover/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-remover

Your own site · 80×15
<a href="https://agentmods.dev/skills/code-yeongyu/lazyclaudecode/ai-slop-remover"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazyclaudecode/ai-slop-remover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,189 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.00032 $0.01189
Opus 5.5 $0.00013 $0.00476
Sonnet 5.5 $0.00006 $0.00238
Haiku 4.5 $0.00003 $0.00119

Measured 3mo ago against content hash 072cfcfd669b, 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-remover 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 3mo 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.

plugins/omo/skills/ai-slop-remover/SKILL.md · 142 lines

How it starts

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

You are an expert code refactorer specializing in removing AI-generated "slop" patterns while STRICTLY preserving functionality.

INPUT: Exactly ONE file path. If multiple paths provided, REJECT and instruct to call this agent in parallel.


DETECTION CRITERIA (Specific)

1. Obvious Comments (EXCLUDE: BDD comments like #given, #when, #then, #when/then)

REMOVE:

  • Comments restating the code: x += 1 # increment x
  • Docstrings on trivial methods: """Returns the name.""" for def get_name(): return self.name
  • Section dividers: # ===== HELPER FUNCTIONS =====
  • Commented-out code blocks
  • # TODO: future enhancement without concrete plan
  • # Note: this is important without explaining WHY

KEEP:

  • Comments explaining WHY (business logic, edge cases, workarounds)
  • Links to issues/tickets: # See SPR-1234
  • Non-obvious algorithm explanations
  • Regex explanations
  • Matches to existing code style

2. Over-Defensive Code

REMOVE:

  • Null checks for values that CANNOT be None (e.g., Django request in view)
  • if x is not None and x.attr is not None: when x is guaranteed
  • Try-except around code that can't raise (e.g., dict literal access)
  • isinstance() checks for statically typed parameters
  • Default values for required parameters: def foo(x: str = "") when empty string is invalid
  • Backward-compat shims: _old_name = new_name # deprecated
  • # removed or # deleted comments for removed code
  • Re-exports of unused items
  • Verbose, duplicated, or redundant code / test cases

KEEP:

  • Validation at system boundaries (user input, external API responses)
  • Error handling for I/O operations
  • Null checks for nullable DB fields
  • assertions in test code to matching type expectations

3. Spaghetti Nesting (2+ levels deep)

REFACTOR:

  • Nested if-else chains -> early returns / guard clauses
  • if x: if y: if z: -> if not x: return / if not y: return
  • Nested loops with conditionals -> extract to helper OR use comprehensions
  • Complex ternary a if b else (c if d else e) -> explicit if-else

Read the full file on GitHub · 142 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. 3mo ago First seen · 142 lines · 32 tokens per session scan A 072cfcfd669b

Subscribe to this mod's changes

ai-slop-remover is a skill published in the GitHub repository code-yeongyu/lazyclaudecode (19 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 1,189 once invoked, about $0.0001 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-30.

Related

ai-slop-remover compared with skills from other repositories

ai-slop-remover next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-slop-removercode-yeongyu/lazyclaudecodeSkill196mo agoMITA32Claude Code
code-to-docryanzhao1011/workframeSkill95d agoMITA201Claude Code
code-reviewryanzhao1011/workframeSkill95d agoMITA264Claude Code
architectureAbdurRafay2004/handoffSkill613d agoMITA94Claude Code
code-cleanupasyncswap/skillsSkill121d agoMITA0Claude Code
diffscopeSWHee/diffscopeSkill13mo agoMITA292Claude Code
brooks-sweephyhmrright/brooks-lintSkill1.6kyesterdayMITA178Claude Code