/uiverify:check-visual-changesfrom UI Verify
Runs `uiverify check` to preview visual diffs of changed components against the CI baseline mid-edit, without opening a PR or touching baselines. Supports Storybook, Playwright, Vitest, Bun archives, and raw screenshots.
Ships in UI Verify. 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.
None: SKILL.md is the whole skill.
uiverify check is the interactive preview build — the agent edit-loop counterpart to the CI
uiverify upload. You're mid-task, you've changed a component, and you want to know now whether it
changed anything visually and whether that change is intended — without opening a PR, waiting for CI, or
touching a baseline.
It renders on the same fleet and diffs against the same resolved CI baseline a real build would, so the answer is authoritative (not a local macOS screenshot that won't match Linux). But it's walled off from CI:
A changed verdict exits 0 — it's the expected result to review, not a gate. Only a real failed/blocked
or an operational error exits non-zero.
A blocked build was paused at the team's snapshot allowance or billing check before rendering
anything. Stop and relay what the CLI printed to the user, who has to act on it. Don't re-run
check until the user has resolved the block the way that output says: until then every re-run is
paused too.
This is the whole point, and it's the opposite of CI. CI computes the transitive affected set from the dependency graph — editing one primitive can mark a third of the suite affected. That's correct for CI (it writes the baseline and can't under-render) but useless in an edit loop: it's slow, expensive, and drowns the signal you actually want.
So you choose what to render — the stories for the component you're editing, plus the specific places it matters, not everything the graph lights up. Under-scoping is safe here: a preview build is never a baseline, so the worst case is you didn't preview a story you didn't ask about, and the exhaustive CI build catches it later. Name the few things that matter.
check is a dumb HTTP client: it uploads what you built or captured and asks the fleet to render it.
It does not run your build or your tests for you — you prepare the capture input first, exactly the
same input the matching capture skill produces (storybook-visual-testing, playwright-visual-testing,
vitest-visual-testing, bun-visual-testing), then point check at it.
You must be signed in (npx uiverify login) or have UIVERIFY_API_KEY (a uv_proj_… project key) set. In a monorepo, pass the --project <team>/<slug> that the package's upload script carries (the repo's AGENTS.md names it too); signed in, check without it can't tell which project is meant once the repo has two. Every method takes --strict/--no-strict
and --working-directory like uiverify upload.
--target is requiredStorybook builds the whole suite (there's no single-story build), so you must name what to render. The build is monolithic; only the named stories actually render on the fleet.
npm run build-storybook # or: storybook build --stats-json
uiverify check --static-dir storybook-static --target 'components-button--*' --target 'pages-checkout--default'
Pass --target per id; each is an exact story id (components-button--default) or an anchored glob
(components-button--*). Render the component you changed plus the one or two pages where it actually
appears — not the whole components-* tree.
--target optionalRun only the tests you care about to produce the capture archive, then check it. The archive already
contains just those captures, so the uploaded artifact is the render set — no --target needed.
# Playwright: run only the specs you touched, producing the archive
npx playwright test tests/checkout.spec.ts
uiverify check --static-dir <archive-dir>
# Vitest browser-mode component tests: run only the touched files
npx vitest run src/components/Button.test.tsx
uiverify check --static-dir <archive-dir>
# Bun (@uiverify/bun): pass the runner only the touched files (or -t <test name pattern>)
bun tests/visual/run.ts tests/visual/checkout.visual.ts
uiverify check --static-dir uiverify-archive
You can still pass --target to narrow further (it matches the capture/test ids the SDK emitted, e.g.
--target 'checkout/*'), but the usual discipline is "run the tests you want, then check the archive."
--target optionalUpload exactly the PNGs you produced (native / mobile / React Native, or any surface we don't render). The upload is inherently scoped to the screens you took.
uiverify check --screenshots ./screenshots
Narrow with --target against the image path keys if you want (--target 'settings/*'), but it's optional.
Before it renders anything, check prints the branch's open review notes (a reviewer's comments that
nobody has resolved yet), with each one's story, build and link. Read them first: they are part of the task,
and you resolve each with resolve_comment once it's done. list_comments with branch reads the same
list over the MCP. Notes follow their story to newer builds until resolved, and accepting a story is refused
while a note from a person on it is open, including one carried over from an earlier build. On a CI run the
notes show where they are and not what they say; read the text with list_comments.
check prints the changed-story list and an MCP handoff. When it comes back changed, don't eyeball
the diff numbers alone — use the triage-visual-changes skill to review the actual pixels over the
UI Verify MCP (get_diff / render_diff_image), bucket real regressions vs cosmetic reflow vs noise, and
accept the baselines you mean to keep. Accepting establishes the branch-scoped preview baseline, so a
re-run of check comes back clean for the change you just approved while a fresh change still flags.
Rule of thumb for the loop: edit → check the few things you touched → triage the diff → accept what's
intended → keep editing. The exhaustive answer still comes from the real CI build on your PR; this is the
fast, scoped preview that keeps you moving.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub uiverify/uiverify --plugin uiverify10 skills in this plugin
/bun-visual-testingMake @uiverify/bun captures deterministic so Bun visual tests (bun test driving Chrome through Bun.WebView) stop coming back "changed" without a real change (flaky diffs). Use when setting up or debugging visual tests written with @uiverify/bun, on a real page of your running app (run() with webServer) or on a component page served by serveBundle(). Focuses only on the run-to-run variation the SDK can't neutralize from outside your app — above all live/dynamic data, the highest-value step (freeze it with fixtures or page.route and the whole content-noise class disappears), plus the clock, infinite JS animations, non-Math.random randomness, fonts a measuring component reads before they load, and the Bun-specific setup traps./economical-visual-testsAuthor economical visual tests — full visual coverage in the fewest billable snapshots. Applies to any per-snapshot visual tool (UI Verify, Chromatic, Percy, Playwright screenshots), which all bill and diff per rendered story/test. Use when a component's variants/states are exploding into one snapshot per combination, when the visual-testing bill or noise is driven by snapshot count, or when writing new stories/captures and you want the cheapest layout that still covers every variant. Covers gallery/matrix stories, data-driven states, and the coarse-granularity tradeoff.Other plugins' skills for the same job