
Deslop
Simplifies a git diff's slop without changing behavior or staging unrelated work
Deslop is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Deslop
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).
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 4 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 skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skillsOr copy only this skill to ~/.claude/skills/deslop:
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.
Copy the skill folder to ~/.agents/skills/deslop to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/deslop to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/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/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.
Get the folder:
git clone --depth 1 https://github.com/prathamdby/skills.gitThen copy skills/skills/engineering/deslop into your agent's skills folder as deslop. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Deslop 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.
More from prathamdby/skills

Writes an evidence-backed implementation plan for a repo change without editing code
- Open source
- 6 GitHub stars
- Developer tools

Clones external Git repos locally and answers questions from their source code
- Open source
- 6 GitHub stars
- Developer tools

Creates scoped, diff-grounded Conventional Commit messages and commits them locally
- Open source
- 6 GitHub stars
- Developer tools

Works through PR review comments and failing CI checks, fixing and replying with evidence
- Open source
- 6 GitHub stars
- Developer tools

Lets your agent read GitHub PR status, reviews, and CI failures without editing code
- Open source
- 6 GitHub stars
- Developer tools

Saves a redacted session handoff file and resumes work from it later
- Open source
- 6 GitHub stars
- Developer tools





