About deslop
deslop is a code-review skill that checks a branch diff against main for AI-generated clutter and makes focused cleanup edits while preserving behavior.
Key features
- 01Review diffs against main
- 02Remove unnecessary comments
- 03Simplify abnormal defensive code
- 04Replace type-bypassing any casts
- 05Preserve behavior with focused edits
Use cases
- 01Clean up AI-generated changes in a branch
- 02Align code with surrounding file conventions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mariusflorescu/ pstack-t3 --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 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
anyused 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