verify-ui
Screenshot the changed route with the project's own command. Use it before reporting a UI, layout, styling, copy or interaction change done.
Files1
View on GitHubSKILL.md.claude/skills/verify-ui/SKILL.md
GitHubVerify the rendered screen
A rendered-UI change is not done until someone has looked at it (CLAUDE.md → completion gate);
passing tests are not that look. A change to the terminal board's display (scripts/run/board/)
takes the Terminal UI section below instead of steps 1–3.
1. Decide which routes to capture
- The routes given as arguments (
/verify-ui / /blog). - Otherwise
pnpm josh ui:routes(branch diff, or--staged) lists the routes the change touches; pick the ones a reader would notice. - If it derives none, ask which screen to look at. Do not guess.
State the list before capturing.
2. Capture
Run pnpm josh ui:shot <route>... once, with every route (pnpm josh ui:shot / /blog). It finds this
project's screenshot command and runs it; do not probe the candidates by hand. The command prints the
image paths, and its exit status is the result. A failed capture is not a passed gate.
When there is no screenshot command
ui:shot says so — no screenshot command in this project — tried: and the candidates — and exits
non-zero. Only then:
Capture through the project's own E2E suite: add await page.screenshot({ path: … }) to the
Playwright spec covering the screen (or a new spec) and run it.
Otherwise, when pnpm josh run:prep <N> prints post_merge_check: <where to look> (not none or ?),
the issue deferred the look past the merge: check what you can without a screenshot (the real output,
tests on colors or rendering), record behavior checked, look unchecked and the <where to look> in
the PR body and on the issue, and continue the run. This does not close the gate; never report it as
satisfied.
Otherwise stop and say so, in the session language: what you looked for, that the UI verification gate is not closed by this run, and ask the user to look at the screen.
Never report the gate as satisfied on tests alone. Never stand up a preview server by hand and drive it from a throwaway script. A project that should have the command and does not is an issue against the application toolkit.
3. Look at the images
Read every produced image with the Read tool — capturing without opening does not close the gate. Check the change's intent: element present, placed, sized, spaced, colored and worded as intended; nothing else disappeared or moved; the layout holds at the captured viewport.
Terminal UI
The board is text, so read it: do not look for a screenshot command, and do not stop.
- List the states the change affects, of: a notice or none, repeat, mute, theme (default, or a
--themevalue:wopr,trace,flux,codec,nixie,skynet,magi), a narrow width. - Per state, run
pnpm josh run:board --frameonce with the flags that fix it (--notice <row state>such asmergedorstopped,--issue <n>,--repeat,--mute,--theme <name>,--columns <n>) and read the output: layout, wording, column alignment and width as intended. For a color change add--ansiand read the SGR codes.
Read everything the text shows. Only how a color looks, animation and sound are left to a person:
write them in the issue's ## 背景 as マージ後の確認: <where to look>; this is not a stop before the merge.
4. Report
- Matches the intent: route by route, what you checked, with the image paths (on the E2E
fallback, the
pathoption). - Does not match: route, intended result, what the image shows, image path. Fix and capture again.
- Could not capture: the report from step 2, unchanged. This is not a pass.
- Terminal UI: state by state, the command run and the frame lines you read.