Skip to content

Targeted cleanup of AI-generated code slop on a branch, comparing the diff against main.

CCM score
65 of 100
skills.sh installs
354
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Removes unneeded comments, excess defensive checks or try/catch blocks, and any casts that hide type issues
  • Moves inline Python imports to the top of the file and fixes other style inconsistencies with the surrounding code
  • Runs git diff main...HEAD and reviews each changed file, keeping legitimate changes intact
  • Ends with a 1 to 3 sentence summary of what was changed, useful before opening a pull request

Install

$ npx -y skills add davila7/claude-code-templates --skill deslop -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/davila7/claude-code-templates
Category
Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the deslop skill do?

The deslop skill removes AI-generated code slop from a branch by checking the diff against main. It targets extra comments a human would not write, unneeded defensive checks or try/catch blocks, casts to any, and inline imports in Python. It also fixes other style inconsistencies with the surrounding file.

How do I install the deslop skill?

Run npx -y skills add davila7/claude-code-templates --skill deslop -y in your project. After installing, the agent can review your branch changes and clean up AI-generated code in the files you changed.

Where does deslop stand in the Code Review & Quality category?

Deslop is listed in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. It focuses on cleaning up style and slop patterns within a branch rather than on full review or architecture work.

Which code patterns does deslop look for?

Deslop looks for comments that are inconsistent with the rest of the file, defensive checks that are abnormal for their area of the codebase, and casts to any used to get around type issues. In Python it also moves inline imports to the top of the file.

More from davila7/claude-code-templates

All 398