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

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

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
1skala-io avatarstartup-due-diligenceskala-io/legal-skillsLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities inclu337skills.sh installs
2getsentry avatarwardengetsentry/wardenRun Warden to analyze code changes before committing. Use when asked to "run warden", "check my changes", "review before commit", "warden config", "warden.toml"335skills.sh installs
3secondsky avatarcloudflare-workers-ci-cdsecondsky/claude-skillsComplete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets m318skills.sh installs
4payloadcms avatartriage-ci-flakepayloadcms/payloadUse when CI tests fail on main branch after PR merge, when investigating flaky test failures, or when user provides a PR URL/number to aggregate all failing tes307skills.sh installs
5davila7 avatargh-address-commentsdavila7/claude-code-templatesHelp address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not lo301skills.sh installs
6pbnicad avatartelegram-bot-grammypbnicad/telegram-bot-grammy-skillTelegram Bot development skill using grammY framework, TypeScript, Drizzle ORM, Vitest testing, Biome linting, deployed to Cloudflare Workers with D1 database. 292skills.sh installs