Deslop

From rohitg00/pro-workflow · View interactive version

Deslop is an AI agent skill from the GitHub repository rohitg00/pro-workflow. Remove AI-generated code slop, unnecessary comments, and over-engineering from the current branch diff. Cleans up boilerplate, simplifies abstractions, strips defensive code, and in skill-file mode lints SKILL.md files for quality. Use when cleaning up code, simplifying, removing boilerplate, before

How to use this skill

Skill file

Remove AI Code Slop

Check the diff against main and remove AI-generated slop introduced in the branch.

Trigger

Use after completing changes, before committing, or when code feels over-engineered.

Commands

git fetch origin main
git diff origin/main...HEAD --stat
git diff origin/main...HEAD

Workflow

  1. Run diff commands to see all changes on the branch.
  2. Identify slop patterns from the focus areas below.
  3. Apply minimal, focused edits to remove slop.
  4. Re-run git diff origin/main...HEAD to verify only slop was removed.
  5. Run tests or type-check to confirm behaviour unchanged: npm test -- --changed --passWithNoTests 2>&1 | tail -10
  6. Summarise what was cleaned.

Focus Areas

Guardrails

Skill-file mode

When the target is a SKILL.md (not a code diff), lint it against the same

slop instinct applied to prose. Run this before promoting a skill. Flag:

longer matches what it does. Cut it.

linked reference. Push it down: in-skill step, then in-skill reference, then

an external file behind a pointer.

Keep one source of truth.

but never records the answer, cleans but never verifies).

can name in one word triggers and executes in fewer tokens.

See CODE0.

adds, updates, or appends, or that duplicates its output on a second run.

Skill-file mode output: the flagged issues by line, the edits applied,

the cleanup summary, and whether the skill is ready to promote.

Output (code mode)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.