Remove AI Code Slop

SkillAI & models

deslop 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.

Have a branch containing AI-generated code to clean up.

Remove AI Code SlopStart free

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

  1. Have a branch containing AI-generated code to clean up.
  2. Add the deslop skill to the agent's available skills.
  3. Ask the agent to run deslop on the branch.
  4. 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 any to 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

  1. Get the diff against main: git diff main...HEAD
  2. Review each changed file for slop patterns
  3. Remove identified slop while preserving legitimate changes
  4. 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