# deslop

A skill that diffs your branch against main and removes the comments, defensive checks and any-casts an AI left behind.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 5500 installs · ★ 379
- Author: brianlovin
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/brianlovin/agent-config/tree/HEAD/skills/deslop/SKILL.md
- Updated: 2026-03-25
- HTML: https://affpapa.org/en/nevibecode/skills/brianlovin-deslop

## What it does

The skill reads the diff against `main` and clears out what the generator added: comments a human would not write, defensive checks and try/catch blocks that do not belong in that part of the codebase, especially when the call comes from a path that is already trusted. Casts to `any` used to dodge type errors go too, along with any style that clashes with the rest of the file.

It ships as a plain skill — drop `SKILL.md` into your platform's skills directory and run it after the code is written. The agent edits the branch and closes with a one-to-three sentence summary of what changed.

Everything is measured against `main`. If your default branch has another name, the diff is not the one you expect, so check that first.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --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 brianlovin/agent-config --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 brianlovin/agent-config --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 brianlovin/agent-config deslop
```

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

### Gemini CLI

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

2. **Platform CLI**
```bash
gemini skills install https://github.com/brianlovin/agent-config --path skills/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 brianlovin/agent-config --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/brianlovin/agent-config/tree/HEAD/skills/deslop/SKILL.md

## When to use it
- strip comments the model added to every line
- drop defensive checks on already-validated data
- remove try/catch wrapped around safe calls
- replace any-casts with real types
- match new code to the file's existing style

## Example prompts
- clean the AI slop out of this branch before review
- run deslop on the diff and drop the extra comments and checks
- compare against main and fix anything that breaks the file's style

## Similar
- [code-polish](https://affpapa.org/en/nevibecode/skills/code-polish.md) — skill · 2800 installs
- [mantis-plan](https://affpapa.org/en/nevibecode/skills/mantis-plan.md) — skill · 1600 installs
- [principle-sequence-verifiable-units](https://affpapa.org/en/nevibecode/skills/principle-sequence-verifiable-units.md) — skill · 5100 installs
- [correct](https://affpapa.org/en/nevibecode/skills/correct.md) — skill · 4200 installs
- [thermo-nuclear-code-quality-review](https://affpapa.org/en/nevibecode/skills/thermo-nuclear-code-quality-review.md) — skill · 22200 installs

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

From the same set: [brianlovin/agent-config](https://affpapa.org/en/nevibecode/by/brianlovin/agent-config.md) — 12 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
