deslop

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

3|Updated Apr 8, 2025
One-click install
npx skills add https://github.com/ZanzyTHEbar/dragonarchy --skill deslop-zanzythebar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/ZanzyTHEbar/dragonarchy/tree/main/packages/opencode/.config/opencode/skills/deslop
Command: npx skills add https://github.com/ZanzyTHEbar/dragonarchy --skill deslop-zanzythebar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding assistants often leave behind unnecessary comments, defensive checks, type casts, and deeply nested logic that clutter a codebase. This Skill reviews a branch diff and strips out those artifacts while preserving intended behavior. ## Core Features & Use Cases - Diff-Based Cleanup: Checks the diff against a chosen base branch and removes slop introduced in that branch only. - Targeted Pattern Removal: Eliminates unnecessary comments, abnormal defensive checks and try/catch blocks, casts to any, and deeply nested code that should use early returns. - Behavior Preservation: Keeps behavior unchanged unless fixing a clear bug, and preserves unrelated user or agent changes. - Use Case: After an AI agent generates a large feature branch, run this Skill before opening a pull request to tighten the code so reviewers see clean, idiomatic changes. ## Quick Start Ask the assistant to deslop the current branch diff against the main branch and remove AI-generated artifacts 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 a branch?

Run the deslop skill against your branch diff relative to a base branch. It identifies unnecessary comments, abnormal defensive checks, any-type casts, and deeply nested code, then removes them with minimal focused edits.

What kinds of AI code artifacts does deslop clean up?

It targets extra comments inconsistent with local style, defensive checks or try/catch blocks abnormal for trusted code paths, casts to any used to bypass type issues, and deeply nested code that should use early returns.

Does deslop change the behavior of my code?

No, behavior is kept unchanged unless the cleanup fixes a clear bug. The skill prefers minimal, focused edits over broad rewrites and preserves unrelated user or agent changes in the diff.

When should I not use automated deslop cleanup?

Avoid it when the diff contains intentional defensive logic for untrusted inputs or public APIs, since the skill targets checks abnormal for trusted code paths. Review the changes if your codebase has unusual style conventions.