skills/de-slop/SKILL.md
Strip AI-generated slop from a codebase and product. Code slop — console statements, `any` types, unused imports, commented-out code, redundant comments, needless defensive try-catch on trusted paths, over-nesting. Product slop (with --product) — marketing-filler copy, generic AI phrasing, default-shadcn look, unstyled loading/error states, dead buttons and half-wired flows that make an app feel unfinished. UI slop (`ui`) runs a project-derived design-system primitive pass. Can scope to the current branch's diff or sweep the whole tree. Use when asked to clean up AI-generated code, remove slop, or make an app feel finished before shipping to customers.
npx skillsauth add shipshitdev/library de-slopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.development
Coordinates a weekly engineering review of board accuracy, recent code changes, operational health, and scoped cleanup. Use for a recurring repository health review or a review of the last several days.
testing
Audits project board configuration and prepares explicitly requested setup, copy, or normalization changes while preserving the existing workflow and provider boundaries. Use when inspecting a board's fields, columns, scope, or configuration.
testing
Reconciles a project board with current work and delivery evidence, reports incomplete coverage and metadata gaps, and applies only approved provider-supported field changes. Use when auditing board drift, reviewing blocked work, or assessing upcoming delivery.
development
Walk through how a subsystem works. Use for "how does X work", code walkthroughs before changing something, and placement or ownership questions. Explains architecture, runtime flow, and onboarding mental models. Can critique architecture. Use why for motivation.