deslop
Remove AI-generated code slop from the current branch. Use when the user says "deslop", "remove slop", or asks to clean up AI-generated code.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Task
Check the diff against the default branch (use git symbolic-ref refs/remotes/origin/HEAD to detect main/master) and remove all AI-generated slop introduced in this branch.
What to remove
- Extra comments a human wouldn't add or inconsistent with the rest of the file
- Unnecessary defensive checks or try/catch blocks (especially from trusted/validated code paths)
- Fallbacks for scenarios that can't happen or are already guaranteed by upstream code
- Casts to
anyto work around type issues - Any style inconsistent with the surrounding file
Output
Report a 1-3 sentence summary of changes at the end.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!