You know that verbose, overly defensive code that AI assistants love to generate? The unnecessary try-catch blocks, the `any` casts to paper over type issues, the comments explaining what `i++` does? This skill diffs your branch against main and strips all that out. It's basically a linter for AI habits, catching the patterns that make code reviews painful: inline imports in Python, defensive checks in already-validated codepaths, style inconsistencies. Run it before you push and it'll clean up the mess while keeping your actual logic intact. Honestly, the fact that this exists says something about where we are with AI coding tools, but it's genuinely useful if you're working with generated code regularly.
- skills.sh installs
- 348
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill deslop --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Git & Pull Requests, Code Review & Quality, AI & Agent Building
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Algorithmic Art347
- Email Systems347
- Faiss347
- Voice Agents347
- Git Pushing346
- Brand Guidelines344
- Paid Ads344
- Guidance343
- Executing Plans342
- Launch Strategy342
- Marp Slide342
- Writing Clearly And Concisely342
- Browser Extension Builder341
- Huggingface Tokenizers340
- Llama Factory339
- Stable Baselines3338
- Bullmq Specialist337
- Crewai337
- Quantizing Models Bitsandbytes337
- Nemo Curator336
- Discord Bot Architect335
- Railway Deploy335
- Aws Serverless334
- Clip334
