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-implement <JIRA_ID or task description>
โณ ๐ Engineering Manager delegates to Context Engineer for research
โณ ๐ Review research doc โ verify Figma links, requirements
โณ โ
Confirm to proceed to planning
โณ ๐งฑ Engineering Manager delegates to Architect for planning
โณ ๐ Review plan โ check component breakdown, design references
โณ โ
Confirm phases align with Figma structure
โณ ๐ป Engineering Manager delegates UI tasks to Software Engineer
โณ ๐ Review code changes and UI Verification Summary
โณ โ
Manually verify critical UI elements in browser
โณ ๐ Engineering Manager calls /tsh-review-ui in a loop until PASS or escalation
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 Software Engineer via the internal
/tsh-implement-uiprompt. - After the Software Engineer completes, the Engineering Manager 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 โ the Engineering Manager delegates the fix to the Software Engineer 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โ
Internal Prompt
/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 Software Engineer 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 Software Engineer 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.