About deslop
deslop is a coding skill for reviewing a branch diff against main and removing AI-generated code changes that do not fit the surrounding codebase. It focuses on style and unnecessary code rather than adding functionality.
Key features
- 01Review branch diff against main
- 02Remove inconsistent comments
- 03Trim abnormal defensive checks
- 04Remove casts used to bypass types
- 05Report a brief change summary
Use cases
- 01Clean up a branch before review
- 02Align generated edits with local style
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ brianlovin/ agent-config --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.
This includes:
- Extra comments that a human wouldn't add or is 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
- Any other style that is inconsistent with the file
Report at the end with only a 1-3 sentence summary of what you changed
Comments
Markdown supported