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.
Command Sequenceโ
1๏ธโฃ /tsh-research <JIRA_ID or task description>
โณ ๐ Review research doc โ verify Figma links, requirements
โณ โ
Iterate until context is complete and accurate
2๏ธโฃ /tsh-plan <JIRA_ID or task description>
โณ ๐ Review plan โ check component breakdown, design references
โณ โ
Confirm phases align with Figma structure
3๏ธโฃ /tsh-implement-ui <JIRA_ID or task description>
โณ ๐ Review code changes and UI Verification Summary
โณ โ
Manually verify critical UI elements in browser
โณ ๐ Agent calls /tsh-review-ui in a loop until PASS or escalation
4๏ธโฃ /tsh-review <JIRA_ID or task description>
โณ ๐ Review findings โ code quality, a11y, performance
โณ โ
Address all blockers before merging
How the Verification Loop Worksโ
/tsh-implement-uiimplements a UI component.- Calls
/tsh-review-uito perform single-pass verification (read-only). /tsh-review-uiuses Figma MCP (EXPECTED) + Playwright MCP (ACTUAL) โ returns PASS or FAIL with diff table.- If FAIL โ
/tsh-implement-uifixes the code and calls/tsh-review-uiagain. - Repeats until PASS or max 5 iterations (then escalates to the developer).
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 Playwright MCP to capture the current implementation state.
- Returns a structured report: PASS/FAIL + difference table with exact values.
- Covers: structure (containers, nesting), dimensions (width, height, spacing), visual (typography, colors, radii), and components (variants, tokens, states).
What /tsh-implement-ui Doesโ
- Implements UI components following the plan.
- Runs iterative verification loop delegating to the
tsh-ui-reviewersubagent after each component. - Fixes mismatches based on subagent reports.
- Escalates after 5 failed iterations with a detailed report.
- Produces a UI Verification Summary before handing off to 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.
Important
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.