deslop

Remove AI-generated comments, defensive checks, and type casts from git diffs.

1|1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/sontek/agent-skills --skill deslop-sontek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/sontek/agent-skills/tree/main/plugins/agent-skills/skills/deslop
Command: npx skills add https://github.com/sontek/agent-skills --skill deslop-sontek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers remove AI-generated code slop from a branch by cleaning up excessive comments, defensive checks, and unnecessary type casts, ensuring diffs align with the project's style.

Core Features & Use Cases

  • Review and prune AI-generated patterns that don't match the codebase style.
  • Remove excessive comments and redundant defensive checks while preserving functionality.
  • Use case: after generating code with an AI assistant, apply deslop to produce a clean, review-ready diff.

Quick Start

To use deslop, run a git diff against the main branch to identify differences, then apply the cleanup guidance described in this Skill to the affected files. Ensure changes remain focused and do not remove real fixes.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I remove AI-generated code slop from a git diff?

To remove AI-generated code slop from a git diff, run a diff against the main branch and apply cleanup guidance to prune excessive comments, defensive checks, and unnecessary type casts while preserving functionality.

What is AI-generated code slop in a codebase?

AI-generated code slop refers to excessive comments, redundant defensive checks, and unnecessary type casts that do not align with project style. It requires cleanup to ensure diffs remain minimal and focused.

How do I clean up excessive comments and defensive checks after using an AI coding assistant?

Clean up excessive comments and defensive checks by applying stylistic guidelines during code review. This prunes AI-generated patterns while ensuring the functionality and real fixes remain intact.

Can I use deslop to enforce coding style across different programming languages?

Yes, you can enforce coding style across different programming languages. The cleanup process validates patterns and applies stylistic guidelines to ensure branches align with the project's established conventions.

What is the best way to prepare AI-generated code for a code review?

The best way to prepare AI-generated code for review is to run a git diff against the main branch, then apply cleanup guidance to remove unnecessary type casts and excessive comments, producing a focused, review-ready diff.

When should I avoid removing defensive checks during code cleanup?

You should avoid removing defensive checks during code cleanup if they represent real fixes. The cleanup process enforces minimal changes but explicitly ensures that actual functionality and legitimate corrections are preserved.