deslop

Diff a code branch against main and remove AI-generated comments, defensive checks, and casts to any.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lovincyrus/claude-config --skill deslop-lovincyrus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/lovincyrus/claude-config/tree/main/skills/deslop
Command: npx skills add https://github.com/lovincyrus/claude-config --skill deslop-lovincyrus

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? This Skill helps clean up AI-generated slop from the current code branch by comparing with the mainline and pruning extraneous AI-generated elements.

## Core Features & Use Cases

  • Diff against main to identify AI-generated comments, redundant checks, and inconsistent style.
  • Remove extraneous comments, defensive checks, and casts to any to align with project conventions.
  • Generate a concise summary of changes (1-3 sentences) after cleanup.

### Quick Start Checkout the feature branch and run the deslop operation to apply automated cleanup of AI-generated code slop.

Frequently Asked Questions about deslop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove unnecessary AI-generated comments from my git branch?

To remove unnecessary AI-generated comments from your git branch, you can diff your feature branch against main to identify and prune extraneous elements. This process targets AI slop like redundant comments, defensive checks, and style inconsistencies to align with project conventions.

What is AI code slop and how do I clean it up?

AI code slop consists of unnecessary comments, defensive checks, or casts to any introduced by AI-assisted code that diverge from repository conventions. You clean it up by diffing against main and pruning these extraneous elements, then generating a concise summary of the changes made.

How do I eliminate redundant defensive checks introduced by AI in my codebase?

To eliminate redundant defensive checks introduced by AI in your codebase, run an automated cleanup operation on your feature branch. It identifies AI-generated sloppiness by diffing against main and enforces the removal of unnecessary defensive checks and casts to any.

Can I automatically align AI-assisted code style inconsistencies with my mainline repository?

Yes, you can automatically align AI-assisted code style inconsistencies with your mainline repository. By checking out your feature branch and running a cleanup operation, the code is diffed against main to prune style divergences and enforce project conventions.

Does cleaning up AI-generated code slop require any external dependencies?

Cleaning up AI-generated code slop does not require any external dependencies. The cleanup operation works directly on your codebase by diffing the current branch against main and automatically pruning extraneous AI-generated elements.

What does the code cleanup summary report after removing AI slop?

The code cleanup summary reports a concise 1–3 sentence summary of changes after removing AI slop. This summary details the removal of unnecessary comments, defensive checks, or casts to any that were identified during the diff against main.