deslop
What it does
This skill guides the AI agent in reviewing a branch's changes and removing AI-written clutter. It is for developers who want code that matches the style of their existing project.
When to use it
- ✓When your branch contains AI-generated code with extra comments or unnecessary checks.
- ✓When you want to remove type casts to any that were added only to get past type errors.
- ✓When you want the code to match the style of the surrounding files before merging.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/sentry/deslop/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you clean up the AI-generated clutter in my branch compared to main?”
5 new skills a week. 1 minute to read.
How it works
The agent reads the diff against main, removes extra comments, needless defensive code and style mismatches, then gives a short summary.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
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
FAQ
What does it remove?
It removes extra comments, unnecessary defensive checks, casts to any, and inline Python imports.
Does it change the behavior of code?
The skill is meant to keep legitimate changes and only remove clutter and style problems.
What does it compare against?
It compares the branch with main using the git diff.
Details
Original description by the author
Remove AI-generated code slop from a branch. Use when cleaning up AI-generated code, removing unnecessary comments, defensive checks, or type casts. Checks diff against main and fixes style inconsistencies.
Popularity
- GitHub stars
- 33k
- Ranking position
- #9085
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.