Deslop

by brianlovin1a9819ebf3feNo license376 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 6 months ago

Remove AI-generated code slop from the current branch. Use after writing code to clean up unnecessary comments, defensive checks, and inconsistent style.

Instructions onlySoftware Development
AI-generated overview

Reviews a branch diff against main and removes AI-generated code slop such as excess comments and defensive checks.

What it does
The skill inspects the diff between the current branch and main, then removes AI-generated additions it considers slop: comments a human would not add, defensive checks or try/catch blocks abnormal for the codebase, casts to any, and other style inconsistent with the file. It finishes with a one-to-three sentence summary of the changes. It is instructions only and ships no scripts.
When to use it
Use it after writing code on a branch, when you want the branch cleaned of AI-generated artifacts before review or merge. It suits codebases with an established style that new changes should match.
Requirements
Requires access to the repository and its git history so the branch can be diffed against main. No scripts, packages, or credentials are included.

Remove AI code slop

Check the diff against main, and remove all AI generated slop introduced in this branch.

This includes:

  • Extra comments that a human wouldn't add or is 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
  • Any other style that is inconsistent with the file

Report at the end with only a 1-3 sentence summary of what you changed

Source and attribution

Source:brianlovin/agent-configinskills/deslopat commit1a9819e

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal