deslop

deslop is a skill for Claude Code from emaballarin/ccplugins. It costs 50 tokens per session (861 once invoked), scanned A, original, MIT.

A cleanup process for the code changes currently under review that removes unnecessary comments, checks, fallbacks, and style drift without changing behaviour.

In plain words
What is it for?
It helps tidy changed lines in commits, branches, or uncommitted work before a code review.
Why use it?
It keeps a proposed change focused and avoids adding unrelated or hard-to-maintain code before review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ws plugin — 5 skills shipped together

Good fit It helps tidy changed lines in commits, branches, or uncommitted work before a code review.

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

Made for: Claude Code.

Or install ws, the plugin that ships this one along with the rest of its 5 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/emaballarin/ccplugins/deslop/github.svg)](https://agentmods.dev/skills/emaballarin/ccplugins/deslop)
Your own site
<a href="https://agentmods.dev/skills/emaballarin/ccplugins/deslop"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/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/emaballarin/ccplugins/deslop"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/deslop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 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.00050 $0.00861
Opus 5.5 $0.00020 $0.00344
Sonnet 5.5 $0.00010 $0.00172
Haiku 4.5 $0.00005 $0.00086

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

plugins/whetstone/skills/deslop/SKILL.md · 73 lines

How it starts

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

/ws:deslop — clean the diff before review

Clean only the change under review. Preserve behaviour absolutely.

1. Scope

Take the first that applies, and state it in one line before starting:

  1. What the operator named — a commit range, a branch, a set of files.
  2. On a branch other than the default (origin/HEAD, else main): everything since the merge base, git diff $(git merge-base HEAD <default>).
  3. Otherwise the uncommitted work: git diff HEAD.

Add untracked files (git ls-files --others --exclude-standard) to cases 2 and 3 as wholly new hunks — git diff never shows them. Changed hunks are the only targets. The lines around a hunk are the standard it is judged against; the pass never runs repo-wide.

2. Checklist

Inspect every changed hunk for:

  1. Comment slop — comments a human maintainer would not write: narration of the next line, syntax explanation, prose that merely restates the code, history in comments ("now uses X instead of Y"). Docstrings and status comments on unfinished work are outside this item; the project's documentation conventions govern them.
  2. Defensive slop — checks, try/except or try/catch blocks, None guards, getattr/hasattr/.get(key, default) on attributes and keys that always exist — abnormal for the surrounding module, or protecting only imagined states. Validation at a system boundary (user input, I/O, external APIs) and guards against silent data corruption are not slop. In numerical code this includes guards that mask an upstream fault instead of fixing it: nan_to_num, a clamp to eps, a broad except around a step that produces NaNs.
  3. Type laundering — casts that assert a type rather than establish it: as any, as unknown as T, typing.cast(Any, …), widen-to-Any-then-narrow flows, and # type: ignore, # noqa or @ts-ignore with no code and no reason.
  4. Needless indirection — intermediate variables and one-use helpers that add no domain meaning, remove no duplication, and simplify no control flow.
  5. Unrequested fallbacks — compatibility shims, aliases, retries and fallback branches with no named contract that needs them and no plan to remove them.
  6. Style drift — naming, control flow, imports, formatting and idiom that conflict with the surrounding file.

Read the full file on GitHub · 73 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 918fb22556ac
  2. 19d ago First seen · 73 lines · 50 tokens per session scan A 680cc4f03f2a

Subscribe to this mod's changes

deslop is a skill published in the GitHub repository emaballarin/ccplugins (4 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 861 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-09-27.

Related

Other skills, from other repositories

gemini

Cross-model second opinion from Google Gemini — a different AI reviewing the same changes, with deep Google ecosystem knowledge. Three modes: review (pass/fail gate for Google Ads campaigns, SEO metadata, or code), challenge (adversarial stress-test that tries to break your changes), and consult (open Q&A with Gemini…

nowork-studio/notfair-plugin · 184 tokens

critical-code-reviewer

Rigorously review code or pull requests for correctness, security, accessibility, maintainability, tests, and edge cases. Use when users request a critical code review, want a guided walkthrough of findings, need implementer-facing feedback, or want to prepare, create, or submit a GitHub pull request review.

posit-dev/skills · 67 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

boundaries

Analyze Phoenix context boundaries and module coupling via mix xref. Use when checking cross-context calls, validating dependencies, before splitting modules, or reviewing architecture.

oliver-kriska/claude-elixir-phoenix · 33 tokens

triage

Triage review findings interactively — approve, skip, or prioritize each issue. Use after /phx:review to filter findings before fixing.

oliver-kriska/claude-elixir-phoenix · 32 tokens

pr-threads-address

Address PR review feedback by systematically working through every unresolved PR review thread on the current branch's PR - analyze each comment, make the requested code changes (with tests where useful), commit, and optionally reply and resolve.

posit-dev/skills · 48 tokens