From shipshitdev-library
Removes AI-generated code slop (console.log, any types, unused imports, etc.) and product slop (filler copy, generic UI, dead buttons) from codebases. Can scope to branch diff or full tree.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shipshitdev-library:de-slop [ui | --changed | all | dry-run | --product][ui | --changed | all | dry-run | --product]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
AI-assisted development leaves two kinds of slop. **Code slop** compiles but reads as
AI-assisted development leaves two kinds of slop. Code slop compiles but reads as
machine-written — dead code, any, defensive noise. Product slop ships but feels
unfinished to a paying customer — filler copy, default styling, half-wired flows.
This skill removes both. Code slop is the default; --product adds the product pass.
Edits and removes code, so it runs behind a confirmation gate and prefers the branch
diff. For a read-only pass that only flags, use structural-review / /review.
Inputs:
--changed, all, dry-run) and
dimension (--product to add the product pass, ui to run the UI primitive pass).Outputs:
dry-run, a grouped report of what would change), plus a
short count of artifacts removed by type.Creates/Modifies:
External Side Effects:
Delegates To:
polish for the final micro-detail pass after the structural slop is gone.refactor-code when a fix is a real refactor, not a mechanical strip.Remove, matching the surrounding file's existing style:
any types → real types or unknown + a type guard.--product)The layer that decides whether an app feels finished. See references/product-slop.md for the full Incorrect → Correct catalog; the three families:
Product slop needs judgment, not just deletion — flag anything ambiguous rather than guessing at intended copy or behavior.
ui)When the first argument is ui, run only the UI pass. Do not run the code
cleanup workflow first.
Do not encode component-specific styling rules in this skill. Derive them from the target project.
Before judging taste, inspect the local source of truth:
Create a short working inventory:
For each UI role present on the audited surface, identify whether the project has a shared primitive or documented recipe:
If a primitive exists:
If no primitive exists:
Raw semantic HTML is fine for document structure and prose. Raw HTML is not fine when it is acting as a design-system control or surface.
Fix objective design-system drift before subjective taste. Keep changes scoped to the audited surface and defer product-judgment calls with a concrete finding instead of inventing intent.
Route UI mode — if the first argument is ui, run the UI slop pass above
and stop.
Detect structure — monorepo vs single package (ls packages/ 2>/dev/null).
Process each package separately.
Scope — in --changed, limit edits to the branch diff:
BASE="$(git merge-base HEAD origin/HEAD 2>/dev/null || git merge-base HEAD main 2>/dev/null || git merge-base HEAD master)"
git diff --name-only "$BASE"..HEAD # files this branch touched
Touch only those files/hunks; do not clean pre-existing slop elsewhere in this mode.
Strip code slop by the categories above; add the product pass if --product.
Verify — the change must still build and pass:
bun run type-check || bunx tsc --noEmit
bun run test
Document — log packages cleaned and per-type counts in
.agents/sessions/YYYY-MM-DD.md.
ui — run the UI/design-system primitive pass.--changed — only the files/hunks this branch introduced (safest for a PR).--product — add the product-slop pass (copy/UI/UX).all — sweep every package in a monorepo, each processed separately.dry-run — detect only; report every artifact grouped by type with counts, edit
nothing. Combines with any scope.--changed keeps a PR
reviewable; whole-tree edits need confirmation.refactor-code), not de-slop.npx claudepluginhub shipshitdev/skillsCleans AI-generated code slop with a regression-safe, deletion-first workflow. Supports optional reviewer-only mode for incremental cleanup passes.
Detects and strips AI-generated slop from code: simplifies unnecessary complexity, removes rotten comments, checks design patterns. Runs on git changes or paths before PRs.
Detects and removes AI-generated code slop including unnecessary comments, over-engineering, verbose error handling, premature abstractions, and documentation bloat. Cleans code to senior engineer standards.