Remove AI Code Slop
SkillAI & modelsdeslop is a skill that cleans up AI-generated code on a branch. It reviews the diff against main and removes unnecessary comments, defensive checks, and type casts, while fixing style inconsistencies. The deslop skill is used when a branch contains AI-written code that needs tidying before it is merged.
Use Remove AI Code Slop in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Remove AI Code Slop and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Remove AI Code Slop skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have a branch containing AI-generated code to clean up.
What your AI can do with it
- Checks the diff of a branch against main
- Removes unnecessary comments from AI-generated code
- Removes defensive checks that are not needed
- Removes unnecessary type casts
- Fixes style inconsistencies in the changed code
Getting started
- Have a branch containing AI-generated code to clean up.
- Add the deslop skill to the agent's available skills.
- Ask the agent to run deslop on the branch.
- Review the changes it makes to the diff against main.
What this skill tells your AI
The instructions your AI receives, as published by davila7/claude-code-templates in cli-tool/components/skills/sentry/deslop/SKILL.md and read by ahel’s review.
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
Signals
- GitHub stars
- 32k
- Forks
- 4k
- Last commit
- Oct 2026
Questions
- What does deslop do?
- It removes AI-generated code slop from a branch: unnecessary comments, defensive checks, and type casts, and fixes style inconsistencies by checking the diff against main.
- When should I use it?
- Use it when cleaning up AI-generated code on a branch before merging.
- Does it change files outside my branch?
- It works on the branch's diff against main, so it targets the changes on that branch.
Advanced
- Item type
- skill
- Key
deslop-davila7- Source
- github.com/davila7/claude-code-templates
github.com/davila7/claude-code-templates
More in AI & models
Skill · anthropics
More in AI & modelswayfinder
Skill · mattpocock
More in AI & modelswizard
Skill · mattpocock
More in AI & modelsalgorithmic-art
Skill · anthropics
More in AI & modelscode-review-and-quality
Skill · addyosmani
More in AI & modelsai-first-engineering
Skill · affaan-m
More in AI & models