/ship-pipeline:ux-reviewfrom ship-pipeline
Reviews Playwright visual-snapshot screenshots (or any screenshot folder) against a UX checklist — layout, spacing, hierarchy, consistency, accessibility, and mobile responsiveness — and reports a rating and findings per screenshot; files GitHub issues only when asked. Use on '/ux-review', 'review these screenshots', 'check the UI on mobile', or 'do a visual UX pass'.
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.
Read screenshots with the agent's image-reading tool for a UX analysis. Identifies layout issues, spacing inconsistencies, accessibility problems, mobile breakpoint failures, and design system violations.
Report-first. The default output is a report. Filing GitHub issues reaches other people, so it happens only when the user asks for it (--file-issues, or "file issues for these").
If the current repo has its own .claude/skills/ux-review/ or .agents/skills/ux-review/, that version is authoritative — follow it instead. A repo-local version knows the project's design system, breakpoints, and snapshot layout; this one only knows what holds everywhere.
Announce at start: "Running UX review."
/ux-review # Review all existing snapshots
/ux-review --fresh # Run visual tests first, then review
/ux-review --diff # Review only changed snapshots (git diff)
/ux-review <path> # Review a specific screenshot or directory
/ux-review --file-issues # Review, then file GitHub issues for findings
/ux-review --help # Show this help
When the user passes --help (or help, -h), display this summary and stop:
UX Review — AI-Powered Visual Analysis
USAGE: /ux-review [scope] [options]
SCOPES:
(default) Review all existing snapshots
<path> Review a specific screenshot file or directory
OPTIONS:
--fresh Run visual tests first, then review new screenshots
--diff Review only changed snapshots since last commit
--file-issues
After the report, file GitHub issues for Needs Attention
and Needs Fix findings (off by default)
--help Show this help
OUTPUTS:
- Per-screenshot rating (Good/Needs Attention/Needs Fix)
- Summary with counts
- GitHub issues for Needs Attention and Needs Fix, only with
--file-issues or when you ask (issue links then added to the summary)
axe-core (optional but recommended for a11y scanning):
node -e "require('@axe-core/playwright')" 2>/dev/null
If missing: suggest npm install -D @axe-core/playwright for automated WCAG validation.
If --fresh flag is set:
Run visual tests to capture current state (project-specific command — check the repo's agent instructions (CLAUDE.md, AGENTS.md) or package.json for the right test command).
If --diff flag is set:
Only review screenshots that changed since the last commit:
git diff --name-only HEAD -- '*.png' | grep 'snapshots'
Otherwise: Find all snapshot directories:
find . -path '*-snapshots/*.png' -not -path './node_modules/*' | head -50
If a specific path is given: Review only that file or directory.
For each screenshot, use the Read tool to view the image, then evaluate against this checklist:
Automated a11y scanning: If @axe-core/playwright is installed, run axe on key pages and report critical/serious violations as 🔴 Needs Fix.
A screenshot cannot prove contrast ratios, focus order, or label associations — treat visual judgments on those as likely findings and say when axe or a manual check is needed to confirm them.
Sources: WCAG 2.2 (SC 1.4.1 use of color, 1.4.3 contrast, 2.4.7 focus visible, 2.5.8 target size, 3.3.2 labels or instructions), Apple Human Interface Guidelines — Accessibility (44x44pt hit targets), and axe-core for the automated scan.
For each screenshot reviewed:
## UX Review Report
### [screenshot-name.png]
**Rating:** 🟢 Good / 🟡 Needs Attention / 🔴 Needs Fix
**Issues:**
- [severity] [description] — [suggestion]
**Positives:**
- [what works well]
Severity levels:
Default: do not file anything. End the report by listing the 🟡 Needs Attention and 🔴 Needs Fix findings and asking whether to file GitHub issues for them. File issues only when the user passed --file-issues or says to file them (all, or the ones they name).
When filing:
Detect the repo's issue conventions instead of assuming them:
ls .github/ISSUE_TEMPLATE/ 2>/dev/null — if a bug or enhancement template exists, follow its sections.gh label list --limit 200 — use an existing label that fits (for example a bug-type label for 🔴 and an enhancement- or UX-type label for 🟡). Never create labels. If nothing fits, file without a label and say so.gh issue list --limit 20 --state all — match the repo's prevailing title format (for example a conventional fix(ux): ... prefix only if the repo uses one).Create each issue with:
Report each issue URL in the review output
Do NOT file issues for:
gh issue list --search "<keywords>" --state all)UX Review Complete:
- Screenshots reviewed: N
- 🟢 Good: N
- 🟡 Needs Attention: N
- 🔴 Needs Fix: N
- Issues filed: N (links) — or "not filed; reply 'file issues' to file them"
User: /ux-review tests/visual/__snapshots__/checkout-mobile.png
### checkout-mobile.png
**Rating:** 🔴 Needs Fix
**Issues:**
- [Critical] Promo-code row overflows the viewport, causing horizontal scroll — let the input shrink or stack the button below it
- [Major] Email field has a placeholder but no visible label — add a persistent label above the field
- [Major] "Place order" button text looks below 4.5:1 contrast — confirm with axe; darken the button color if it fails
**Positives:**
- Single-column layout and a clear order summary at the top
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin ship-pipeline16 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.