/tsh-product-engineering:reviewing-uifrom TSH Product Engineering
Runs one UI verification pass against Figma: delegates Playwright-CLI capture to ui-capture-worker, then design comparison to ui-reviewer, returning PASS, FAIL, or VERIFICATION NOT RUN with a difference table. Read-only — never fixes code.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One verification pass comparing the current implementation against its Figma design,
run from the main conversation. This pass is delegate-only and read-only: capture
belongs to the ui-capture-worker subagent, judgment to the ui-reviewer subagent,
and no code changes happen here.
Inputs from $ARGUMENTS: the Figma URL (or pinned node link), the exact full dev
server URL, the component or section name, and optionally a task id or artifact
directory. Ask the user for whatever is missing — do not infer the dev server URL
from config files, running processes, or port scans.
Local repository rules outrank this skill. During feature delivery, the
verify-fix loop in
orchestrating-feature-implementation
owns iteration budgets and escalation; this skill is the single pass it repeats.
| Severity | Rule |
|---|---|
| MUST | Treat the user-confirmed full dev server URL as a pinned session input: confirm it once, then forward it unchanged to every capture and review delegation. Never rediscover, normalize, or port-swap it. |
| MUST | Delegate capture to ui-capture-worker and judgment to ui-reviewer. Never perform either side in the main conversation, and never substitute code review, type checks, builds, or ad-hoc browser inspection for the delegated pass. |
| MUST | Enforce the hard ordering gate: ui-reviewer is invoked only after a completed ui-capture-worker pass for the current iteration AND actual.png, computed-styles.json, and a11y-snapshot.yml are confirmed present in the iteration directory. A reviewer invoked without them returns VERIFICATION NOT RUN — that is a process error, not a verdict. |
| NEVER | Claim capture is unavailable without an actual failed delegation, and never raise a Figma blocker from this conversation's own tool access — the ui-reviewer runtime determines whether the Figma MCP is available to it. |
| MUST | Require the reviewer's report to contain Verification Result, Component, Artifact Directory, per-artifact status, and blocker guidance. An empty or field-missing response is invalid: rerun once with the same pinned URL, the same artifact directory, and a stricter handoff; still invalid → treat as VERIFICATION NOT RUN. |
| MUST | Save the reviewer's returned report verbatim as iteration-<N>/report.md (the reviewer is read-only and cannot write it). |
| NEVER | Treat VERIFICATION NOT RUN as PASS or FAIL. It is a blocker state: resolve the blocker with the user, rerun capture, then rerun review on fresh artifacts. |
| NEVER | Bypass an authentication or access gate, ask the user to paste credentials into chat, or let a delegate do either. The default resolution is the repo-root .env contract the capture worker returns. |
playwright-cli --version, falling back to npx --no-install playwright cli --version (never npx playwright-cli, a deprecated npm package); when neither responds, ask the user whether to install it now
(npm install -g @playwright/cli@latest) or wait while they install it. Then:
Figma URL, exact full dev server URL (user-confirmed — ask
once and pin it for the session), component name, task id when known. Derive the
shared verification root specifications/<task-id>/ui-verification/ (or
specifications/<page-slug>/… without a task id) and the next
iteration-<N>/ directory.ui-capture-worker delegation: the
pinned full URL, the Figma URL, the shared root and figma-expected.png path,
the iteration directory, and any prepared auth inputs (.env contract or
storage-state path). Require its structured capture summary back.figma-expected.png exists. Capture blocked → step 5.ui-reviewer delegation: the Figma URL, the same
pinned URL unchanged, the component name, and the exact artifact directory.
Demand the full report contract. Save the report as report.md in the iteration
directory and relay the verdict, the complete difference table, and recommended
fixes to the caller or user.VERIFICATION NOT RUN): resolve with the user — missing or
wrong URL, unexpected page content, missing Figma reference, or a login redirect
(relay the capture worker's derived TSH_UI_LOGIN_* var names and its exact
.env message; after the user confirms saving .env, rerun capture so it
reloads the file). Blockers consume no iteration budget. Ask the user to enable
the Figma MCP or supply an exported reference image only after a delegated
ui-reviewer pass itself reports the Figma side blocked.| Reference | Load when | Covers |
|---|---|---|
verifying-ui, read as a file — it is not model-invocable; ui-reviewer preloads it | Interpreting a verdict, tolerances, or the artifact contract | The judging standard the reviewer applies |
capturing-ui-evidence | A capture blocker needs diagnosing, or auth inputs must be prepared | The capture contract, playwright-cli commands, the .env auth contract |
| UI verification gate | This pass runs inside feature delivery and returned FAIL | The verify-fix loop, 5-iteration budget, escalation gate |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: 'verify this UI against Figma', 'does this page match the design', 'review the UI', re-verifying a component after a fix, or the per-iteration verification step of the UI verification gate. Judging code quality is reviewing-code; the full verify-fix loop lives in orchestrating-feature-implementation's UI verification gate.
8 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.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-product-engineeringOther plugins' skills for the same job