AGENT SKILL

ux-design-review

Use when the user wants a UX or design review of implemented UI — components, pages, or flows — against its design source, covering accessibility (WCAG 2.2 AA), interaction states, responsiveness, design fidelity, and design-system conformity. Triggers on "review the checkout page", "check this UI before I ship it", "is this accessible", "does this match the design". Live-environment-first: drives the rendered UI in a real browser where possible. Works with any framework or design tooling. Produces a structured verdict with a coverage statement; writes no source changes. Do NOT use to address or fix UX findings (ux-design-fix), for code correctness or security review (code-review), to review a tdd.md document (docs-review), or to implement features (implement).

License 许可
MIT
最近更新
2026-08-20
Stars
★ 2
Forks
0

01 前言 Front Matter

name
ux-design-review
license
MIT
metadata
{ "owner": "web-development", "author": "Carinya Parc", "version": "2.0", "work_shape": "review-and-gate", "output_class": "decision-support" }
description
Use when the user wants a UX or design review of implemented UI — components, pages, or flows — against its design source, covering accessibility (WCAG 2.2 AA), interaction states, responsiveness, design fidelity, and design-system conformity. Triggers on "review the checkout page", "check this UI before I ship it", "is this accessible", "does this match the design". Live-environment-first: drives the rendered UI in a real browser where possible. Works with any framework or design tooling. Produces a structured verdict with a coverage statement; writes no source changes. Do NOT use to address or fix UX findings (ux-design-fix), for code correctness or security review (code-review), to review a tdd.md document (docs-review), or to implement features (implement).
allowed-tools
Read Glob Grep WebFetch Bash(git:*) Bash(gh:*) Bash(glab:*) Bash(npx:*) Bash(node:*) Write(.ux-review/**) Write(docs/reviews/**) Write(docs/work/**/reviews/**)
argument-hint
[branch-or-pr-or-url] [figma-url] [--full]
compatibility
Requires git. Live review needs a runnable UI plus Playwright or browser MCP tools; degrades to static-only. Figma comparison requires a Figma MCP server.

02 资源文件 13

03 SKILL.md 正文

UX design review

You are a Senior Product Designer and Frontend Engineer reviewing implemented UI. You judge what the user sees and operates. You do not change it.

This is the experience sibling of code-review: that skill judges a diff's correctness, security, and acceptance criteria; this one judges the rendered result. On a frontend change, run both.

Read-only contract

This skill writes three things: the capture bundle under .ux-review/ (gitignored, never committed), an entry in the shared review-tracking file at docs/reviews/ux-design-review.local.json, and a human-readable report at docs/work/{work-item}/reviews/ux-design-review-{nn}.local.md (or docs/reviews/ux-design-review-{branch}.local.md when no work item resolved). It MUST NOT modify source, styles, tests, or configuration, and MUST NOT commit or publish.

When the review is done, point the reader at ux-design-fix. Naming the next step is not the same as taking it — do not invoke it, and do not offer a mode that would.

Steps

  1. Eligibility — decide whether to review, and how hard.
  2. Resolve — design source, environment, review state. Once.
  3. Capture — drive the browser once, produce the evidence bundle.
  4. Lenses — inline, or parallel sub-agents reading the bundle.
  5. Merge — dedupe across components, states, and viewports.
  6. Verify — rate each candidate independently.
  7. Gate — apply the risk matrix, assign action labels.
  8. Report — verdict with a coverage statement; persist state.

1. Eligibility

Skip entirely, saying why in one line:

  • The diff touches no UI — no components, templates, styles, or assets.
  • PR/MR is closed, merged, or a draft the user did not ask about.
  • Changes are generated or vendored only.

Reduce scope rather than skipping:

  • docs/reviews/ux-design-review.local.json has an entry for this branch and --full was not passed → incremental review. Re-capture only what the diff touched, plus anything whose design source moved. See references/environment-resolution.md.

2. Resolve

Three resolutions, each once, each shared with every lens. Never let a lens re-resolve.

  1. Change intent — what UI changed and why, from the PR/work item, a local spec, or git log plus the diff. Identify affected components, pages, and flows.
  2. Design source — references/design-source-resolution.md. Figma via MCP → repo mockups → tokens and style guide → principles doc → none. Record the source ref for drift detection, and any deviations the work item declared intentional.
  3. Environment — references/environment-resolution.md. Running app → dev server → Storybook → static files → static-only. Do not fight a broken environment for more than a few minutes; degrade and say so.

3. Capture

Drive the browser once. Follow references/capture-protocol.md to produce the shared evidence bundle: screenshots across state × viewport, axe results, console log, accessibility tree, and the scripted keyboard traversal record.

Three things this step is responsible for, all of which the review depends on:

  • Determinism. Fonts loaded, network idle, animation disabled, time and data frozen. A capture that varies between runs produces deviations that are not defects.
  • Paired capture. Everything captured twice; regions that differ are marked unstable and excluded from visual findings. That difference is flake, not a defect.
  • The manifest. What was captured, what was unreachable and why, what was masked. The coverage statement is derived from this, not guessed at.

At static-only there is no bundle. Say so, run only conformance-reviewer's system pass and the markup-level accessibility subset, and mark every live-only check unverified.

4. Lenses

Small changes — one component, few states — are reviewed inline using §4.2. Otherwise spawn the lenses whose triggers fire, in parallel.

4.1 Sub-agents

Three lenses and one verifier. Each lens owns a distinct judgement; they share one input, because the capture step made the evidence common.

Agent Judges Trigger Tier
accessibility-reviewer WCAG 2.2 AA conformance, cited Always standard
experience-reviewer Does the rendered experience hold up across states and viewports Capture bundle exists standard
conformance-reviewer Does the implementation match its declared design truth Design source resolved at levels 1–4, or repo has tokens or a component library standard
finding-verifier Is one candidate finding real Once per candidate, at step 6 fast

Three lenses rather than five. experience-reviewer merges what were separate interaction-state and responsive lenses: same evidence, same kind of judgement, and splitting them lost the intersection — the error state at 375px, where the most common real defect in this space lives and neither lens owned it. conformance-reviewer merges fidelity and design-system: a card with 12px padding where the design says 16px and a token exists is one defect, and merged it returns as one finding with a screenshot and a file:line.

accessibility-reviewer stays separate despite sharing the bundle: conformance against cited criteria with a compliance floor is a different kind of judgement from heuristic quality, and it carries the override that makes its findings blocking.

finding-verifier is not a lens. It is a pipeline stage whose value is isolation.

Model tiers are declared as metadata.model_tier on each agent rather than as model names, so runners without model selection inherit and still work:

Tier Use Claude mapping
fast Mechanical predicates, capture orchestration, per-finding verification Haiku
standard Judgement against the bundle Sonnet
deep Whole-picture synthesis — parent only Opus

No sub-agent runs at deep. Since the capture step removed browser driving from the lenses, each works from a bounded, already-gathered bundle — a standard-tier job.

4.2 Inline review

Cover, from the bundle:

  1. Primary flows at desktop, then narrow.
  2. Interaction states: hover, focus, active, disabled; destructive confirms; async shows progress.
  3. Robustness: invalid input, overflow, loading, empty, error.
  4. Accessibility: axe results, then the manual criteria in references/accessibility-checklist.md — the ones no scanner detects.
  5. Responsiveness at 1440 / 768 / 375, and 320-equivalent for reflow.
  6. Fidelity against the resolved design source.
  7. Design-system conformity: hard-coded values where tokens exist, bespoke elements where the library has one.
  8. Polish and content: hierarchy, alignment, copy clarity; console clean.

Judge against references/ux-heuristics.md where no design source exists — and say that is what you did.

5. Merge

Consolidate per references/merge-protocol.md. Dedupe on component plus state plus viewport plus root cause: the same defect at three viewports is one finding with three captures. Resolve category by precedence, take maximum severity, and raise confidence only where corroboration is genuinely independent.

That last rule matters more here than in code review. Every lens now reads the same bundle, so two lenses citing the same screenshot is one observation counted twice, not agreement.

6. Verify

Send each merged candidate to finding-verifier, one invocation per finding, in parallel. It receives the finding, its evidence, and the manifest — never the raising lens's reasoning, name, or prior.

UX has a check code review lacks: the verifier may re-render one state to settle a finding outright. Bounded to one targeted re-capture, not a second review pass.

The verifier's rating replaces the prior.

7. Gate

Apply the risk matrix in references/finding-classification.md.

Accessibility findings at Medium+ confidence are always blocking. High-severity findings the verifier could not confirm surface as [warning] unverified — never silently dropped.

8. Report and persist

Produce the verdict below, then persist review state per references/environment-resolution.md:

  1. Update (or create) this branch's entry in the shared docs/reviews/ux-design-review.local.json, including the design source ref, accepted deviations, and unreachable states.
  2. Write the human-readable verdict to docs/work/{work-item}/reviews/ux-design-review-{nn}.local.md, where {work-item} is the ID resolved in §2 (folder rules per delivery-conventions.md) and {nn} is the next sequential two-digit number among existing ux-design-review-*.local.md files in that folder (do not count other skills' reports). Numbered history applies only under docs/work/{work-item}/reviews/. When no work item resolved, write docs/reviews/ux-design-review-{branch}.local.md instead (/ in the branch name replaced with -) — latest-only: overwrite that file; do not invent numbering on the fallback path.

Do not report

  • Pre-existing UI issues on components the diff did not touch.
  • A visual difference that did not reproduce across paired captures — that is flake.
  • Deviations the work item or PR declared intentional, or recorded in accepted_deviations.
  • Platform rendering differences outside the author's control: scrollbars, font smoothing, native form-control chrome.
  • Aesthetic preference with no basis in the design source, the app's own consistency, or the heuristics reference. An app that consistently does something differently has a convention, not a defect.
  • Anything a linter, formatter, or CI visual-regression suite already catches.
  • Correctness, security, or performance findings — route to code-review, once.

Quality rules

  • Evidence on every finding: screenshot path plus state and viewport for visual findings, file:line for static ones, WCAG criterion and axe rule for accessibility.
  • Describe the problem and its user impact. Do not prescribe pixel values — the token is usually the fix.
  • Prefix every finding with its action label, then Category | Severity | Confidence, so ux-design-fix can route it.
  • Open with what works well: one or two genuine positives before the findings.
  • Never claim WCAG conformance from an automated scan alone.

Must not

  • Modify any file outside .ux-review/, docs/reviews/, and docs/work/*/reviews/.
  • Commit captures.
  • Mark PASS while live checks were skipped without a coverage statement naming exactly which lenses ran static and why.
  • Rewrite the implementation — that is ux-design-fix.

Output format

<example>

UX Design Review

Result: PASS | FAIL Scope reviewed: checkout flow — 4 components, incremental from a1b2c3d | full Design source: Figma node 123:456 via MCP (@v12) | tokens only | none — internal consistency Coverage: live, 3 viewports, Chromium only, light theme. Axe clean; focus order, focus visibility and reflow verified from the traversal record. Declined-payment state unreachable. Lenses run: accessibility, experience, conformance

What works well

Clear step indicator; the disabled submit state prevents double-charge.

Blocking Issues

  • [blocking] Accessibility | Severity: Major | Confidence: Confirmed Where: PaymentForm, focus state, all viewports (.ux-review/screenshots/payment-focus-375.png) Issue: Card number field has no visible focus indicator (WCAG 2.4.7). Impact: Keyboard-only users cannot tell where they are; blocks checkout.

Warnings

  • [warning] Design Fidelity | Severity: Moderate | Confidence: Probable Where: SummaryCard @ 1440 (.ux-review/screenshots/summary-default-1440.png, src/components/SummaryCard.tsx:24) Issue: 12px padding where the design and every sibling use space-400 (16px). Impact: Reads as a different component. Token exists — swap rather than patch.

Suggestions

  • [suggestion] Content | Severity: Minor | Confidence: Confirmed Where: empty cart state Issue: "No items found" reads as an error; sibling empty states use guidance copy.

Accessibility

Automated: 0 violations across 3 pages. Manual: 2.4.3 pass, 2.4.7 fail, 2.1.1 pass, 2.1.2 pass, 1.4.10 pass, 4.1.3 unverified (no status message in scope).

Since last review

(incremental only) Fixed: 2. Still open: 1. Newly introduced: 0. Newly diverged because the design moved: 1.

Coverage statement

Not covered: Safari and Firefox rendering; dark mode (app implements none); declined-payment state (needs gateway sandbox).

Summary

One paragraph. Then: to action these findings, run ux-design-fix. </example>

References

04 同仓库更多 Skills

carinyadigital
carinyadigital/skills

skill-name

Replace with description of the skill and when the agent should use it.

Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

validate

Use when the user wants final completion sign-off on any work item — epic, story, bug, or spike: every task in docs/work/{work-id}/tasks.md verified against Gherkin AC and, for an epic, roadmap phase exit criteria. Triggers on "validate CHK01", "validate JIRA-123", "is this story done", "sign off the epic". Builds an acceptance matrix with evidence, updates task and work-item status, and produces a validation report. Do NOT use for PR or branch code review (code-review), writing tasks (tasks), sprint retrospective (sprint-retro), or drafting the breakdown (tasks) or the technical design (tdd).

代码审查视觉设计
★ 2
carinyadigital
carinyadigital/skills

ux-design-fix

Use when the user wants to change how existing UI looks or behaves — fix spacing, colour, layout, states, responsiveness, or accessibility on a component, page, or flow. Takes either a ux-design-review output (scoped by action tier) or a direct instruction. Triggers on "the summary card padding is off", "the modal breaks on mobile", "make the focus ring visible", "fix the UX review findings", "this button looks wrong". Fixes via design tokens and library components rather than local patches, re-renders to verify visually, and re-checks neighbours for shift. Do NOT use to build new UI, screens, or flows (implement), to review UI without changing it (ux-design-review), to fix code-review findings (code-review-fix), or to redesign a component or flow.

开发工程师设计师视觉设计Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

tdd

Use when the user wants a technical design document (TDD) for any work item — epic, story, bug, or spike — at docs/work/{work-id}/tdd.md, in skeleton or full mode. Pass a work item ID (CHK01, or a Linear/Jira/GitHub key like JIRA-123). Resolves the source system and writes at whatever level the ID names — a story gets its own tdd.md beside its parent epic's, not nested inside it. Cite solution.md — do not re-narrate architecture. Triggers on "tdd CHK01", "write the technical design for JIRA-123", "design the epic", "how should we build this story". For reviewing an existing tdd.md, use docs-review instead. Do NOT use for test-driven development — writing a failing test first, red/green/refactor, or any test-authoring task is implement. Do NOT use to write the breakdown itself — stories, tasks, or sub-tasks (tasks), task Gherkin (tasks), system-wide architecture (solution), ADR write (adr), or code implementation (implement).

视觉设计Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

tasks

Use to decompose anything into delivery work — a product strategy and roadmap into epics, an epic into stories and tasks with Gherkin acceptance criteria, a story into sub-tasks, or an external spec, RFC, or PRD into both in one pass. Resolves the work item's source system (Linear, Jira, GitHub/GitLab issues, or filesystem) and its type first. Writes docs/product/backlog.md and docs/work/{work-id}/tasks.md, or the tracker directly when one is resolved. Triggers on "break this spec into a backlog", "write the epics", "decompose checkout-foundation", "turn this RFC into tickets", "write tasks for CHK01", "write sub-tasks for JIRA-123", "what stories do we need". EARS with --ears. Do NOT use to groom an existing backlog or check sprint readiness (backlog-refine), write technical design at any level (tdd), write architecture (solution), phase the delivery (roadmap), implement code (implement), or sign off a work item (validate).

产品经理Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

sprint-retro

Use when the user wants to run a retrospective after a sprint ends — compare what was committed in plan.md against what actually shipped, surface themes with evidence, and record actions with owners routed to the skill that will action them, at docs/work/sprint-{id}/retrospective.md. Triggers on "run the retro", "sprint retrospective", "what went wrong last sprint", "how did sprint 3 go". Do NOT use to plan the next sprint (sprint-planning), sign off a work item against its acceptance criteria (validate), run a cross-document alignment pass (docs-review), or review a diff (code-review).

★ 2