PluginBench
Skill
Review
Audit score 70

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 deslop
Claude Code
Cursor
Windsurf
Cline

How to use deslop

  1. 1.Run the skill on your feature branch
  2. 2.Review the suggested changes against your main branch diff
  3. 3.Accept removals of unnecessary comments, defensive checks, and type casts
  4. 4.Verify behavior remains unchanged after cleanup
  5. 5.Commit the cleaned-up code

Use cases

Good for
  • 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
Who it's for
  • 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

Will deslop change my code's behavior?

No. Deslop keeps behavior unchanged unless fixing a clear bug. It focuses on style and pattern cleanup only.

How does deslop know what's 'slop'?

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.

Can I customize what deslop considers slop?

Deslop follows your codebase's existing patterns and style. It learns from your main branch to identify inconsistencies.

Should I use deslop on all AI-generated code?

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 any used 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).