Frontend Flow
For UI-heavy tasks with Figma designs, use the specialized frontend workflow. This extends the standard flow with iterative Figma verification to ensure the implementation matches the design within tolerance.
For a full end-to-end breakdown of the post-implementation verify-fix loop, see UI Verification Flow.
Before you start, make sure the target app is already running, be ready to confirm the exact full dev server URL, and ensure playwright-cli is available to the UI capture worker (npx playwright-cli or a global install).
The frontend route accepts a task description, Jira ID, standalone *.research.md, or *.plan.md. Missing research or plan companions trigger preparation and never authorize no-plan implementation. Before the first file-changing delegation, the Engineering Manager requires Human approval of the exact current plan revision. Automated Reviewer approval is readiness evidence only; it is not permission to implement. A material revision after Human approval requires Reviewer re-review and renewed Human approval.
On every delegated or direct UI execution-owner entry path, the owner validates the referenced plan from disk before changing implementation or capture/verification-related artifacts. If validation fails, it fails closed, names the exact failed field, condition, or file, and uses vscode/askQuestions to offer recovery choices: point to the correct plan path, obtain Human approval for an existing plan, start plan preparation, or, for a delegated subagent, hand back to tsh-engineering-manager as one offered choice. The user's response is not Human approval; only Human Approval of the exact current plan revision authorizes implementation.
Command Sequenceโ
1๏ธโฃ /tsh-implement <JIRA_ID or task description>
โณ ๐ Engineering Manager delegates to Context Engineer for research
โณ ๐ Review research doc โ verify Figma links, requirements (quality checkpoint, not an authorization gate)
โณ ๐งฑ Engineering Manager delegates to Architect for planning
โณ ๐งช Engineering Manager delegates to Architect Reviewer via /tsh-review-plan for plan validation
โณ ๐ Review plan and review summary โ check component breakdown, design references
โณ ๐ Confirm the exact full dev server URL once and pin it for the session
โณ โ
Engineering Manager presents exactly `Approve current plan`, `Request changes`, `Stop`
โณ ๐ป Engineering Manager delegates UI tasks to UI Engineer only after `Approve current plan`
โณ ๐ Review UI Verification Summary separately from code review
โณ โ
Manually verify critical UI elements in browser
โณ ๐ Engineering Manager calls /tsh-review-ui in a loop until the UI gate is PASS or reaches the structured post-5-iteration user gate
โณ ๐ซ Do not start /tsh-review until the UI gate is closed
2๏ธโฃ /tsh-review <JIRA_ID or task description>
โณ ๐ Review findings โ code quality, a11y, performance
โณ โ
Address all blockers before merging
How the Verification Loop Worksโ
- The Engineering Manager delegates a UI component implementation to the UI Engineer via the internal
/tsh-implement-uiprompt. - After the UI Engineer completes, the Engineering Manager calls
/tsh-review-uito perform single-pass verification (read-only) on fresh live-capture artifacts. /tsh-review-uiuses Figma MCP (EXPECTED) + CLI capture artifacts produced throughtsh-ui-capture-worker(ACTUAL) โ returns PASS, FAIL, or VERIFICATION NOT RUN with a diff table or blocker report.- If FAIL โ the Engineering Manager delegates the fix to the UI Engineer, then re-captures and re-verifies on the new artifacts before considering the item closed.
- Repeats until PASS or max 5 iterations.
- If mismatches remain after 5 iterations, the flow pauses behind a structured user gate with exactly 3 options: continue with an explicit extra iteration count, stop and accept the current state as
ESCALATED, or provide a custom instruction. - If extra iterations are exhausted and gaps remain, the same structured gate runs again before anything can move to code review.
- If capture is blocked by missing URL, auth, unreachable page, wrong page state, or incomplete artifacts, the result is
VERIFICATION NOT RUN; resolve the blocker and rerun capture without consuming the 5-iteration budget.
What /tsh-review-ui Doesโ
- Single-pass, read-only verification โ does not modify code.
- Uses Figma MCP to extract design specifications (spacing, typography, colors, dimensions).
- Uses
tsh-ui-capture-worker+ Playwright CLI artifacts to capture the current implementation state. - Does not rely on direct Playwright MCP capture for the ACTUAL side of the comparison.
- Returns a structured report: PASS/FAIL/VERIFICATION NOT RUN + difference table or blocker guidance.
- Covers: structure (containers, nesting), dimensions (width, height, spacing), visual (typography, colors, radii), and components (variants, tokens, states).
What /tsh-implement-ui Doesโ
/tsh-implement-ui is an internal prompt โ not invoked directly by users. It is triggered automatically by /tsh-implement when the plan contains UI tasks with Figma references.
- Orchestrated by the Engineering Manager agent, which delegates to the UI Engineer, UI Capture Worker, and UI Reviewer.
- Implements UI components following the plan.
- Runs iterative verification loop delegating to the
tsh-ui-reviewersubagent after each component. - Fixes mismatches by delegating fixes back to the UI Engineer based on subagent reports, then re-captures and re-verifies on fresh artifacts using the same pinned user-confirmed full URL.
- After 5 failed iterations, pauses behind a structured user gate with a detailed summary and exactly 3 options: continue with explicit extra iterations, stop and accept as
ESCALATED, or provide a custom instruction. - Produces a UI Verification Summary before handoff to code review, but keeps the UI gate separate from code review.
Required Skillsโ
The frontend flow loads these specialized skills:
- tsh-implementing-frontend โ Component patterns, design system usage, composition, and performance guidelines.
- tsh-ui-verifying โ Verification criteria, tolerances, severity definitions, and what constitutes PASS/FAIL.
- tsh-ensuring-accessibility โ WCAG 2.1 AA compliance, semantic HTML, ARIA, keyboard navigation.
- tsh-technical-context-discovering โ Project conventions and coding standards.
The automated Figma verification loop helps catch visual mismatches, but it does not replace manual review. Always visually inspect the implemented UI in the browser, test interactions, and verify responsive behavior yourself.