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
Own this skill? Claim it
What it does
- Removes unneeded comments, excess defensive checks or try/catch blocks, and
anycasts 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...HEADand 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 -yInstalls 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
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
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- Fda Consultant Specialist352
- Voice Ai Development352
- Voice Agents351
- Geo Database350
- Performance Profiling350
- Server Management350
- Email Systems348
- Browser Extension Builder342
- Launch Strategy342
- Bullmq Specialist338
- Discord Bot Architect338
- Stable Baselines3338
- Crewai337
- Nemo Curator336
- Railway Deploy335
- Aws Serverless334
- Lint And Validate334
- Move Code Quality333
- Zapier Workflows330
- Scikit Survival329
- Alphafold Database326
- Llm App Patterns326
- Pyhealth326
- Gh Fix Ci325
Similar to Deslop
More Code Review & QualityslopPluginjellydn/my-ai-tools130 starsRemoves AI-generated code slop from git diffs to maintain code quality. Clean up extra comments, defensive checks, type casts, and inconsistent style.
review-and-simplify-changesSkilldimillian/skills880 installsScoped review of git changes for reuse, quality, efficiency, and clarity, with optional safe automated fixes.
diff-intakeSkillamplitude/mcp-marketplace69.3K installsTurns a PR or branch diff into a structured YAML change brief for downstream analytics instrumentation skills.
make-pr-easy-to-reviewSkillcursor/plugins3.5K installsPrepare PRs for review by cleaning history, sharpening descriptions, and guiding reviewers without behavior changes.
review-and-refactorSkillgithub/awesome-copilot11.1K installsReviews code against project instructions in .github/ and refactors it while keeping existing files intact.