# deslop

Cleans AI-generated clutter from a branch before merging code. It inspects diffs against main to strip needless comments, type workarounds, and unneeded guards.

- skill · `type=skill` · Claude Code · 437 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/sentry/deslop
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/deslop

## What it 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.

## Requirements
- Works with: Sentry

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill sentry/deslop
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill deslop -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/deslop/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/deslop/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/deslop/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/deslop/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates deslop
```

2. **Manually: put the files in place**
- File: `.github/skills/deslop/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/sentry/deslop
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/deslop/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/sentry/deslop

## When to use it
- delete redundant explanatory comments from modified files
- strip excessive `try/catch` safeguards along trusted codepaths
- remove loose `any` casts introduced during generation
- relocate nested Python imports back to the top of the file

## Example prompts
- 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

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [codebase-design](https://affpapa.org/en/nevibecode/skills/codebase-design.md) — skill · 850344 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs

## Other versions with the same name
- [deslop · cursor](https://affpapa.org/en/nevibecode/skills/cursor-deslop.md) — 9300 installs
- [deslop · brianlovin](https://affpapa.org/en/nevibecode/skills/brianlovin-deslop.md) — 5600 installs
- [deslop · prathamdby](https://affpapa.org/en/nevibecode/skills/prathamdby-deslop.md) — 624 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
