deslop

deslop is a skill for Claude Code, Codex from AnastasiyaW/codex-claude-code-config. It costs 63 tokens per session (592 once invoked), scanned A, original, MIT.

A focused cleanup step for removing unnecessary agent-generated code from the current change. It keeps behavior and the public interface intact while removing things such as needless comments, casts, checks, or nesting.

In plain words
What is it for?
Use it after an agent has edited code to review the diff, remove confirmed noise, and run the relevant checks.
Why use it?
It makes a change easier to read and maintain without turning a cleanup into an unrelated rewrite.

Skill for Claude CodeCodex

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

Part of the claude-code-config plugin — 57 skills, 8 agents shipped together

Good fit Use it after an agent has edited code to review the diff, remove confirmed noise, and run the relevant checks.

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

Made for: Claude Code, Codex.

Or install claude-code-config, the plugin that ships this one along with the rest of its 57 skills, 8 agents.

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/anastasiyaw/codex-claude-code-config/deslop/github.svg)](https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/deslop)
Your own site
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/deslop"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/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/anastasiyaw/codex-claude-code-config/deslop"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/deslop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 592 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00063 $0.00592
Opus 5 $0.00032 $0.00296
Sonnet 5 $0.00013 $0.00118
Haiku 4.5 $0.00006 $0.00059

Measured 9d ago against content hash 81cdb29ed6d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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/development/deslop/SKILL.md · 59 lines

How it starts

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

Deslop

Review only the branch diff against its intended base and remove noise that does not belong in the local code style. Keep the behavior and public contract unchanged unless a clear, separately verified bug is fixed.

Review Targets

  • comments that narrate obvious code or contradict local conventions;
  • defensive checks or catch blocks abnormal for a trusted path;
  • any, unsafe casts, or optionality used only to silence a type checker;
  • deep nesting that can be made clearer with early returns or a named helper;
  • one-off wrappers, flags, and branches inconsistent with the surrounding module;
  • C++ ownership or error-handling scaffolding that is redundant with the established RAII/contract boundary.

Workflow

  1. Inspect the base, diff, local style, tests, and ownership boundaries.
  2. Classify each candidate as noise, a clear bug, or an intentional contract.
  3. Remove only confirmed noise in a focused edit.
  4. Run the narrow relevant checks and inspect the final diff.
  5. If the structure needs a real redesign, stop deslop and use refactoring-safely, architecture-quality, or thermo-nuclear-code-quality-review.

Do not delete comments that explain a non-obvious invariant, security boundary, ABI constraint, workaround with an owner, or externally required behavior.

Gotchas

  • Shorter code is not automatically clearer; preserve names and boundaries that carry domain meaning.
  • A broad formatter run can hide behavior changes and is not deslop proof.
  • Removing a defensive check without proving the trusted-path invariant can turn cleanup into a regression.
  • In C++, exception and ownership code may look repetitive while protecting an ABI or lifetime boundary; inspect callers before removing it.

Troubleshooting

Symptom Likely cause Action
Cleanup changes a test result Candidate was behavior, not noise Revert that candidate and isolate the real contract
Diff is too broad Tool ran over the whole tree Restrict review to the branch diff and restore unrelated files
Comment seems redundant but explains a constraint Context is outside the file Read the owning docs/tests before changing it
Code remains structurally tangled Deslop is the wrong scope Escalate to a planned refactor with characterization tests

Read the full file on GitHub · 59 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. 9d ago First seen · 59 lines · 63 tokens per session scan A 81cdb29ed6d4

Subscribe to this mod's changes

deslop is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 592 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.