skills/deslop/SKILL.md
Strip AI-generated slop from a codebase, product, and prose. 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. UI slop (`ui`) runs a project-derived design-system primitive pass. Prose slop (`prose`) cuts AI tells from writing. Can scope to the current branch's diff or sweep the whole tree. Use when asked to clean up AI-generated code, unslop writing, remove slop, or make an app feel finished before shipping to customers.
npx skillsauth add shipshitdev/library deslopInstall 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 three kinds of slop. Code slop compiles but
reads as machine-written. Product slop ships but feels unfinished to a
paying customer. Prose slop is writing with AI tells: puffery, em-dash
habits, chatbot phrases, voiceless neutrality. This skill removes all three.
Code slop is the default. --product adds the product pass. prose runs the
writing pass. ui runs only the design-system 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. For a layered doc standard (Diátaxis, STE, Global English), use
technical-writing and then apply the prose catalog here.
Other skills that need the prose catalog point at references/prose-slop.md. They do not fire this skill.
Inputs:
--changed,
all, dry-run) and dimension (--product, ui, prose).Outputs:
dry-run, a grouped report of what would change), plus
a short count of artifacts removed by type.Creates/Modifies:
External Side Effects:
Confirmation Required:
all) or rewriting product copy whose intent
is ambiguous.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.technical-writing when the ask is a docs, RFC, README, PR, or commit
standard rather than a slop strip.Remove, matching the surrounding file's existing style:
any types → real types or unknown + a type guard.prose)When the first argument is prose, or when the target is a reply, README,
RFC, PR description, commit message, or other writing surface, apply
references/prose-slop.md.
--product copy cleanup also runs this catalog. Do not invent product voice
when the intended copy is unclear; flag it.
--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 mode — ui runs the UI pass and stops. prose runs the prose
catalog and stops. --product adds product + prose after code slop.
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 by the categories above.
Verify — a code 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 the current repository's session log when one exists.
ui — run the UI/design-system primitive pass.prose — run the writing-tell catalog only.--changed — only the files/hunks this branch introduced (safest for a PR).--product — add the product-slop pass (copy/UI/UX) and the prose catalog.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 deslop.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.