deslop

deslop is a skill for Claude Code from FradSer/dotclaude. It costs 58 tokens per session (1,388 once invoked), scanned A, original, MIT.

A focused cleanup process for removing low-evidence patterns from a code change without changing its behavior. It targets fabricated type claims, defensive clutter, test-cheating seams, and vague names while keeping tests and types passing.

In plain words
What is it for?
Use it on a diff, uncommitted change set, or named files to remove unsafe casts, unjustified suppressions, mock patches, defensive clutter, and vacuous names.
Why use it?
It helps separate useful code from code that hides mistakes, discards type information, adds unnecessary safeguards, or makes a change harder to understand.

Skill for Claude Code

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

Part of the mattpocock plugin — 49 skills shipped together

Good fit Use it on a diff, uncommitted change set, or named files to remove unsafe casts, unjustified suppressions, mock patches, defensive clutter, and vacuous names.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fradser/dotclaude/deslop
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 FradSer/dotclaude --skill deslop
Clone the repo
git clone --depth 1 https://github.com/FradSer/dotclaude

Made for: Claude Code.

Or install mattpocock, the plugin that ships this one along with the rest of its 49 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fradser/dotclaude/deslop/github.svg)](https://agentmods.dev/skills/fradser/dotclaude/deslop)
Your own site
<a href="https://agentmods.dev/skills/fradser/dotclaude/deslop"><img src="https://agentmods.dev/badge/skills/fradser/dotclaude/deslop/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 deslop

Your own site · 80×15
<a href="https://agentmods.dev/skills/fradser/dotclaude/deslop"><img src="https://agentmods.dev/badge/skills/fradser/dotclaude/deslop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,388 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.00058 $0.01388
Opus 5.5 $0.00023 $0.00555
Sonnet 5.5 $0.00012 $0.00278
Haiku 4.5 $0.00006 $0.00139

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

Security

Grade A, and why

deslop 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 26d 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.

mattpocock/skills/engineering/deslop/SKILL.md · 64 lines

How it starts

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

De-slop

Remove AI slop from a bounded change set without changing behavior. AI slop is the set of low-evidence, low-signal patterns that language-model-generated code tends to emit under completion pressure: fabricated evidence, discarded type information, defensive clutter, test-cheating seams, and vacuous names. The categories are language-neutral: apply them to whatever stack the change set touches.

Run this as a focused pass over a diff, an uncommitted change set, or named files. Never add features, never change public behavior, and never trade a working product for cleanup. Tests and types must stay green; if the change set has no test coverage, report that and stop before rewriting anything.

The five slop categories

Each category reads what it is → how to fix it. Match them against the change set:

  • Fabricated evidence: casts, suppressions, or unsafe escapes that assert a type or invariant the code never established: chained as/as unknown as, cast(Any, x), # type: ignore, @ts-ignore/@ts-expect-error without justification, unsafe blocks or .unwrap() standing in for real handling, non-null ! assertions on nullable values. → Replace with boundary parsing, type guards, or pattern matching; when a suppression is genuinely required, pair it with a non-empty invariant justification.
  • Evidence widening: known, precise values funneled into top types or open dictionaries: parameters and returns typed object/unknown/any/interface{}/dict[str, Any], finite records degraded to open maps, as any to silence a mismatch. → Preserve the precise type end to end; widen only at an unparsed boundary and parse there.
  • Defensive clutter: no-op protection against cases a trusted codepath cannot produce: try/except: pass, redundant null checks inside internal call chains where the value is guaranteed, conditional empty-object spreads and similar omission tricks, silent fallback defaults. → Delete the check; validate at the boundary once instead of everywhere.
  • Mock patching: tests that monkey-patch or mock a module's internals to force the code under test to pass: patch("module.path") on the subject's own collaborators, vi.mock/jest.mock on internal modules, snapshots derived from the implementation. → Test through real seams: inject an adapter, point the code at an in-memory implementation, or exercise the public interface.
  • Vacuous names: symbols named after their type or shape instead of their domain meaning: data, info, item, result, obj, helper, manager, *Shape, handleX. → Rename to the domain concept the symbol carries; if no honest name exists, the design is murky and that is a finding, not a rename.

Read the full file on GitHub · 64 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. 26d ago First seen · 64 lines · 58 tokens per session scan A 063b6e5e85be

Subscribe to this mod's changes

deslop is a skill published in the GitHub repository FradSer/dotclaude (598 stars, last pushed 25d ago), licensed MIT. It adds 58 tokens to every session and 1,388 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-11-05.

Related

deslop compared with skills from other repositories

deslop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deslopFradSer/dotclaudeSkill59825d agoMITA58Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k3d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9743d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex