deslop — Claude Code skill: what it does, how to install
Inspects branch diffs against main to remove AI-generated code clutter and inconsistent styling. Ideal for polishing branch changes before pull request review.
npx skills add cursor/plugins --skill deslop -a claude-codeWhat deslop does
The skill inspects the diff against main to find and clean up AI-introduced clutter. It removes verbose or uncharacteristic comments that clash with repository conventions. Unneeded defensive checks and try/catch blocks on trusted execution paths are eliminated. The prompt also targets quick type casts to any used merely to silence compiler checks.
Deep indentation gets flattened using early returns. Behavior remains untouched unless an actual bug is spotted. Edits are kept strictly minimal, while the final summary takes just one to three sentences.
What it helps with
- strip unneeded AI comments from branch changes
- flatten nested blocks with early returns
- clean up redundant try/catch wrappers on trusted paths
- replace temporary any casts with proper types
Example prompts for the agent
- Check the diff against main and run deslop
- Clean up AI slop and unnecessary comments in this branch
- Review branch changes against main and remove superfluous any casts
How to install deslop
1Skills CLI (Vercel)
npx skills add cursor/plugins --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 cursor/plugins --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 cursor/plugins --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 cursor/plugins deslop2Manually: put the files in place
.github/skills/deslop/SKILL.md1Skills CLI (Vercel)
npx skills add cursor/plugins --skill deslop -a gemini-cli2Platform CLI
gemini skills install https://github.com/cursor/plugins --path cursor-team-kit/skills/deslopManually: put the files in place
.devin/skills/deslop/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cursor/plugins --skill deslop -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set3
The whole set →Similar
Questions about deslop
How to install deslop in Claude Code?
Run npx skills add cursor/plugins --skill deslop -a claude-code in your terminal. The configuration installs to ~/.claude/skills/deslop/SKILL.md.
What does the deslop skill do?
It reviews the diff against main to remove unnecessary AI additions. The skill strips redundant comments, flattens nesting, cleans up suspicious any type casts, and eliminates defensive blocks on safe execution paths.
Does deslop alter program behavior?
Guardrails require keeping code behavior unchanged. It alters logic only when fixing a clear bug, opting for small edits rather than broad rewrites.