Skip to content
Productivity
Command

/deslop

Remove unnecessary AI-generated code while preserving behavior.

From plugin
pro-workflow
2.9k23 skills8 agents23 commands22 hooks
> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

Command definition

deslop.md
description: Remove unnecessary AI-generated code while preserving behavior.

/deslop - Remove AI Code Slop

Strip AI-generated slop from the current branch.

Process

1. **Diff the branch against main:**

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

2. **Scan for slop patterns:**

  • Comments that state the obvious or don't match local style
  • Defensive try/catch blocks on trusted internal code paths
  • Casts to `any` used only to bypass type issues
  • Over-engineered abstractions for one-time operations
  • Deeply nested code that should use early returns
  • Backwards-compatibility hacks (renamed `_vars`, re-exports, `// removed` comments)
  • Features or "improvements" beyond what was requested
  • Docstrings and type annotations added to unchanged code
  • Error handling for scenarios that can't happen

3. **Apply minimal edits** to remove each slop instance.

4. **Verify behavior unchanged:**

   git diff origin/main...HEAD
   npm test -- --changed --passWithNoTests 2>&1 | tail -10

5. **Report** what was cleaned (1-3 sentences).

Guardrails

  • Keep behavior unchanged unless fixing a clear bug.
  • Prefer minimal edits over broad rewrites.
  • Three similar lines is better than a premature abstraction.
  • Verify something is truly unused before removing it.

---

**Trigger:** Use when code feels bloated, before committing, after AI-heavy sessions, or when someone says "clean this up".

Read more
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other commands on pro-workflow.

auto-setup

auto-setup

Command

Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase

@rohitg00@rohitg00Install Command
compact-guard

compact-guard

Command

Smart context compaction with state preservation — saves critical state before compact and restores after

@rohitg00@rohitg00Install Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command