deslop · davila7 — Claude Code skill: what it does, how to install
Cleans AI-generated clutter from a branch before merging code. It inspects diffs against main to strip needless comments, type workarounds, and unneeded guards.
npx claude-code-templates@latest --skill sentry/deslopWhat deslop does
The skill inspects project modifications by running git diff main...HEAD. It scans altered files to catch typical synthetic artifacts. Redundant explanatory notes disappear. The routine strips unneeded try/catch wrappers on trusted code paths, eliminates casts to any, and relocates inline Python imports up to the file header.
Legitimate feature logic remains untouched while formatting is brought in line with adjacent code. Once cleanup finishes, the agent delivers a brief summary spanning one to three sentences. The hardcoded call to main means the tool breaks if your repository uses a different primary branch name.
What it helps with
- delete redundant explanatory comments from modified files
- strip excessive
try/catchsafeguards along trusted codepaths - remove loose
anycasts introduced during generation - relocate nested Python imports back to the top of the file
Example prompts for the agent
- Clean up AI code slop in this branch before opening a PR
- Review changes against main and remove unnecessary defensive checks
- Run deslop to fix style inconsistencies across modified files
How to install deslop
1claude-code-templates
npx claude-code-templates@latest --skill sentry/deslop2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill deslop -a claude-code3Manually: put the files in place
~/.claude/skills/deslop/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/deslop/
Manually: put the files in place
.agents/skills/deslop/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/deslop/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates deslop2Manually: put the files in place
.github/skills/deslop/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/sentry/deslopManually: put the files in place
.devin/skills/deslop/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.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 do I install deslop in Claude Code?
Run npx skills add davila7/claude-code-templates --skill deslop -a claude-code in your terminal.
What does the deslop skill do?
It reviews the branch diff against main to prune artificial code artifacts. The skill purges non-standard comments, unneeded defensive blocks, type casts, and misplaced imports while preserving actual logic changes.
What branch structure does deslop require?
The skill relies specifically on git diff main...HEAD. Your repository must maintain a base branch called main, or the diff command will fail.
Similar skills
All skills for Code review and refactoring →deslop by other authors comes first.