
Description
deslop is an agent skill from the cursor/plugins repository that cleans AI-generated code slop out of a branch. It checks the diff against main and removes slop introduced on that branch. The focus areas are extra comments that are unnecessary or do not match the local style, defensive checks or try/catch blocks that look odd for trusted code paths, casts to any that only get around type errors, and deeply nested code that early returns would flatten. It also looks for other patterns that do not fit the file or the surrounding codebase. Its guardrails keep behaviour unchanged unless a clear bug is being fixed, prefer minimal, focused edits over broad rewrites, and ask for a final summary of one to three sentences. The skill is shown on skills.sh with 8.6K installs, and the repository has 11.4K GitHub stars. It suits teams whose AI coding tools leave noisy code behind and who want a cleanup pass before review.…
Highlights
- Checks the branch diff against main
- Removes unnecessary comments and any casts
- Flattens deeply nested code
- Keeps behaviour unchanged
- Minimal, focused edits
Ratings & Reviews
No ratings yet
Be the first to rate deslop.
People also visit

antislop-code
Code comment hygiene for AI coding agents: remove generic AI-slop comments
deslop FAQ
What does deslop look for?
Unnecessary or mismatched comments, odd defensive checks, casts to any used to bypass type issues, deeply nested code and patterns that do not fit the file.
Does it change how the code behaves?
Its guardrails say to keep behaviour unchanged unless it is fixing a clear bug.
How do I install it?
Run npx skills add https://github.com/cursor/plugins --skill deslop.
What do the security audits say?
The skills.sh page shows Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass.
How popular is it?
The skills.sh page shows 8.6K installs, and the cursor/plugins repository has 11.4K GitHub stars.
What are the best deslop alternatives?
Popular alternatives to deslop include specs-code-cleanup, code-simplify and ce-simplify-code. See all deslop alternatives


















