/ship-pipeline:review-slopfrom ship-pipeline
This skill scans a branch diff before opening a PR for needless casts, unsupported abstractions, missing validation, misleading tests, and prose tells. Requires evidence and behavior-based repair criteria. Report-only, never fixes. Repo-agnostic; defers to a repo-local review-slop when one exists. Triggers on /review-slop and phrases like 'check this for slop', 'scan before the PR', 'does this read like AI wrote it'.
Ships in ship-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scan a branch diff for AI-slop — patterns that compile, pass lint, and read plausibly, but leave the codebase worse. Include correctness gaps concealed by plausible code or weak tests; passing checks do not establish every contract.
Report-only. Never fix, unstage, or modify anything. The value is a list a human decides on. A scanner that also edits turns a review into a diff you now have to review.
If the current repo has its own .claude/skills/review-slop/ or
.agents/skills/review-slop/, that version is authoritative — follow it
instead. A repo-local version knows its own compliance rules, voice, and
known-broken patterns; this one only knows what holds everywhere.
git status --short
git diff <integration-ref>...HEAD --stat
git diff <integration-ref>...HEAD
Discover the integration branch rather than assuming it — main, master and
dev are all common, and diffing from the wrong one either floods the report
with already-merged work or hides half the change. Resolve <integration-ref>
to a real local or remote-tracking ref before running the commands. Prefer the
PR's actual base when available. Fetch only when permitted; record when the
comparison uses an unrefreshed local ref.
Three-dot syntax compares the merge base of the integration ref and HEAD with HEAD. Record both refs and their commit IDs so the scan has a reproducible scope. It excludes staged, unstaged, and untracked changes. Report those exclusions; inspect them separately only when requested. Never switch branches to review.
If the requested diff is empty, report no changes scanned, not a clean verdict.
Treat matches as candidates. Trace source, validation, callers, and tests before reporting. Distinguish introduced problems from existing debt; deduplicate shared causes. Mark unresolved contracts as questions, not confirmed findings.
Broad boundary types and runtime guards may be necessary. Check whether internal types preserve validated information. Flag widening followed by unchecked casts, or typed external input with no runtime validation.
Run the checks that apply. A file can match more than one.
| files | checks |
|---|---|
.ts .tsx .js .jsx .py .go .rs | code |
.md .mdx and other prose | prose |
| migrations, schema files | migration |
Assign severity by demonstrated impact: CRITICAL for exposure, data loss, or bypassed safety boundaries; HIGH for substantive contract or maintenance problems; WARNING for style and minor cleanup. A missing explanation alone is not CRITICAL.
Type safety and exposure:
any / unknown / interface{} where a concrete type is
discoverable in-file or one import away.@ts-ignore, @ts-expect-error, # type: ignore,
//nolint) with no comment saying why.Unnecessary complexity:
try/catch around operations proven not to throw. Inspect callees and
language semantics: getters, proxies, and nominally pure computations can
throw. A result-returning parser needs no catch only if its contract says so.// gets the user by id above getUserById(id).TODO describing the current task rather than flagging a deferred
decision. "TODO: add error handling for this PR" is a note to nobody.Minor cleanup candidates:
userObject: User, itemsArray: Item[].Treat prose patterns as WARNING by default. Cite a concrete clarity problem; symmetry or word choice alone does not establish AI authorship or a defect.
IF NOT EXISTS, which can conceal an unexpected existing schema.NOW(), random()) inside an index predicate.Inspect whether mocks replace the behavior claimed as tested. Recommend a failing input and observable side effect for each missing guarantee, plus integration or user-flow coverage where relevant. Passing lint is insufficient evidence.
Report verification gaps separately from proven defects. Do not run state-changing flows, install lint tools, or change enforcement as part of this report-only scan.
Group by severity, most severe first. Per finding:
path:lineReject suggestions that merely relocate casts or suppress warnings. Prefer a bounded repair; label architectural questions separately. For recurring failures, suggest a targeted check with actionable diagnostics, not blanket enforcement.
Close with counts at each severity and any unresolved questions or verification gaps. Use a clear verdict only when none remain; distinguish no confirmed findings from a completed clean review.
For a completed clean review, name what was scanned — how many files, which scopes, and which refs. List skipped checks or unavailable evidence explicitly. Never use "clean" for an empty or incomplete scan.
Evidence and verification guidance adapted from Builder.io's How to De-Slop an AI-Generated Codebase (September 16, 2026). Keep scans report-only; the article's repair workflow does not authorize edits.
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/analytics-instrumentationPostHog event taxonomy and instrumentation review - object_verb naming, flat property schemas, identify/reset/group calls, PII exclusion, LLM usage events, a starter dashboard set (activation, retention, feature funnel), and a per-feature checklist. Use when instrumenting a new feature, auditing existing PostHog events, or setting up analytics for a new product, e.g. "add tracking", "what events should we fire", "review our PostHog events", "is there PII in analytics"./api-designREST conventions for Next.js App Router route handlers — resource naming, versioning, cursor pagination, one error envelope, Zod request/response validation, status-code rules, OpenAPI generated from Zod, and response scrubbing (no secrets, hashes, or other users' data). Use when asked to "design an API route", "add a new endpoint", "review this route handler", "fix our error responses", or "generate API docs"./backup-verifyConfirm database backups exist AND actually restore, by enumerating Neon branch snapshots / Supabase scheduled backups / pg_dump artifacts, restoring into a scratch branch, running smoke queries, and recording timestamped evidence. Use before any risky migration or production mutation, and on a monthly cadence regardless./cdfUse when the user types /cdf or $cdf, or asks for issue numbers "comma-delimited". Output any list of GitHub issues as one plain comma-separated line of numbers, nothing else added./db-migration-safetyWrite or review Prisma and Supabase database migrations safely using the expand-contract pattern, idempotent SQL, and batched backfills. Use when adding/changing columns or tables, writing a migration PR, or reviewing one before merge — especially against Neon Postgres or Supabase in production./db-truthGround every database claim in the live database. Repo-agnostic — pre-work verification before any spec, plan, or code that touches tables (schema shape, M2M vs scalar, RLS/permissions, function properties), and post-apply verification that migrations actually landed (ledger, object existence, type regen). Defers to a repo-local db-truth skill when one exists. Use BEFORE designing anything DB-touching and AFTER every migration apply.npx claudepluginhub stylusnexus/agent-plugins --plugin ship-pipeline