bundles/dev-workflow/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
TypeScript refactoring and modernization guidelines from a principal specialist perspective. This skill should be used when refactoring, reviewing, or modernizing TypeScript code to ensure type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving TypeScript type architecture, narrowing, generics, error handling, or migration to modern TypeScript features.
tools
Resolves TypeScript and JavaScript problems across type-level programming, performance, monorepo management, migration, and modern tooling. Invoke when diagnosing "type instantiation excessively deep" errors, migrating JS to TS, configuring strict tsconfig, debugging module resolution, or choosing between Biome/ESLint/Turborepo/Nx.
tools
Turborepo monorepo build system guidance. Triggers on: `turbo.json`, task pipelines, `dependsOn`, caching, remote cache, the `turbo` CLI, `--filter`, `--affected`, CI optimization, environment variables, internal packages, monorepo structure, and package boundaries. Use when the user configures tasks or workflows, creates packages, sets up a monorepo, shares code between apps, runs changed packages, debugs cache behavior, or works in an `apps/` plus `packages/` workspace.
tools
Provides Tailwind CSS v4 performance optimization and best practices guidelines. Triggers when writing, reviewing, or refactoring Tailwind CSS v4 code; when working with Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.