This skill should be used when the user asks to "implement Figma screens", "implement this design", "implement the whole flow", "batch implement from Figma", "implement all screens", or provides a Figma prototype URL and wants to build the UI. Traces the prototype graph, plans all screens, then implements one screen at a time with subagent-driven review.
From ui-devnpx claudepluginhub masseater/claude-code-plugin --plugin ui-devThis skill uses the workspace's default tool permissions.
references/screen-map-template.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Trace prototype graph to plan all screens, then implement one screen at a time with subagent-driven implementation and review. The parent acts as an orchestrator, delegating implementation and review to subagents.
!.agents/ui-dev/$ARGUMENTS/config.json — existing config (resume if present)!git worktree list — worktree statusIf config.json already exists, skip to Phase 2 and resume. Resume position is determined by the state of the reports/ directory:
{screen}-implement.md → Start from Step 1 (implementation){screen}-implement.md exists but no {screen}-visual-review.md or {screen}-code-review.md → Start from Step 2 (review){screen}-fix-{N}.md is the latest (no corresponding re-review) → Start from Step 2 (treat fix-N as the implement report)$ARGUMENTS (e.g., registration https://figma.com/design/...?node-id=xxx).agents/ui-dev/{flowName}/.agents/ui-dev/{flowName}/screenshots/.agents/ui-dev/{flowName}/reports/${CLAUDE_PLUGIN_ROOT}/skills/figma-data/scripts/trace-prototype-chain.ts \
--file-key <fileKey> --node-id <nodeId> \
--output .agents/ui-dev/{flowName}/prototype-chain.json
BFS-traverses the prototype graph and automatically saves PNG screenshots for all discovered frames to <output-dir>/screenshots/. Screenshot paths are recorded in the graph JSON under frames[id].screenshot.
Check the frame count and JSON path. If only 1 frame, confirm with the user whether the start node is correct.
Use query-prototype-chain.ts --json-path <path> --node-id map to view the full page map with all frame connections — useful as a reference when creating the screen map.
Create a screen map based on the prototype chain:
.agents/ui-dev/{flowName}/screen-map.md from the screen map template⚠️ UnconfirmedScreen map template: @${CLAUDE_PLUGIN_ROOT}/skills/figma-implement/references/screen-map-template.md
{
"flow": {
"name": "{flowName}",
"currentPhase": "implement",
"figma": {
"fileKey": "{fileKey}",
"prototypeChainPath": ".agents/ui-dev/{flowName}/prototype-chain.json"
},
"screens": ["{screen1}", "{screen2}", "..."]
},
"contextFiles": [],
"reviewPrompts": {
"common": [],
"visual": [],
"code": []
}
}
Suggest customizing reviewPrompts and contextFiles (files to reference during review, e.g., design system documentation).
for (screen in screens) {
1. Spawn implementation subagent (via Task tool) -> write to report
2. Spawn review subagents in parallel (via Task tool)
3. Auto-classify findings and spawn fix subagent (via Task tool) if needed -> return to 2
4. When no fixable findings remain, move to next screen
}
Spawn via the Task tool. See @${CLAUDE_PLUGIN_ROOT}/agents/implementer.md for the agent definition, input/output format, and report structure.
When the subagent returns, read the report file to get information. Do not use the subagent's return text. If the report does not exist, restart with the same prompt once. If it fails twice in a row, report to the user.
Read the implementation file list from the report and spawn two review agents in parallel via the Task tool.
See @${CLAUDE_PLUGIN_ROOT}/agents/visual-reviewer.md and @${CLAUDE_PLUGIN_ROOT}/agents/code-reviewer.md for review agent definitions.
If one review agent returns without writing a report, restart only that agent once. If both fail, report to the user.
Read both review reports and auto-classify findings. Do not ask the user for judgment. Address all findings autonomously:
| Category | Description | Action |
|---|---|---|
| A. Fixable via code | Bugs, style mismatches, missing implementation | Fix -> re-run Step 2 |
| B. Spec ambiguity/gap | Undefined retry limits, missing timeout handling, etc. | Make a reasonable assumption, fix, and record the assumption in the report |
| C. Design change needed | Undefined error states, layout breaks with real data, etc. | // TODO(design): + mark screen map with ⚠️ Unconfirmed |
| D. Architecture change needed | State management rethink, API call timing change, etc. | Record in "Unresolved TODOs" in the report |
Spawn a new subagent in fix mode. See @${CLAUDE_PLUGIN_ROOT}/agents/implementer.md for fix mode details.
If the fix subagent returns without writing a report, restart once (same as implementation subagent).
After fix completion, return to Step 2. Re-reviews overwrite the same filenames ({screenName}-visual-review.md, {screenName}-code-review.md).
If the fix loop exceeds 3 iterations for the same screen, record remaining findings as TODOs and move to the next screen.
Move to the next incomplete screen and return to Step 1.
When the implementation loop completes for all screens:
currentPhase to "done"This is the only point where the user receives a full report. Make it thorough.
.agents/ui-dev/{flowName}/
├── config.json
├── screen-map.md
├── prototype-chain.json
├── screenshots/
│ ├── {screen1}.png
│ ├── {screen2}.png
│ └── ...
└── reports/
├── {screen1}-implement.md
├── {screen1}-visual-review.md
├── {screen1}-code-review.md
├── {screen1}-fix-1.md (if fixes were made)
├── {screen2}-implement.md
└── ...
| Situation | Resolution |
|---|---|
| Prototype chain trace returns only 1 frame | Confirm with user that the start node is correct. Verify a frame node (not page node) is specified |
| Prototype chain trace fails | Check FIGMA_ACCESS_TOKEN setup. Try both node-id formats (colon/dash) |
| Subagent returns without writing a report | Restart with the same prompt once. If it fails twice, report to the user |
| get_design_context returns empty | Verify the node-id is correct. Check that the node is Ready for Dev in Figma |
| Fix loop is dragging on | Present remaining issues summary to user and ask whether to skip or proceed |