Skip to content
Skillpedia
General coding33k · #9085

deslop

What it does

This skill guides the AI agent in reviewing a branch's changes and removing AI-written clutter. It is for developers who want code that matches the style of their existing project.

When to use it

  • ✓When your branch contains AI-generated code with extra comments or unnecessary checks.
  • ✓When you want to remove type casts to any that were added only to get past type errors.
  • ✓When you want the code to match the style of the surrounding files before merging.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/sentry/deslop/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/sentry/deslop/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you clean up the AI-generated clutter in my branch compared to main?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the diff against main, removes extra comments, needless defensive code and style mismatches, then gives a short summary.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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
FAQ

What does it remove?

It removes extra comments, unnecessary defensive checks, casts to any, and inline Python imports.

Does it change the behavior of code?

The skill is meant to keep legitimate changes and only remove clutter and style problems.

What does it compare against?

It compares the branch with main using the git diff.

Details

Original description by the author

Remove AI-generated code slop from a branch. Use when cleaning up AI-generated code, removing unnecessary comments, defensive checks, or type casts. Checks diff against main and fixes style inconsistencies.

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#9085
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills