From dx-core
Run the full Figma design-to-code workflow — extract, prototype, verify — all in one command. Use when a story has a Figma URL and you want to turn a design into a verified prototype. Trigger on "figma all", "full figma", "extract and prototype".
npx claudepluginhub easingthemes/dx-aem-flow --plugin dx-coreThis skill is limited to using the following tools:
You are a coordinator. You do NOT implement anything yourself. You delegate each workflow step via the Skill tool, then report progress.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for Figma node URLs, selections, or 'implement design' requests.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for node-specific implementations from Figma URLs or desktop selections.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
You are a coordinator. You do NOT implement anything yourself. You delegate each workflow step via the Skill tool, then report progress.
/dx-figma <figma-url> [component-name]"bash .ai/lib/mcp-health-check.sh figma. If Figma Desktop is not responding on port 3845, STOP: "Figma Desktop not detected. Open Figma and enable Dev Mode MCP."bash .ai/lib/mcp-health-check.sh aem. If AEM is not responding, WARN: "AEM author not responding — verification step may be skipped."Parse $ARGUMENTS into two optional parts (any order):
figma.com/ — forward to extract stepBuild a combined argument string from whatever was provided (e.g., 2416553 https://figma.com/..., or just 2416553, or just the URL, or empty).
Before creating tasks, use TaskList to check for existing tasks from a previous run (e.g., user interrupted and restarted). If stale tasks exist, delete them all first with TaskUpdate (status: cancelled) so the list is clean. Then create a task for each item using TaskCreate. Mark each in_progress when starting, completed when done.
Step 1: extract → figma-extract.md + prototype/figma-reference.png
Step 2: prototype → figma-conventions.md + prototype/index.html + prototype/styles.css
Step 3: verify → figma-gaps.md + prototype/prototype-screenshot.png
Idempotent by default: Each skill checks if its output file already exists and is still valid before regenerating. Steps report one of: created, updated, or skipped.
For each step, use the Skill tool to invoke the skill. Wait for each to return before starting the next.
Step 1 — Extract:
Invoke /dx-figma-extract <combined-arguments>
Print: Step 1/3 done — followed by the summary.
Step 2 — Prototype:
Invoke /dx-figma-prototype <ADO ID if provided>
Print: Step 2/3 done — followed by the summary.
Step 3 — Verify:
Invoke /dx-figma-verify <ADO ID if provided>
Print: Step 3/3 done — followed by the summary.
After all steps complete, find the spec directory and present:
## Figma Design-to-Code Complete
**Component:** <name from figma-extract.md>
**Directory:** `.ai/specs/<id>-<slug>/prototype/`
| Step | Status | Output |
|------|--------|--------|
| Extract | <created/updated/skipped> | figma-extract.md |
| Prototype | <created/updated/skipped> | prototype/index.html + styles.css |
| Verify | <PASS/PASS WITH MINOR GAPS/NEEDS ATTENTION> | figma-gaps.md |
### To preview: open `prototype/index.html` in a browser
### Next Steps
1. Review the prototype visually
2. `/dx-plan` — generate implementation plan using the prototype as reference
3. `/dx-step-all` — execute the plan
Run /dx-figma-extract manually to debug.Run /dx-figma-prototype manually to debug.Verification had issues — review figma-gaps.md. The prototype is still usable for planning.For any failure, retry the failed step once before stopping.
| After Step | Gate | Fail Action |
|---|---|---|
| 1 (extract) | figma-extract.md exists in spec directory | STOP — "Extract failed. Check Figma MCP connection." |
| 2 (prototype) | prototype/index.html exists | STOP — "Prototype generation failed." |
| 3 (verify) | figma-gaps.md exists | WARN — continue, report that verification didn't complete |
/dx-figma-all produces identical output to running each skill separatelyThis skill uses subagent orchestration (Agent tool dispatch) which is available in Claude Code only.
Copilot CLI / VS Code Chat: Run the individual skills manually in sequence:
/dx-figma-extract <figma-url> [component-name] — extract design from Figma/dx-figma-prototype [id] — generate HTML/CSS prototype/dx-figma-verify [id] — verify prototype against design