deslop

Remove AI-generated comments, defensive checks, and unnecessary casts from code diffs.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill deslop-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/global/.agents/skills/deslop
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill deslop-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove AI-generated slop from code edits, stripping unnecessary comments and defensive checks added by AI tools to produce cleaner, production-ready code.

Core Features & Use Cases

  • Identify and remove AI-generated slop in code diffs and branches.
  • Diff against a baseline (e.g., main) to preserve intentional changes while removing extraneous content.
  • Produce a clean, minimal version of modified files and a concise summary of changes for PR reviews.

Quick Start

Diff your current branch against main and deslop the edited files to produce cleaner code.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I remove unnecessary comments and defensive checks from AI-generated code?

Diff-based pruning removes AI slop by comparing your branch against a baseline like main, identifying extraneous comments and defensive checks, and producing clean modified files with a concise summary of changes.

What is the best way to clean up AI slop in a code diff?

The best way to clean up AI slop in a code diff is to run a static analysis refactoring process that strips unnecessary casts and comments while preserving the file's core behavior across multiple file types.

Can I clean up AI-generated code across multiple programming languages?

Yes, AI code cleanup applies to post-AI code reviews across multiple file types, handling unnecessary casts, defensive checks, and comments universally. It processes code diffs to produce clean, focused code.

Does AI code cleanup preserve the original behavior of my files?

Yes, AI code cleanup preserves behavior by only removing extraneous content like unnecessary comments and casts while maintaining the functional logic of edited files. It produces clean, minimal versions of modified files.

How do I generate a summary of changes after removing AI slop from a branch?

To generate a summary of changes after removing AI slop, diff your branch against a baseline like main. The process prunes extraneous content and provides a final summary of changes for PR reviews.