# Deslop

> Deslop is an open-source agent skill for developer tools. Simplifies a git diff's slop without changing behavior or staging unrelated work. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/prathamdby/skills/tree/main/skills/engineering/deslop
- **Repository:** https://github.com/prathamdby/skills
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** deslop
- **Collection:** https://github.com/prathamdby/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Deslop reviews a git diff, by default the staged changes, and removes redundant comments, unneeded guards, dead abstractions and style that clashes with nearby files. Each hunk is checked against six categories of clutter, and an edit is kept only when the agent can show that behavior stays the same.

The workflow sets the scope first, then stops if staged and unstaged work overlap in the same file, so the index stays clean. The agent reads neighboring files in each module to match local conventions. It does not create commits or stage files for unstaged or branch scopes.

The skill expects a git repository with changes to review and a base branch when comparing against a committed base. After edits, it runs the narrowest covering test for any code change and reports the results.

## When your agent uses it

> Clean up and simplify a git diff (staged, unstaged, or branch) without changing behavior, removing redundant comments, unnecessary guards, dead abstractions, and foreign style while preserving staging boundaries. Use whenever the user asks to deslop, tidy, polish, or trim complexity from their diff before committing or opening a PR. Never creates commits (use commit) or critiques architecture requirements (use peer-review).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/deslop)
- [License: MIT](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/deslop)

## Features

- **Scope selection:** Chooses staged, unstaged or branch-based diffs and stops on conflicting or empty scopes.
- **Staging boundary checks:** Stops when target files mix staged and unstaged hunks to protect the index.
- **Six slop categories:** Checks each hunk for comment noise, type noise, foreign style, indirection, bloat and tangled control flow.
- **Local convention matching:** Compares edits against up to two neighboring files in the same module.
- **Verified edits:** Keeps only cleanups where behavior, errors, side effects and API stay identical.
- **Test and audit report:** Runs the narrowest covering tests and reports categories, staging and diff audit results.

## Good for

- Tidy my staged changes before I commit
- Trim unnecessary guards and comments from my branch before opening a PR
- Remove dead abstractions from my unstaged edits without changing behavior
- Polish a diff so it matches the style of nearby files

## Install

### Claude Code

This skill ships in the `skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skills
```

Or copy only this skill to `~/.claude/skills/deslop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/deslop &&
cp -R "$tmp/skills/engineering/deslop" ~/.claude/skills/deslop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/deslop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/deslop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/deslop &&
cp -R "$tmp/skills/engineering/deslop" ~/.agents/skills/deslop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/deslop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/deslop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/deslop &&
cp -R "$tmp/skills/engineering/deslop" ~/.cursor/skills/deslop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/deslop` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/deslop
```

Or copy the folder to `~/.gemini/skills/deslop` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/deslop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/deslop &&
cp -R "$tmp/skills/engineering/deslop" ~/.copilot/skills/deslop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/deslop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/prathamdby/skills.git
```

Then copy `skills/skills/engineering/deslop` into your agent's skills folder as `deslop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

When the user asks to deslop, tidy, polish or trim complexity from a diff before committing or opening a PR.

### Does Deslop create commits?

No. It never creates commits, and it does not stage anything for unstaged or committed-base scopes.

### What does Deslop skip?

It does not critique architecture requirements, which the skill says belong to a separate peer-review skill.

### What happens if staged and unstaged changes overlap?

It stops the whole run before editing, so the index is not mixed across layers.

### How do I install Deslop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/deslop to use it in all your projects, or to .claude/skills/deslop in one project. Or install the skills plugin, which includes it: /plugin marketplace add prathamdby/skills, then /plugin install skills@pratham-skills.

### Does Deslop run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Deslop?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Deslop?

The closest alternatives to Deslop are Deslop, Deslop, Deslop, Intent drift and Code review expert.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Deslop](https://ai-powered.com/skills/deslop-fumiya-kume): Deslop is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop-redpanda-data): Deslop is an open-source agent skill for developer tools.
- [Intent drift](https://ai-powered.com/skills/intent-drift): Intent drift is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Simplify](https://ai-powered.com/skills/simplify): Simplify is an open-source agent skill for developer tools.
- [Code review agent](https://ai-powered.com/skills/code-review-agent): Code review agent is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/deslop-prathamdby
