mcpField
D
deslop

deslop

github.com/davila7Development33.0k347 installsUpdated today
Repository

About deslop

deslop is a code-review skill for removing AI-generated style and defensive-code clutter from changes in a branch. It compares the branch with main, preserves legitimate changes, and reports a brief summary of edits.

Key features

  1. 01Review diffs against main
  2. 02Identify inconsistent comments and checks
  3. 03Remove unnecessary any casts
  4. 04Move Python inline imports
  5. 05Preserve legitimate changes

Use cases

  1. 01Clean up a branch before review
  2. 02Align changed code with local conventions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davila7/claude-code-templates --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 all AI-generated slop introduced in this branch.

What to Remove

  • Extra comments that a human wouldn't add or are inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted/validated codepaths)
  • Casts to any to get around type issues
  • Inline imports in Python (move to top of file with other imports)
  • Any other style that is inconsistent with the file

Process

  1. Get the diff against main: git diff main...HEAD
  2. Review each changed file for slop patterns
  3. Remove identified slop while preserving legitimate changes
  4. Report a 1-3 sentence summary of what was changed

Comments

Markdown supported