deslop
What it does
Lets the assistant clean up code that an AI tool wrote in your branch. It is for developers who want their code to look like the rest of the project.
When to use it
- ✓When an AI tool left extra comments or unneeded checks in your branch.
- ✓When you want code simplified with early returns instead of deep nesting.
- ✓When you want to remove casts to any that were only used to hide type problems.
Skill link
https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/deslop/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Clean up the AI-generated extras in my branch compared to main, but keep the behavior the same.”
5 new skills a week. 1 minute to read.
How it works
The assistant compares your branch with main and looks for clutter such as unnecessary comments, defensive checks and deep nesting. It makes small, focused edits that keep behavior unchanged, then gives a short summary.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Remove AI code slop
Check the diff against main and remove AI-generated slop introduced in the branch.
Focus Areas
- Extra comments that are unnecessary or inconsistent with local style
- Defensive checks or try/catch blocks that are abnormal for trusted code paths
- Casts to
anyused only to bypass type issues - Deeply nested code that should be simplified with early returns
- Other patterns inconsistent with the file and surrounding codebase
Guardrails
- Keep behavior unchanged unless fixing a clear bug.
- Prefer minimal, focused edits over broad rewrites.
- Keep the final summary concise (1-3 sentences).
FAQ
Will it change how my code works?
No. It keeps behavior unchanged unless it is fixing a clear bug.
Does it rewrite whole files?
No. It prefers minimal, focused edits over broad rewrites.
How long is the summary?
The final summary is kept short, about one to three sentences.
Details
Original description by the author
Remove AI-generated code slop and clean up code style
repo: cursor/plugins
Popularity
- GitHub stars
- 15k
- Ranking position
- #10933
- License
- —
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.