Deslop

Clean up AI-generated code slop and maintain consistent code quality

✨ The solution you've been looking for

Verified
Tested and verified by our team
16036 Stars

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.

code-cleanup ai-slop code-quality git-diff refactoring style-consistency code-review
Repository

See It In Action

Interactive preview & real-world examples

Live Demo
Skill Demo Animation

AI Conversation Simulator

See how users interact with this skill

User Prompt

I just used AI to help implement a new feature but the code has too many comments and unnecessary try-catch blocks. Can you help me clean it up?

Skill Processing

Analyzing request...

Agent Response

Streamlined code that maintains functionality while removing AI-generated verbosity and style inconsistencies

Quick Start (3 Steps)

Get up and running in minutes

1

Install

claude-code skill install deslop

claude-code skill install deslop
2

Config

3

First Trigger

@deslop help

Commands

CommandDescriptionRequired Args
@deslop post-ai-code-review-cleanupClean up excessive comments and defensive checks added by AI code generation toolsNone
@deslop branch-quality-assuranceReview code changes before merging to ensure they match project coding standardsNone
@deslop type-safety-cleanupRemove inappropriate type casts and fix import organization issuesNone

Typical Use Cases

Post-AI Code Review Cleanup

Clean up excessive comments and defensive checks added by AI code generation tools

Branch Quality Assurance

Review code changes before merging to ensure they match project coding standards

Type Safety Cleanup

Remove inappropriate type casts and fix import organization issues

Overview

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

What Users Are Saying

Real feedback from the community

Environment Matrix

Dependencies

Git repository with main branch

Context Window

Token Usage ~3K-8K tokens depending on diff size

Security & Privacy

Information

Author
davila7
Updated
2026-01-30
Category
automation-tools