figma-canvas-authoring
Create or update native, editable Figma designs with TemPad Dev MCP: screens, flows,…
Implement or update project-consistent UI code from a visible Figma selection or nodeId using TemPad Dev MCP. Use when the user wants Figma UI recreated, ported, or integrated into the target project's framework, styling system, tokens, assets, and existing components. Do not
$ npx -y skills add ecomfe/tempad-dev --skill figma-design-to-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/figma-design-to-codeContext preview
The summary Claude sees to decide when to auto-load this skill.
Implement or update project-consistent UI code from a visible Figma selection or nodeId using TemPad Dev MCP. Use when the user wants Figma UI recreated, ported, or integrated into the target project's framework, styling system, tokens, assets, and existing components. Do not
name: figma-design-to-code description: >- Implement or update project-consistent UI code from a visible Figma selection or nodeId using TemPad Dev MCP. Use when the user wants Figma UI recreated, ported, or integrated into the target project's framework, styling system, tokens, assets, and existing components. Do not use for design critique, product invention, generic code review, or guessing states, responsiveness, or behavior not evidenced by Figma, the project, or the user.
Turn visible Figma evidence into the smallest project-native implementation that preserves the intended result. Keep that result focal: project files, TemPad output, rules, and tool calls are evidence for the implementation, not deliverables to reproduce mechanically.
Require TemPad Dev MCP to provide trustworthy design evidence for the current selection or an exact `nodeId` inside the user's established scope. Never reconstruct the design from memory, screenshots alone, or `get_structure` metadata.
Use each source only for what it can establish:
implementation decisions.
styling, tokens, assets, dependencies, and verification conventions.
Follow project instruction files for concerns outside Figma-to-code translation. Do not add policy for routing, analytics, i18n, CMS, or other orthogonal systems.
TemPad can establish visible hierarchy, layout, spacing, typography, color, effects, token references, exported assets, and codegen unit context. It cannot establish unevidenced states, responsive behavior, business logic, navigation, validation, analytics, or project conventions. Treat `get_structure` as hierarchy and geometry evidence only, never as missing style truth.
Read only local evidence that can change this implementation, in this order:
1. applicable `AGENTS.md` or equivalent instructions; 2. relevant design-system, token, component, and asset guidance; 3. the nearest comparable implementation and reusable primitives; 4. framework, styling, and check configuration needed for this task.
Determine the target file or component boundary, framework, styling method, token and asset paths, reuse candidates, dependency constraints, and narrowest relevant checks. Inspect Tailwind version and theme scales only when the project actually uses Tailwind-compatible tooling.
Do not inventory the repository broadly after the needed envelope is clear. If a missing project decision would materially change the result, ask before implementation.
Call TemPad Dev's `get_code` before implementing:
supplied it or TemPad returned the exact ID for a targeted read inside the user's established scope;
asset-preserving vector fidelity and the active MCP version supports it.
Use `resolveTokens: true` only when the user explicitly does not want design token references. Treat returned `lang` as authoritative because plugin configuration may override `preferredLang`.
Retain the returned `code`, `lang`, `warnings`, `assets`, `tokens`, and `codegen` facts that bear on the implementation. Use `codegen.config.{cssUnit,rootFontSize,scale}` for exact unit conversion.
Prefer one top-level read that preserves the requested composition. If the tool is unavailable, points at the wrong file, or returns incomplete evidence, read [recovery.md](references/recovery.md) before doing anything else.
Before editing, distinguish:
utilities, or asset conventions;
Map by rendered value and semantics, not by a convenient name. A familiar component or token is a candidate, not proof of equivalence. If more than one material implementation path remains equally plausible, ask the user. Infer only low-consequence details and report any inference that affects the result.
abstraction level. Do not introduce a parallel system.
without guessing. Do not force reuse that erases design facts.
token, utility, or component. For `rem` output, convert with TemPad's actual `cssUnit`, `rootFontSize`, and `scale`.
masks, blend and backdrop effects, gradients, and non-default compositing, unless a documented project constraint requires an adaptation.
loading, error, empty, disabled, or responsive behavior.
names when an established primitive does not already provide them.
explicitly waived that constraint.
When TemPad returns relevant entries, load only the matching protocol:
project's asset delivery path;
Create, edit, and implement Figma designs with your coding agent.
Repo: ecomfe/tempad-dev
Create or update native, editable Figma designs with TemPad Dev MCP: screens, flows,…