mcpField
D
deslop

deslop

github.com/michael-denyerDevelopment3.6k915 installsUpdated today
Repository

About deslop

deslop is a code-cleanup skill for removing AI-generated patterns introduced in a branch. It compares changes with main and favors focused edits that preserve behavior unless a clear bug needs fixing.

Key features

  1. 01Compare branch changes with main
  2. 02Remove unnecessary or inconsistent comments
  3. 03Simplify abnormal defensive code
  4. 04Replace casts used to bypass types
  5. 05Keep behavior and edits focused

Use cases

  1. 01Cleaning up a feature branch before review
  2. 02Removing unnecessary comments from a diff
  3. 03Simplifying nested code without broad rewrites

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/michael-denyer/pstack-claude --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