/claude-dev-kit:figma2proto [--mobile|--desktop] <Figma URL(s)>from claude-dev-kit
Fetches Figma designs via API and generates prototype HTML, design system docs, design philosophy, interactions, and copy guide for web, mobile, or desktop platforms.
Ships in claude-dev-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Kit root: ${CLAUDE_PLUGIN_ROOT}
scripts/ dir): prefix every kit script command with it, e.g.
bash <kit-root>/scripts/checkpoint.sh …. Absolute paths also work from worktrees.${…} placeholder above → standalone layout: run commands as written.Run these checks silently at the start. Use results to adapt behavior:
[ -f issues.md ] — if true, this project uses the sprint system. Respect issue numbering and STATUS.md.[ -f docs/sprint_state.md ] — if true and Status shows running, a sprint is active. Be aware of parallel work in worktrees.[ -f docs/prd_digest.md ] — if true, read it for quick project context before starting.gh auth status before any GitHub operation./uiux creates designs from scratch (PRD → design philosophy → design system → prototype).
/figma2proto starts from an existing Figma design and produces the same complete set of outputs — prototype, design system, design philosophy, interactions, and copy guide — so the downstream pipeline (/implement, /review, /ship) works identically regardless of which skill was used.
The Figma design is the source of truth. This skill describes and supplements it, never contradicts it.
| Platform | Prototype | Design System | Other Docs |
|---|---|---|---|
| web (default) | prototype/ | docs/design_system.md | docs/design_philosophy.md, docs/wireframes.md, docs/interactions.md, docs/copy_guide.md |
--mobile | prototype-mobile/ | docs/design_system_mobile.md | docs/design_philosophy.md, docs/wireframes_mobile.md, docs/interactions_mobile.md, docs/copy_guide.md |
--desktop | prototype-desktop/ | docs/design_system_desktop.md | docs/design_philosophy.md, docs/wireframes_desktop.md, docs/interactions_desktop.md, docs/copy_guide.md |
docs/design_philosophy.md and docs/copy_guide.md are shared across platforms.
FIGMA_TOKEN environment variable (Figma → Settings → Account → Personal access tokens)docs/ux_spec.md and docs/requirements.md are optional but improve quality if present (from /kickoff)Parse $ARGUMENTS for platform flag and URLs:
--mobile or --platform mobile → mobile mode--desktop or --platform desktop → desktop modeIf no URLs found: ask the user for Figma frame URLs.
Run the fetch script:
python3 scripts/figma_fetch.py [--mobile|--desktop] <url1> <url2> ...
If the script exits with non-zero (FIGMA_TOKEN not set, invalid URL, API error):
STOP and report the error message to the user.
This outputs figma-export/design_data.json with:
platform: web/mobile/desktopplatform_config: output paths for this platformframes: node trees with all design propertiessummary: deduplicated colors, text styles, spacings, radii, shadowsRead figma-export/design_data.json.
Read existing project context (if available) — parallel Read:
docs/ux_spec.md, docs/requirements.md, docs/architecture.md (from /kickoff)docs/design_philosophy.md (if exists from a previous run — reuse rather than regenerate)If docs/design_philosophy.md already exists: read it, confirm it aligns with the Figma design, and skip to Phase 3. If it contradicts the Figma design, warn the user and ask whether to update.
If it doesn't exist: analyze the Figma design data and reverse-engineer the design philosophy:
docs/design_philosophy.md describing what the design IS, not what it should beCRITICAL: This is descriptive, not prescriptive. You are documenting the designer's decisions, not making your own. If the Figma design uses Inter font — document Inter, don't suggest a "more distinctive" alternative.
Generate the platform-appropriate design system file from extracted Figma values:
docs/design_system.mddocs/design_system_mobile.mddocs/design_system_desktop.mdContents (all derived from design_data.json):
Platform-specific additions:
Generate wireframes from the Figma frame structure:
docs/wireframes.mddocs/wireframes_mobile.mddocs/wireframes_desktop.mdFor each frame in design_data.json:
Generate interactions spec:
docs/interactions.mddocs/interactions_mobile.mddocs/interactions_desktop.mdFigma is static — it doesn't contain animations, transitions, or state changes. Ask the user the following questions (present all at once):
a) "What loading states should screens show? (skeleton, spinner, or progressive?)" b) "What page transition style? (fade, slide, none?)" c) "Any drag-and-drop interactions?" d) "Any specific animation moments? (page load reveal, form submit, etc.)" e) "If any of these are hard to answer, say 'skip' and I'll use sensible defaults."
If user skips: derive reasonable defaults from the design philosophy and document them. Write the interactions spec with all states (default, loading, empty, error) per screen.
docs/copy_guide.md:
text_content fields in TEXT nodes)Read platform_config from design_data.json to determine output paths.
Ensure prototype directory and screens subdirectory exist.
Generate or update styles file (CSS for web, theme file for mobile/desktop):
For each frame, ask the figma-converter agent to generate a screen file:
prototype/screens/<name>.html — semantic HTML, Google Fonts, file:// compatibleprototype-mobile/src/screens/<name>.tsx — React Native componentsprototype-desktop/src/screens/<name>.html — Electron/Tauri compatible HTMLGenerate index/navigation file:
prototype/index.htmlprototype-mobile/App.tsxprototype-desktop/index.htmlArtifact check: Grep prototype files for Figma artifacts (position: absolute on layout elements, hardcoded hex that should be tokens). Fix any findings.
Value accounting: Cross-check summary values against output. No value should silently disappear.
Content check: Verify Figma text content appears in the output.
Doc completeness: Verify all expected docs exist for the platform.
Present deliverables to the user:
open prototype/index.html (or platform equivalent) to view/implement — the developer will match these prototypes."FIGMA_TOKEN not set: stop, provide setup instructions./uiux would, so downstream skills work identically.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pillip/claude-dev-kit --plugin claude-dev-kit23 skills in this plugin
/bizanalysisAnalyzes and critiques business viability. Use after /brainstorm and before /prd./brainstormExplores ideas and defines problems through free-form conversation. Use before /prd when direction is unclear./carefulActivates destructive command warnings for the current session. Use when working in sensitive environments./desktop-uiuxEstablishes a desktop design philosophy based on kickoff outputs, and generates a desktop design system/wireframes/Electron prototype. Recommended flow — /prd → /kickoff → /desktop-uiux/devopsSet up or update CI/CD pipelines, Dockerfiles, and deployment configs, then create a GH Issue + PR./diagnoseAnalyze a bug from error logs or reproduction steps, fix it, and create a GH Issue + PR.Other plugins' skills for the same job