deslop
cursor/plugins
Remove AI-generated code slop and clean up code style to match your codebase standards.
What is deslop?
Deslop identifies and removes unnecessary AI-generated patterns like excessive comments, defensive checks, type casts, and nested code that don't match your project's style. Use it after AI-assisted coding to clean up branches before merging.
- Removes unnecessary comments inconsistent with local style
- Eliminates defensive checks and try/catch blocks abnormal for trusted code paths
- Removes casts to `any` used only to bypass type issues
- Simplifies deeply nested code with early returns
- Identifies patterns inconsistent with surrounding codebase
How to install deslop
npx skills add https://github.com/cursor/plugins --skill deslopHow to use deslop
- 1.Run the skill on your feature branch
- 2.Review the suggested changes against your main branch diff
- 3.Accept removals of unnecessary comments, defensive checks, and type casts
- 4.Verify behavior remains unchanged after cleanup
- 5.Commit the cleaned-up code
Use cases
- Clean up code after using AI pair programming tools before submitting a pull request
- Review and refactor AI-generated branches to match team coding standards
- Remove defensive programming patterns that don't fit your codebase's trust model
- Simplify over-engineered solutions generated by AI assistants
- Standardize comment style across AI-assisted code changes
- Developers using AI code generation tools
- Teams maintaining consistent code style standards
- Code reviewers cleaning up AI-assisted contributions
- Projects with established patterns and conventions
deslop FAQ
No. Deslop keeps behavior unchanged unless fixing a clear bug. It focuses on style and pattern cleanup only.
It checks your diff against main and identifies patterns like excessive comments, unnecessary defensive checks, `any` casts, and deep nesting that are inconsistent with your codebase's style.
Deslop follows your codebase's existing patterns and style. It learns from your main branch to identify inconsistencies.
Yes, it's especially useful after using AI pair programming tools to ensure the code matches your team's standards before merging.
Full instructions (SKILL.md)
Source of truth, from cursor/plugins.
name: deslop description: Remove AI-generated code slop and clean up code style
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).
Related skills
More from cursor/plugins and the wider catalog.
thermo-nuclear-code-quality-review
Extremely strict code quality review focused on maintainability, abstraction, and structural simplification.
fix-merge-conflicts
Resolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution
make-pr-easy-to-review
Prepare PRs for review by cleaning noisy history, improving PR descriptions, and adding reviewer guidance without changing code behavior. Use for "make this easy to review", "tidy this PR", "clean up commits", or "annotate the diff".