No slash command · from TSH Product Engineering
Judges implemented UI against Figma designs by comparing structure, layout, dimensions, visuals, and components under strict tolerances. Outputs PASS, FAIL, or VERIFICATION NOT RUN.
Ships in TSH Product Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The judging standard for comparing an implemented UI against its Figma design. The Figma design is the source of truth for every comparison — when in doubt, the design wins.
Local repository rules outrank this skill. If the project defines its own visual tolerances or design-QA process, apply those numbers inside this process.
Scope of EXPECTED, stated deliberately: today the Figma MCP is the only accepted source of EXPECTED, and the rules below enforce that. Everything else this standard defines — the five categories, the tolerances, the PASS gate, the report format — is independent of where EXPECTED came from. The reference source is a parameter of the standard, not its identity, which is why this skill is named for the job (verifying UI) rather than for today's single source. Adding a source means adding a rung here and stating the rigor it supports, never a second copy of this standard.
Default to raising, not guessing. Every named blocker here is an example of one
rule: when you cannot run a real, complete verification on the full artifact base —
something missing, broken, ambiguous, or unexpected, listed here or not — stop.
As a subagent, return a VERIFICATION NOT RUN blocker report to the caller; in the
main conversation, ask the user. Never fabricate values or proceed on partial evidence.
| Severity | Rule |
|---|---|
| MUST | Take EXPECTED only from the Figma MCP: resolve the node from the Figma URL and read the design specs from it; the reference image is the shared figma-expected.png that the capture worker exported. If the Figma MCP is unavailable, the node cannot be resolved, or figma-expected.png is missing, the result is VERIFICATION NOT RUN naming the missing input — never a guess, and never an export of your own: the capture worker is the single owner of that file. |
| NEVER | Open figma.com in a browser to fetch a design, or save a browser, login, or error screenshot as figma-expected.png. The browser is for the running app (ACTUAL) only. |
| MUST | Require all three ACTUAL artifacts for the current iteration — actual.png, computed-styles.json, a11y-snapshot.yml — before issuing any PASS or FAIL. Missing or partial artifacts → VERIFICATION NOT RUN with blocker guidance. |
| NEVER | Substitute code reading, type checks, builds, or test results for verification. They clarify context; the verdict comes only from Figma EXPECTED versus captured ACTUAL. |
| MUST | Complete ALL five categories in one pass — Structure, Layout, Dimensions, Visual, Components — and report every difference found, not just the first. A one-issue report when more exist wastes an iteration. |
| MUST | Measure dimensions from computed-styles.json. The accessibility tree carries no CSS: a full-width and a narrow centered container look identical in it. Unmeasured layout = invalid verification, confidence LOW. |
| NEVER | Report PASS while any structure, layout, or >2px dimension difference remains. Structure and layout mismatches are CRITICAL and cannot be waived as "close enough". |
| NEVER | Invent waiver states ("adjudicated", "accepted deviation", "out of scope for this task"). The only verdicts are PASS, FAIL, and VERIFICATION NOT RUN. A difference may be excluded from the verdict only when an explicit user ruling covering it was forwarded in the delegation — cite that ruling verbatim in the report. Everything else beyond tolerance keeps the item FAIL until the user closes it through the escalation gate. |
| MUST | Judge dimensions from values as recorded in computed-styles.json. If the captured element does not represent the visible rendered box (an inner input instead of its bordered wrapper), that is a capture defect: return VERIFICATION NOT RUN requesting re-capture of the right element — never reconstruct values arithmetically. |
| NEVER | Return FAIL when you recommend no code changes. FAIL means the engineer has something concrete to fix; a pass where nothing is actionable is PASS, and evidence you cannot trust is VERIFICATION NOT RUN. Check this before writing the verdict: an empty Recommended Fixes and a FAIL verdict together are a contradiction. |
| MUST | Read computed-styles.json as evidence about coverage as well as values: an entry that is null, carries an error, or is missing for an element under verification means that element was never measured. No PASS may rest on it — return VERIFICATION NOT RUN naming the unmeasured elements and asking for re-capture. |
| MUST | Treat a present-but-wrong measurement as untrustworthy evidence, not as a difference. When a measured entry describes a different element than its label claims — a page banner recorded as the card under verification, an inner input recorded as its bordered wrapper — the artifact is defective: return VERIFICATION NOT RUN naming the entry and the element it actually measured. Never convert a capture defect into a FAIL against the implementation. |
| NEVER | Treat VERIFICATION NOT RUN as a pass, a fail, or a consumed iteration. It is a pre-verification blocker state: resolve the blocker, recapture, rerun. |
| MUST | Re-verify after every fix on fresh artifacts from a new capture pass. Never reuse pre-fix evidence or assume a fix worked. |
| NEVER | Repeat a failing tool call more than once. After a second failure, stop and return a VERIFICATION NOT RUN blocker report describing the failure. |
figma-expected.png at
specifications/<task-id>/ui-verification/, exported by the capture worker.
Present and the Figma URL/node unchanged → use it. Missing or node changed →
VERIFICATION NOT RUN requesting the capture worker export it; never export it
yourself. Extract from Figma the specs to compare: layer hierarchy, layout direction,
alignment, spacing, frame width, typography, colors, radii, shadows, variants,
states.ui-capture-worker per capturing-ui-evidence.
Never artifacts from a prior iteration../references/verification-criteria.md
before comparing. Multimodal comparison of figma-expected.png vs actual.png,
computed-styles.json for every measured claim, a11y-snapshot.yml for structure
and grouping. Record, per category, concrete differences or an evidence-backed
"no differences"../references/report-format.md
exactly — every section present even for VERIFICATION NOT RUN, with exact
EXPECTED and ACTUAL values for every difference.specifications/<task-id>/ui-verification/
figma-expected.png # shared, exported once per item via Figma MCP,
# reused across iterations while the node is unchanged
iteration-<N>/
actual.png # full-page screenshot of the running app
computed-styles.json # measured widths, heights, paddings, margins, gaps
a11y-snapshot.yml # accessibility snapshot: hierarchy, order, grouping
report.md # this verification's report, saved by the caller
figma-expected.png is never duplicated into iteration-<N>/ and never re-exported
per iteration. When no task id exists, use specifications/<page-slug>/ui-verification/.
When the pinned Figma node covers more than the component under verification, a
cropped reference is allowed — but as a second shared file at the verification root,
named for the region (figma-expected-<region>.png), exported once and reused across
iterations. Never write a design image into iteration-<N>/: an iteration directory
holds this pass's ACTUAL evidence and its report, nothing else.
Evidence for another locale, language or text direction goes in a labeled sibling —
ui-verification/<label>/ holding the same three artifacts, for example
ui-verification/rtl-arabic/ — and is judged as its own item. Never mix a second
variant into iteration-<N>/, whose artifacts belong to one pass of one variant.
PASS is allowed only when the evidence proves it — never on "looks close", a partial review, or to end a loop:
figma-expected.png exists, and this iteration's actual.png,
computed-styles.json, and a11y-snapshot.yml all exist.computed-styles.json or a cited structural fact from a11y-snapshot.yml.actual.png was compared side by side against figma-expected.png.Any structural difference, any layout difference, any dimension difference >2px, or
any unmeasured "looks roughly right" → FAIL (or VERIFICATION NOT RUN when evidence
is missing). The only differences excluded from a verdict are those covered by an
explicit, forwarded user ruling, cited verbatim — never a waiver the reviewer or the
caller invented.
When the only remaining differences are content/data that may plausibly vary by
environment, seed data, locale, or user state, keep the result FAIL, list them under
Clarification Needed, and ask whether they are intentional before converting them
to fixes — details in the criteria reference.
| Reference | Load when | Covers |
|---|---|---|
| Verification criteria | About to compare EXPECTED vs ACTUAL, every pass | Category checklists, tolerances, severities, the pre-PASS checklist, confidence levels, the content/data clarification gate |
| Report format | Writing any verdict or blocker report | The exact report skeleton, artifact-status table, blocker-resolution section, UNKNOWN rules |
capturing-ui-evidence — how the ACTUAL
artifacts this skill judges are collected.reviewing-ui — runs one verification pass end to end
from the main conversation.What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: judging whether a rendered page matches Figma, deciding PASS or FAIL for a UI verification item, interpreting capture artifacts (actual.png, computed-styles.json, a11y-snapshot.yml), or writing a UI verification report. Running a pass end to end is reviewing-ui; collecting the artifacts is capturing-ui-evidence.
Three short reads, in order
ui-verification, figma-comparison, design-qa, visual-testing
npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-product-engineering8 skills in this plugin
/capturing-ui-evidenceThe mechanical capture contract for UI verification: drives the playwright-cli against the pinned dev server URL to collect actual.png, computed-styles.json and a11y-snapshot.yml into the iteration artifact directory. Works with no design reference at all; when — and only when — the caller supplies a Figma URL, it also exports the shared reference image. Evidence collection only — judging the result is the ui-reviewer agent's job./creating-implementation-plansWrites TSH's implementation plan as a committed file at specifications/<task-id>/<task-name>.plan.md: phased tasks that each name their files and a verifiable Definition of Done, technical context persisted for implementers, explicit parallel groups. Use when a plan, spec, or task breakdown is asked for — a plan kept outside the repository cannot be committed, reviewed in a PR, or read by an implementer subagent./debugging-codeFinds and fixes the root cause of a bug: pins the symptom, reproduces it, secures a failing test — existing, corrected or new — narrows to the cause with evidence rather than plausibility, measures how far the fix reaches before applying it minimally, and keeps the test as a regression guard. Use when code behaves wrongly and the cause is not yet known — load it before reading, searching, or editing the code, because locating the cause is this skill's own first step, not something to do before it./discovering-technical-contextEstablishes which conventions a change must follow before it is written, in priority order: the plan's persisted technical context, then project instructions (CLAUDE.md, .claude/rules, decision records), then existing codebase patterns, then external documentation. Use to answer 'how does this project do X' or to fill a plan's Technical Context section./orchestrating-feature-implementationImplements a feature, ticket, or plan end to end from the main conversation: confirms a plan file exists, delegates each task to implementer subagents — in parallel where the plan allows — gates on their reports, then closes with the plan's final verification phase: code review and functional verification in parallel. Use for any feature request or multi-file change, before the first file is edited./reviewing-codeTSH's pre-merge review of a delivered change set — a pasted diff, a task, or a PR: reads the plan and requirements first, compares the implementation against what was agreed, judges test coverage per layer, runs the project's tests, linters and build when they are available, then checks high-risk anti-patterns, security, and scalability. Use when a change must be judged for merge readiness, whether it arrives as a pasted diff or a branch, against its plan or acceptance criteria when those exist.Other plugins' skills for the same job