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
- 01Review diffs against main
- 02Identify inconsistent comments and checks
- 03Remove unnecessary any casts
- 04Move Python inline imports
- 05Preserve legitimate changes
Use cases
- 01Clean up a branch before review
- 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 deslopAfter installing, type/deslopin Claude Code to confirm it loaded.
Details
From the project READMERemove 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
anyto 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
- Get the diff against main:
git diff main...HEAD - Review each changed file for slop patterns
- Remove identified slop while preserving legitimate changes
- Report a 1-3 sentence summary of what was changed
Comments
Markdown supported