# deslop

deslop cleans generated code noise and accidental complexity from active diffs before final verification.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 267 installs · ★ 655 repo stars
- Author: pedronauck
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pedronauck/skills/tree/HEAD/skills/mine/deslop/SKILL.md
- Updated: 2026-10-20
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pedronauck-deslop

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

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill deslop -a claude-code
```

2. **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

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill deslop -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill deslop -a cursor
```

2. **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 pedronauck/skills skills/mine/deslop
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill deslop -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pedronauck/skills --path skills/mine/deslop
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill deslop -a opencode
```

### 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/pedronauck/skills/tree/HEAD/skills/mine/deslop/SKILL.md

## When to use it
- 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
- Run deslop on the current diff to clean up generated noise
- Review my recent changes and remove redundant type casts

## Similar
- [tidy](https://affpapa.org/en/nevibecode/skills/tidy.md) — skill · 539 installs
- [antfu-simplify](https://affpapa.org/en/nevibecode/skills/antfu-simplify.md) — skill · 312 installs
- [check](https://affpapa.org/en/nevibecode/skills/check.md) — skill · 16500 installs
- [open-code-review-delegate](https://affpapa.org/en/nevibecode/skills/open-code-review-delegate.md) — skill · 5000 installs
- [understand-diff](https://affpapa.org/en/nevibecode/skills/understand-diff.md) — skill · 4200 installs
- [hunk-review](https://affpapa.org/en/nevibecode/skills/hunk-review.md) — skill · 2700 installs

## Other versions with the same name
- [deslop · cursor](https://affpapa.org/en/nevibecode/skills/cursor-deslop.md) — 10700 installs
- [deslop · prathamdby](https://affpapa.org/en/nevibecode/skills/prathamdby-deslop.md) — 736 installs
- [deslop · davila7](https://affpapa.org/en/nevibecode/skills/deslop.md) — 437 installs
- [deslop · rohitg00](https://affpapa.org/en/nevibecode/skills/rohit-ghumare-deslop.md) — ★ 2966 repo stars

From the same set: [pedronauck/skills](https://affpapa.org/en/nevibecode/by/pedronauck/skills.md) — 52 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
