Review a page
One pass, one report. Steps 1 to 5 are mandatory and run in a fixed order (look → judge → worst case → automated QA (quality assurance) → report); step 0 (prepare) and step 6 (independent confirmation) are optional. Do not skip any step without saying so in the report. Explain each acronym the first time it appears in a response or document (glossary at the end). Explain decisions in plain language.
Before you start, read references/division-of-labor.md: it says what the script measures and what is left to you.
Non-negotiable rules
- Never touch the original. The review does not edit the page. The worst case works on a copy inside the report folder. Fix things only if the user asks, after the report.
- No duplicates. What
qa.mjsmeasures (resting contrast, accessible names, missing alt text, roles, touch target size,h1, first Tab, overflow, zoom, reduced motion, JavaScript errors, compatibility, code security and valid HTML) is not reviewed by hand on the screen and routes it visits: cite it from the QA report. What the script does not visit (open menu, accordion or dialog, error states) is reviewed by hand. Remove duplicates after checking. Ifqa.mjscannot run, do a minimal manual checklist (contrast, names, Tab, overflow) and mark the rest [P]. A finding reported by two sources counts once, with all its sources and the highest severity. - Sites you don't own. On sites you don't own or aren't authorized to test, review passively only (like a normal visitor): a single desktop pass of
ver.mjsplus the judgment step (steps 1 and 2). Noqa.mjs, worst case, Lighthouse or scanners against them. If someone asks for QA on such a page, ask for the local HTML file. - No real data. Never put real personal data (customers, payroll, biometrics) in pages, queries or external services, neither in the worst case nor in the report. Demo data is invented and marked as fictitious.
- Don't install things on your own. The tools ship with the plugin in
${CLAUDE_PLUGIN_ROOT}/tools/(one-time setup in step 1). - Tag every finding: [V] verified with evidence, [H] hypothesis, [P] pending.
Step 0. Target and folder
- What is being reviewed? A project HTML file or a web address. If unclear, ask.
qa.mjsonly accepts local files (it reads the file from disk). With an external web address, steps 1 and 2 run and the report states that QA does not apply: it is a partial review with explicit scope, not missing evidence (see the verdict in step 5).- Create the report folder (from the project root):
R="reports/review/$(basename <file> .html)-$(date +%Y-%m-%d-%H-%M)"; mkdir -p "$R/worst-case"
Step 1. Look
node "${CLAUDE_PLUGIN_ROOT}/tools/ver-web/ver.mjs" <file-or-url> # desktop 1440×900
node "${CLAUDE_PLUGIN_ROOT}/tools/ver-web/ver.mjs" <file-or-url> --mobile # 390×844, touch
- One-time setup: the tools need Node 20+,
npm install --prefix "${CLAUDE_PLUGIN_ROOT}/tools", thennpx --prefix "${CLAUDE_PLUGIN_ROOT}/tools" playwright-core install chromium firefox webkit;ver.mjsalso needs ffmpeg and Python 3 with Pillow. Optional env:BROWSER_PATH(a Chromium-based browser to use instead of Playwright's),PYTHON,LOCALE. See the plugin README. - Run from the project root; all output goes under
./reports/. - On your own mockups without a menu add
--no-menu; to open something specific,--click "selector". - Output goes to
reports/ver-web/<name>-<date>/and…-mobile-<date>/:summary.md,screenshots/,sheets/(contact sheets with the second on each frame) and video. - Read both
summary.mdfiles and, with Read, 3 or 4 screenshots (first screen, one in the middle, the menu and the end). On long pages, don't open them all. - Page errors listed in the summary are an early warning: QA confirms them per device; in the report they count once.
Step 2. Design judgment
On the screenshots and the code, with two guides:
references/heuristics.mdfirst, before looking at QA so you don't anchor: specificity, Nielsen's 10 heuristics scored 0 to 4, cognitive load and 2 or 3 personas.references/criteria.mdnext: keyboard and focus, forms, statesqa.mjsdoesn't see (loading, error, empty), motion, typography and copy, regional formatting, images, themes and navigation.
In large files, grep rule by rule. Every finding carries file:line and source Judgment. Don't repeat by hand what is in the "Measured by qa.mjs" column of division-of-labor.md on the screen and routes the script visits (no-duplicates rule); in the states it doesn't visit (open menu, accordion or dialog, error states) you do check contrast and names.
Step 3. Worst case (on a copy)
Follow references/worst-case.md with the values in references/worst-case-catalog.md. If you have the break-ui skill installed, you can lean on it for this phase, always on the copy; otherwise these two references are enough.
-
Copy the page under another name:
cp <file> "$R/worst-case/<name>-worst-case.html". Never edit the original. -
If the page uses relative paths (
img/,css/,../shared/), create symbolic links to those folders inside$R/worst-case/(ln -s "$PWD/img" "$R/worst-case/img"); a../shared/path resolves to$R/shared. Don't copy or move the originals. If the page has no data to swap (a static landing page), test long copy only, say which in the report, and note that the rest does not apply. -
In the copy, add the worst-case data through the same place as the demo data, plus the Demo / Worst case / Empty / One / 1,000 rows switch (collapsible, so it doesn't cover what is being tested).
-
Look at each state with
ver.mjson the copy:--size 320x700,--size 640x900(narrow width, not zoom); separately, text enlarged to 200 % (browser zoom) and reflow at 320,--size 2560x1200and--mobile. Add--click "selector"to reach the component.ver.mjsnames its folder by minute, not by width: run one at a time and, after each, move its folder fromreports/ver-web/to$R/worst-case/ver-<width>/so the next one doesn't overwrite it. -
Record each failure with its signature, cause and fix (with
file:lineof the original). Source Break.
Step 4. Automated QA
Don't modify qa.mjs. Run it in the background (run_in_background), on the original:
node "${CLAUDE_PLUGIN_ROOT}/tools/qa/qa.mjs" <file.html> # full, ≈ 5–10 min (the default)
node "${CLAUDE_PLUGIN_ROOT}/tools/qa/qa.mjs" <file.html> --quick # 2 devices, no Lighthouse, ≈ 1 min (only if asked)
- Output goes to
reports/qa/<file>-<date>/report.mdwithscreenshots/. It exits with code 1 if there is any ❌: that is not a review failure, it is a finding. - While it runs, write up the findings from steps 1 to 3. Don't sit watching the output.
- When it finishes, read the report and look at 3 or 4 of its screenshots (small phone, tablet and desktop for each engine).
qa.mjsvisits the initial screen and the#/…routes found in links (up to 12 with--quick, 45 in a full run); reduced motion, only the first 5. It doesn't open menus, accordions or error states.- Compatibility is checked against
'iOS >= 15, Safari >= 15, Chrome >= 120, ChromeAndroid >= 120, Edge >= 120, Samsung >= 24, Firefox ESR'(browserslist query). - Limits that always go under "Not covered": whether Firefox started in this run; emulation is not a real device; axe doesn't catch every accessibility failure.
Step 5. Single report
Copy references/report-template.md to $R/report.md and fill it in:
- Gather the findings from Look, Judgment, Break and Script.
- Remove duplicates with the rules in
division-of-labor.md(same element and same cause = one finding; sources joined with "+"; highest severity). - Assign the common severity from the table below and sort from S1 (blocker) to S4 (polish).
- Verdict: Not evaluated if evidence is missing (no render, or QA should have run and didn't); Not ready if there is any S1 (blocker); Ready with fixes if there is any S2 (major); Ready if only S3 (minor) and S4 (polish) remain, with render and QA done. If QA doesn't apply (external address or a site you don't own), the verdict is prefixed with "Partial review, no automated QA:" and is never a plain "Ready".
- Every row carries evidence (path to the screenshot or the
qa.mjsreport) and its tag [V], [H] or [P]. - Few S4 (polish): a long tail of details hides what matters.
Common severity
The single scale for the three skills (web-motion and art-direction point here; don't copy it): assign it by impact on the person, not by the type of alarm. WCAG 2.2 AA = Web Content Accessibility Guidelines, version 2.2, level AA. P0–P3 = impeccable priorities (P0 highest).
| Common | Meaning | qa.mjs | impeccable (P0–P3) | break-ui | Web Interface Guidelines |
|---|---|---|---|---|---|
| S1 Blocker | prevents the task, WCAG 2.2 AA failure, JavaScript error that breaks the task, secret or resource loaded unencrypted (<script src="http://…">) | ❌ | P0, and P1 when it is a WCAG AA failure | Broken that leaves something unreadable or unreachable | NEVER that blocks |
| S2 Major | makes things much harder; fix before delivery | ⚠️ that affects the task in some browser or exposes something | P1 | Broken with a workaround or only at one width | MUST |
| S3 Minor | annoying, but there is a workaround | ⚠️ that is only a warning (console error with no effect, text link to http://, optional enhancement); Lighthouse below 90 | P2 | Ugly | SHOULD |
| S4 Polish | no real impact | — | P3 | Fragile | typographic detail |
Torn between two levels: "would someone call support about this?" If yes, it is at least S2 (major). Touch target size: under 24×24 is S1; 24 to 43 is S3 and is checked by hand (24×24 is the WCAG 2.2 AA minimum, success criterion 2.5.8; 44×44 is the house rule). The target is WCAG 2.2 AA; for the legal minimum, check the accessibility law that applies in your country.
Step 6. Independent confirmation
Optional: a second review that doesn't depend on you. If no subagents are available, write "independent confirmation pending [P]".
- A security-review subagent on the file: unescaped data, storage, external links.
- A verification subagent with
$R/report.md: nothing missing, and every [V] has evidence.
Record their result in the report's "Independent confirmation" section.
When done
- Reply with the verdict, the S1–S4 count (blocker to polish), the 3 most severe findings and the path
$R/report.md. - Give the user the report path and offer to open it. If the worst-case copy needs to be shown, open (or reload)
$R/worst-case/<name>-worst-case.htmlin the browser. - The report is a draft until the user approves it.
- If they ask for fixes ("fix 1 and 3"), fix them in the original, run
ver.mjsandqa.mjs --quickagain, and compare with the previous version: no feature may be lost.
Files in this skill
| File | Purpose |
|---|---|
references/division-of-labor.md | what the script measures, what judgment covers and what needs a person; how to merge duplicates |
references/criteria.md | design and copy rules (from the Web Interface Guidelines and impeccable) |
references/heuristics.md | specificity, Nielsen, cognitive load and test personas (from impeccable critique) |
references/worst-case.md | phases, failure signatures and truncate vs. wrap (from break-ui and impeccable harden) |
references/worst-case-catalog.md | values that break interfaces |
references/report-template.md | single report template |
THIRD-PARTY-NOTICES.md | MIT licenses of Vercel and Emil Kowalski, and Apache 2.0 of impeccable, with full texts |
Glossary
- WCAG 2.2 AA: Web Content Accessibility Guidelines, version 2.2, level AA. QA: quality assurance. HTML: HyperText Markup Language. ESR: Extended Support Release (Firefox).
- S1–S4: common severity (blocker, major, minor, polish). P0–P3: impeccable priorities. MIT: Massachusetts Institute of Technology (license).
- [V] verified, [H] hypothesis, [P] pending.