mcpField
D
deslop

deslop

github.com/cursorDevelopment14.5k9.5k installsUpdated today
Repository

About deslop

A development skill that checks a branch diff against main for AI-generated code patterns that conflict with surrounding conventions. It favors focused edits and preserving behavior unless fixing a clear bug.

Key features

  1. 01Compare branch diff with main
  2. 02Remove unnecessary comments
  3. 03Flag unusual defensive checks
  4. 04Identify casts to any
  5. 05Simplify nested control flow

Use cases

  1. 01Cleaning AI-generated changes
  2. 02Reviewing a branch before merge
  3. 03Reducing unnecessary defensive code

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cursor/plugins --skill deslop

After installing, type/deslopin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported