deslop-code

deslop-code is a skill for Claude Code, Codex from the-hooman-loop/anti-slop-kit. It costs 71 tokens per session (941 once invoked), scanned A, original, MIT.

A code-cleanup tool that removes unnecessary comments, abstractions, defensive checks, verbose names, boilerplate, and inconsistent formatting.

In plain words
What is it for?
Use it to clean up AI-generated code, reduce over-engineering, remove dead or repetitive code, and make existing code more idiomatic.
Why use it?
It makes code easier to read and maintain by removing clutter without changing the project's established style or useful explanations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to clean up AI-generated code, reduce over-engineering, remove dead or…

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

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 deslop-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/the-hooman-loop/anti-slop-kit/deslop-code.svg)](https://agentmods.dev/skills/the-hooman-loop/anti-slop-kit/deslop-code)
Your own site
<a href="https://agentmods.dev/skills/the-hooman-loop/anti-slop-kit/deslop-code"><img src="https://agentmods.dev/badge/skills/the-hooman-loop/anti-slop-kit/deslop-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 941 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.00071 $0.00941
Opus 5 $0.00036 $0.00470
Sonnet 5 $0.00014 $0.00188
Haiku 4.5 $0.00007 $0.00094

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

Security

Grade A, and why

deslop-code 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 6d 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/deslop-code/SKILL.md · 76 lines

How it starts

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

Deslop code

What counts as AI slop

  • Redundant or obvious comments — comments that restate what the code does line-by-line.
  • Overly verbose names — e.g. userAuthenticationTokenHandler where authToken suffices.
  • Unnecessary abstractions — wrappers, helpers, or interfaces used only once.
  • Excessive defensive code — try/catch or null checks that add no real safety.
  • Generic filler phrases — "Here we…", "This function is responsible for…", "Note that…".
  • Over-modularization — tiny one-use functions that hurt readability.
  • Boilerplate that doesn't help — empty docblocks, type annotations that duplicate obvious types.
  • Inconsistent style — mixed quote styles, spacing, or naming in the same file.

Respect project style (.editorconfig, ESLint, Prettier, existing patterns). If the user or project has explicit style rules, follow those over this skill.

Removal checklist

Apply in order; re-scan after edits.

  1. Comments
    • Remove comments that only repeat the code (e.g. // Loop through items above a for loop).
    • Remove or shorten generic docblocks that add no information.
    • Keep comments that explain why, non-obvious contracts, or real gotchas.
  2. Names
    • Shorten verbose variables/functions to clear, idiomatic names.
    • Use project naming conventions (camelCase vs snake_case, etc.).
  3. Structure
    • Inline one-off helpers used in a single place if it improves readability.
    • Remove unused parameters, imports, and dead code.
    • Prefer language idioms over step-by-step code (.map/.filter vs manual loops where idiomatic).
  4. Defensive code
    • Remove try/catch that only rethrows or logs without adding value.
    • Remove redundant null/undefined checks that can't occur in context.
  5. Style
    • One consistent quote style per file.
    • Consistent spacing and line length (match project or 80/100/120).
    • No trailing whitespace or unnecessary blank lines.

Read the full file on GitHub · 76 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 76 lines · 71 tokens per session scan A 65428a53d70f

Subscribe to this mod's changes

deslop-code is a skill published in the GitHub repository the-hooman-loop/anti-slop-kit (4 stars, last pushed 13d ago), licensed MIT. It adds 71 tokens to every session and 941 once invoked, about $0.0004 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.