
Deslop
Removes AI-generated code slop from the changes on your current git branch
Deslop is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 215
- Last commit
- License
- GPL-3.0
- Listing updated
Similar skills
About Deslop
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
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Edit, Write, Bash, Grep, Glob, Task(see the files on GitHub)
- License: GPL-3.0(see the files on GitHub)
From a static check of its 1 file (2 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the deslop plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add fumiya-kume/claude-code
/plugin install deslop@kuu-marketplaceOr copy only this skill to ~/.claude/skills/deslop:
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.
Copy the skill folder to ~/.agents/skills/deslop to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/deslop to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/fumiya-kume/claude-code.git --path deslop/skills/deslopOr copy the folder to ~/.gemini/skills/deslop yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/deslop:
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.
Get the folder:
git clone --depth 1 https://github.com/fumiya-kume/claude-code.gitThen copy claude-code/deslop/skills/deslop into your agent's skills folder as deslop. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Deslop 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.
More from fumiya-kume/claude-code

Breaks a complex task into detailed, verifiable todos and logs a summary in the plan file
- Open source
- 215 GitHub stars
- Developer tools

Stress-tests an active plan by surfacing hidden assumptions and unaddressed risks
- Open source
- 215 GitHub stars
- Developer tools

Diagnoses and fixes a failing pull request CI run in one pass using GitHub CLI
- Open source
- 215 GitHub stars
- Developer tools




