Communitygithub.com

page-review

Full review of a web page or HTML (HyperText Markup Language) file, with one report and one severity scale. In a fixed order it looks at the page in a real browser, judges it on design, copy and usability heuristics, breaks it with worst-case data on a copy, runs the automated QA (quality assurance) in the background, and merges everything without duplicate findings. Combines Vercel's Web Interface Guidelines, impeccable's audit, critique and harden modes, and break-ui. Use it when asked to \"review the page\", \"review this demo\", \"audit the site\", \"do QA\", \"check accessibility\", \"review design and accessibility\", \"is it ready to ship?\", \"before delivery\", \"break it\", \"try the worst case\", or when a demo or mockup is finished. Not for designing from scratch (art-direction) or building animations (web-motion).

page-review 是什麼?

page-review is a Claude Code agent skill that full review of a web page or HTML (HyperText Markup Language) file, with one report and one severity scale. In a fixed order it looks at the page in a real browser, judges it on design, copy and usability heuristics, breaks it with worst-case data on a copy, runs the automated QA (quality assurance) in the background, and merges everything without duplicate findings. Combines Vercel's Web Interface Guidelines, impeccable's audit, critique and harden modes, and break-ui. Use it when asked to \"review the page\", \"review this demo\", \"audit the site\", \"do QA\", \"check accessibility\", \"review design and accessibility\", \"is it ready to ship?\", \"before delivery\", \"break it\", \"try the worst case\", or when a demo or mockup is finished. Not for designing from scratch (art-direction) or building animations (web-motion).

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/djborret/claude-design-skills/tree/HEAD/plugins/design-skills/skills/page-review

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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.mjs measures (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. If qa.mjs cannot 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.mjs plus the judgment step (steps 1 and 2). No qa.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

  1. What is being reviewed? A project HTML file or a web address. If unclear, ask.
  2. qa.mjs only 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).
  3. 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", then npx --prefix "${CLAUDE_PLUGIN_ROOT}/tools" playwright-core install chromium firefox webkit; ver.mjs also 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.md files 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:

  1. references/heuristics.md first, 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.
  2. references/criteria.md next: keyboard and focus, forms, states qa.mjs doesn'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.

  1. Copy the page under another name: cp <file> "$R/worst-case/<name>-worst-case.html". Never edit the original.

  2. 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.

  3. 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).

  4. Look at each state with ver.mjs on the copy: --size 320x700, --size 640x900 (narrow width, not zoom); separately, text enlarged to 200 % (browser zoom) and reflow at 320, --size 2560x1200 and --mobile. Add --click "selector" to reach the component. ver.mjs names its folder by minute, not by width: run one at a time and, after each, move its folder from reports/ver-web/ to $R/worst-case/ver-<width>/ so the next one doesn't overwrite it.

  5. Record each failure with its signature, cause and fix (with file:line of 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.md with screenshots/. 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.mjs visits 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:

  1. Gather the findings from Look, Judgment, Break and Script.
  2. Remove duplicates with the rules in division-of-labor.md (same element and same cause = one finding; sources joined with "+"; highest severity).
  3. Assign the common severity from the table below and sort from S1 (blocker) to S4 (polish).
  4. 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".
  5. Every row carries evidence (path to the screenshot or the qa.mjs report) and its tag [V], [H] or [P].
  6. 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).

CommonMeaningqa.mjsimpeccable (P0–P3)break-uiWeb Interface Guidelines
S1 Blockerprevents 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 failureBroken that leaves something unreadable or unreachableNEVER that blocks
S2 Majormakes things much harder; fix before delivery⚠️ that affects the task in some browser or exposes somethingP1Broken with a workaround or only at one widthMUST
S3 Minorannoying, but there is a workaround⚠️ that is only a warning (console error with no effect, text link to http://, optional enhancement); Lighthouse below 90P2UglySHOULD
S4 Polishno real impact—P3Fragiletypographic 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]".

  1. A security-review subagent on the file: unescaped data, storage, external links.
  2. 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.html in 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.mjs and qa.mjs --quick again, and compare with the previous version: no feature may be lost.

Files in this skill

FilePurpose
references/division-of-labor.mdwhat the script measures, what judgment covers and what needs a person; how to merge duplicates
references/criteria.mddesign and copy rules (from the Web Interface Guidelines and impeccable)
references/heuristics.mdspecificity, Nielsen, cognitive load and test personas (from impeccable critique)
references/worst-case.mdphases, failure signatures and truncate vs. wrap (from break-ui and impeccable harden)
references/worst-case-catalog.mdvalues that break interfaces
references/report-template.mdsingle report template
THIRD-PARTY-NOTICES.mdMIT 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.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

animacion-web

Crea o revisa animaciones y transiciones en páginas web hechas con HTML (lenguaje de páginas web), CSS (hojas de estilo) y JavaScript sin librerías, con criterio sobrio y compatible con iPhone y Safari 15 o posterior. Úsala cuando pidan \"anima esto\", \"agrega movimiento\", \"dale movimiento\", \"transición\", \"que se sienta vivo\", \"micro-interacción\", \"revisa las animaciones\", \"se mueve raro\", \"se siente lento\", o antes de entregar una demo, solo si tiene movimiento. No es para el estilo general de la página (eso es direccion-visual) ni para la revisión completa (revision-de-pagina). Reúne el criterio de animate, motion-design, review-animations, emil-design-eng y la parte de animación de impeccable; para animación, prefiérela a ellas.

direccion-visual

Dirección visual de páginas web, demos y mockups en español, con la marca del cliente o una marca blanca. Fija la marca primero, elige el modo de la superficie, arma un plan de colores, tipos y composición en dos pasadas, construye con un piso de calidad, mira el render y critica con heurísticas. Fusiona Impeccable, Frontend Design y, si está instalado, UI UX Pro Max (UI: interfaz de usuario; UX: experiencia de usuario). Úsala cuando pidan \"diseña la página\", \"elige el estilo\", \"dirección de diseño\", \"dirección visual\", \"mejora el diseño\", \"critica el diseño\", \"rediseña la demo\", \"que no parezca hecha por IA (inteligencia artificial)\", \"qué paleta o qué fuentes uso\", \"haz el mockup\", \"pule la página\" o al empezar una demo o página nueva. Para crear o revisar animaciones usa animacion-web; para la revisión completa antes de entregar, revision-de-pagina.

web-motion

Creates or reviews animations and transitions in web pages built with HTML (HyperText Markup Language), CSS (Cascading Style Sheets) and JavaScript without libraries, with restrained judgment and compatible with iPhone and Safari 15 or later. Use it when asked to \"animate this\", \"add motion\", \"make it move\", \"transition\", \"make it feel alive\", \"micro-interaction\", \"review the animations\", \"it moves weird\", \"it feels slow\", or before delivering a demo, only if it has motion. Not for the overall style of the page (that is art-direction) or the full review (page-review). Combines the judgment of animate, motion-design, review-animations, emil-design-eng and the animation part of impeccable; for animation, prefer it over them.

相關技能