deslop

deslop is a skill for Claude Code, Codex from thtskaran/claude-skills. It costs 103 tokens per session (3,149 once invoked), scanned A, original, MIT.

A two-stage code-review and cleanup workflow for existing codebases, especially code produced quickly with AI tools. It first records problems in an audit file, then uses that file to guide fixes for production use.

In plain words
What is it for?
Use it to audit, harden, refactor, and clean up an existing project, with attention to code quality and security.
Why use it?
It exposes fragile, messy, or insecure code before it causes problems in real use. Separating the review from the fixes makes the findings easier to check.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

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.

agentmods
npx agentmods add skills/thtskaran/claude-skills/deslop
Any agent
npx skills add thtskaran/claude-skills --skill deslop
Clone the repo
git clone --depth 1 https://github.com/thtskaran/claude-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thtskaran/claude-skills/deslop.svg)](https://agentmods.dev/skills/thtskaran/claude-skills/deslop)
Your own site
<a href="https://agentmods.dev/skills/thtskaran/claude-skills/deslop"><img src="https://agentmods.dev/badge/skills/thtskaran/claude-skills/deslop.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,149 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00103 $0.03149
Opus 5 $0.00051 $0.01574
Sonnet 5 $0.00021 $0.00630
Haiku 4.5 $0.00010 $0.00315

Measured 6d ago against content hash 90ba8f5320e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/scan_dead_code.sh, scripts/scan_dependencies.sh, scripts/scan_patterns.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

deslop/SKILL.md · 225 lines

How it starts

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

Deslop — Code Hardening Skill

Systematically audit and harden an existing codebase for production. Designed for AI-generated ("vibe coded") codebases that work superficially but are fragile, sloppy, or insecure under real-world conditions.

This skill operates in two strict phases. Never mix them.

Phase 1: AUDIT   →  produces  AUDIT.md  (human-reviewable, machine-parseable)
Phase 2: FIX     →  consumes  AUDIT.md  →  applies fixes in safety order

The user provides a codebase (directory path or repo). They may specify focus areas, exclusions, or constraints. If not specified, audit everything.


Phase 1: AUDIT

MANDATORY before starting: Read the full audit checklist and format spec:

Read ~/.claude/skills/deslop/references/checklist.md     # 15-category audit checklist with specific patterns
Read ~/.claude/skills/deslop/references/audit-format.md  # Structured finding format for AUDIT.md

The audit runs five sequential passes. Each pass builds on the previous. Never skip a pass — thoroughness matters more than speed.

Pass 0 — Reconnaissance

Map the codebase before judging anything. Do NOT write findings yet.

  1. Generate file tree: find . -type f | head -500 or equivalent. Understand the shape.
  2. Classify files: Source, tests, configs, migrations, infra, docs, generated, vendored.
  3. Identify the stack: Language(s), framework(s), package manager, build system, runtime.
  4. Build dependency map: Which files import from which. Use grep -rn "import\|require\|from\|include" or language-specific tooling.
  5. Identify entry points: Main files, route handlers, API endpoints, CLI entry points, event handlers.
  6. Detect existing tooling: Check for .eslintrc, pyproject.toml, tsconfig.json, .prettierrc, Makefile, CI configs, etc.
  7. Run available linters: If linters are configured, run them and capture output. If not, note this as a finding. Common commands:
    • JS/TS: npx eslint . --format json 2>/dev/null or npx tsc --noEmit 2>&1
    • Python: python -m pylint **/*.py --output-format=json 2>/dev/null or python -m flake8 . 2>&1
    • Go: go vet ./... 2>&1
    • Rust: cargo clippy --message-format=json 2>/dev/null
    • If no linter is configured, skip — don't install new tooling unless asked.
  8. Produce the codebase map: Write a structured summary to the top of AUDIT.md:
    • Stack summary (language, framework, runtime)
    • File count by category
    • Module/directory architecture
    • Entry points
    • High-coupling modules (most imports in + out)
    • Linter output summary (if available)

Read the full file on GitHub · 225 lines

Files

What ships with it

8 files 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 · 225 lines · 103 tokens per session scan A 90ba8f5320e3

Subscribe to this mod's changes

deslop is a skill published in the GitHub repository thtskaran/claude-skills (18 stars, last pushed 3mo ago), licensed MIT. It adds 103 tokens to every session and 3,149 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

audit-quality-gates

Use this skill when the user wants to audit how a project configures its style checkers and static analyzers.

yegor256/purist · 29 tokens

code-quality-tooling

代码质量工具:格式化器(Prettier/Black/gofmt/EditorConfig)、linter(规则/预设/禁用/自动修复)、 semgrep 语义 grep 自定义规则。Use when the user asks to set up a formatter or linter, fix lint errors, or write custom lint rules. 触发于「配格式化/linter/修 lint 错误/写 lint 规则」。.

AntheaLaffy/the-missing-semester-skills · 97 tokens

ai-development-guide

Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates. Use when reviewing general/backend implementation choices, code smells, failures, or implementation completeness.

shinpr/claude-code-workflows · 43 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

dorodango

Polishes working code through successive quality passes in fresh subagents. Use after tests pass when code needs multi-dimension refinement before release.

athola/claude-night-market · 31 tokens

polish-code

Stage, format, lint, test, review, smoke test, and re-run itself until stable. Use when the user asks to "polish code", "refine code", "iterate on code quality", "review loop", "clean up, test, and review loop", or "run the polish loop".

tobihagemann/turbo · 67 tokens