deslop

Removes unnecessary AI-generated code patterns from branch diffs without changing behavior.

4|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/douglance/sdlc-plugin --skill deslop-douglance
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/douglance/sdlc-plugin/tree/main/.rulesync/skills/deslop
Command: npx skills add https://github.com/douglance/sdlc-plugin --skill deslop-douglance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-assisted coding often leaves behind slop: redundant comments, unnecessary defensive checks, type-bypassing casts, and deeply nested logic. This Skill cleans up those artifacts in your branch diff while keeping behavior intact. ## Core Features & Use Cases - Diff-Based Cleanup: Compares the current branch against main and targets only the slop introduced in your changes. - Pattern Detection: Flags unnecessary comments, abnormal try/catch blocks, casts to any, and deeply nested code that should use early returns. - Behavior Preservation: Applies minimal, focused edits and keeps behavior unchanged unless fixing a clear bug. - Use Case: After generating a feature with an AI assistant, run this Skill before opening a pull request to strip out verbose comments and defensive code that do not match your codebase style. ## Quick Start Review the diff against main and remove any AI-generated slop from my current branch without changing behavior.

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 my branch?▼

Run the deslop skill on your current branch. It compares the diff against main, identifies unnecessary comments, defensive checks, and type casts, then applies minimal edits that preserve behavior.

What patterns count as AI code slop?▼

Slop includes unnecessary or style-inconsistent comments, defensive try/catch blocks abnormal for trusted code paths, casts to any used to bypass type errors, and deeply nested code that early returns would simplify.

Does cleaning up AI slop change my code behavior?▼

No. The skill keeps behavior unchanged unless it is fixing a clear bug. It prefers minimal, focused edits over broad rewrites to avoid introducing regressions.

When should I not use automated slop removal?▼

Avoid it when the diff contains intentional defensive code for untrusted inputs or public APIs, since the skill targets checks abnormal for trusted code paths. Review suggested changes before committing.

Can deslop fix deeply nested code automatically?▼

Yes. It identifies deeply nested blocks and simplifies them using early returns, but only when the restructuring does not alter the existing behavior of the code.