deslop · pedronauck — Claude Code skill: what it does, how to install
deslop cleans generated code noise and accidental complexity from active diffs before final verification.
no license 267 installs ★ 655 updated 2026-10-20
npx skills add pedronauck/skills --skill deslop -a claude-codeWhat deslop does
This skill inspects the active diff of a task to spot artificial clutter. It targets redundant comments, unwarranted type casts, type suppressions, and defensive branches on reliable inputs. It also cuts down nested logic and duplicated helper functions.
Boundary checks, error handlers, and backward-compatibility adapters stay untouched. The skill keeps unrelated code intact and avoids editing files outside the requested scope. A brief summary reports what changed.
What it helps with
- strip redundant comments and unnecessary type casts from diffs
- flatten deep nesting added during code generation
- remove defensive guard clauses on trusted inputs
- prune duplicate helper functions introduced by recent edits
Example prompts for the agent
- Run deslop on the current diff to clean up generated noise
- Review my recent changes and remove redundant type casts
How to install deslop
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill deslop -a claude-code2Manually: put the files in place
~/.claude/skills/deslop/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/deslop/
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill deslop -a codex2Manually: put the files in place
.agents/skills/deslop/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill deslop -a cursor2Manually: put the files in place
.cursor/skills/deslop/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pedronauck/skills skills/mine/deslop2Manually: put the files in place
.github/skills/deslop/SKILL.md1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill deslop -a gemini-cli2Platform CLI
gemini skills install https://github.com/pedronauck/skills --path skills/mine/deslopManually: put the files in place
.devin/skills/deslop/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pedronauck/skills --skill deslop -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about deslop
How to install deslop in Claude Code?
Run npx skills add pedronauck/skills --skill deslop -a claude-code in your terminal. You can also place the skill file into ~/.claude/skills/deslop/SKILL.md.
What does deslop do?
It reviews changes in your working diff to strip artificial bloat. The skill deletes duplicate helpers, deep condition nesting, extra comments, and unwarranted cast statements.
Does deslop remove error handling?
No, it explicitly preserves error handling, boundary validation, and migration adapters required for compatibility.
Similar skills
All skills for Code review and refactoring →deslop by other authors comes first.