# Deslop

> Deslop is an open-source agent skill for developer tools. Removes AI-generated code slop from the changes on your current git branch. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/fumiya-kume/claude-code/tree/master/deslop/skills/deslop
- **Repository:** https://github.com/fumiya-kume/claude-code
- **GitHub stars:** 215
- **License:** GPL-3.0
- **Skill name:** deslop
- **Collection:** https://github.com/fumiya-kume/claude-code
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

Deslop has the agent compare the current branch against its default base, preferring origin/main, then origin/master, then local main or master, and review everything that differs. It then edits the changed files to strip out noise typical of AI-written code, such as comments a human would not write, defensive checks or try/catch blocks that do not fit the surrounding code, and unnecessary wrappers or over-abstracted helpers.

The skill is deliberately conservative. It asks the agent to keep the edit scope small, avoid reformatting untouched code, prefer deleting code over adding abstractions, and infer intent from nearby code so behavior stays the same. It runs as a forked sub-task and ends with a short summary of the changes.

It relies on git being available in the repository, since it uses git diff commands to read the branch changes. It is a plain SKILL.md with no bundled scripts.

## When your agent uses it

> Remove AI-generated code slop from code changes in the current branch

## What it can access

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

- [Instructions only, no scripts](https://github.com/fumiya-kume/claude-code/tree/HEAD/deslop/skills/deslop)
- [Asks for: Read, Edit, Write, Bash, Grep, Glob, Task](https://github.com/fumiya-kume/claude-code/blob/HEAD/deslop/skills/deslop/SKILL.md)
- [License: GPL-3.0](https://github.com/fumiya-kume/claude-code/tree/HEAD/deslop/skills/deslop)

## Features

- **Branch diff review:** Finds the base branch and reads the list of changed files and the full diff against it.
- **Extra comment removal:** Removes comments that look machine-written or do not match the file's existing style.
- **Defensive code cleanup:** Trims unnecessary checks and try/catch blocks that are out of place for the code path.
- **Wrapper and indirection cleanup:** Flags and removes needless wrappers, over-abstraction and noisy helper functions.
- **Minimal-scope edits:** Limits changes to what is needed and keeps intended behavior intact.

## Good for

- Clean up AI-generated code before opening a pull request
- Remove unnecessary try/catch blocks added by an assistant in a feature branch
- Strip redundant comments from recent changes to match the project's style
- Simplify over-abstracted helpers introduced during a coding session

## Install

### Claude Code

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

```sh
/plugin marketplace add fumiya-kume/claude-code
/plugin install deslop@kuu-marketplace
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/deslop &&
cp -R "$tmp/deslop/skills/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/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/deslop &&
cp -R "$tmp/deslop/skills/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/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/deslop &&
cp -R "$tmp/deslop/skills/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/fumiya-kume/claude-code.git --path deslop/skills/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/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/deslop &&
cp -R "$tmp/deslop/skills/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/fumiya-kume/claude-code.git
```

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

## FAQ

### Which branch does Deslop compare against?

It tries origin/main, then origin/master, then local main, then local master, and uses the first one that exists.

### What tools does Deslop use?

It is allowed to read, edit and write files, run Bash, and search with Grep, Glob and Task.

### Does Deslop change behavior?

The instructions say to preserve intended behavior and keep behavior compatible when intent is unclear.

### 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 deslop plugin, which includes it: /plugin marketplace add fumiya-kume/claude-code, then /plugin install deslop@kuu-marketplace.

### 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. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Deslop?

The closest alternatives to Deslop are Deslop, Code simplifier, Antislop code, Make PR easy to review and Principle laziness protocol.

## Where this comes from

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

## Alternatives

- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Antislop code](https://ai-powered.com/skills/antislop-code): Antislop code is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Principle laziness protocol](https://ai-powered.com/skills/principle-laziness-protocol): Principle laziness protocol 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.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review 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-fumiya-kume
