figma-design-to-code — Codex skill: implement Figma designs
Guides an agent through implementing a Figma node in a project’s existing stack. Use it before calling get_design_context.
npx skills add openai/plugins --skill figma-design-to-code -a codexWhat figma-design-to-code does
The skill lays out the workflow: retrieve a node’s context with get_design_context, then adapt its reference React code to the project’s language, framework, and styling conventions. Check existing components and design tokens before writing code. Code Connect snippets take priority over component docs and design annotations.
Use Figma’s exported assets for images and icons. For committed code, download the exact asset and keep it in the project; the remote asset URL expires in about 7 days. That affects how you should handle assets before committing.
This skill covers reading from Figma, not writing designs to it. If get_design_context fails, read the error message; after a timeout, retry with a smaller node. A file URL without node-id needs a node-specific link.
What it helps with
- implement a selected Figma node in a project
- adapt reference React code to the project’s stack
- reuse existing project components and tokens
- use exported Figma images and icons
Example prompts for the agent
- Implement this Figma node in the project using `get_design_context`, then adapt it to the current stack.
- Check the project’s components and tokens before implementing this Figma design.
- Use Figma’s exported images and icons when translating this design into code.
How to install figma-design-to-code
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-design-to-code -a codex2Manually: put the files in place
.agents/skills/figma-design-to-code/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-design-to-code -a claude-code2Manually: put the files in place
~/.claude/skills/figma-design-to-code/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/figma-design-to-code/
Manually: put the files in place
.cursor/skills/figma-design-to-code/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/plugins figma-design-to-code2Manually: put the files in place
.github/skills/figma-design-to-code/SKILL.mdPlatform CLI
gemini skills install https://github.com/openai/plugins --path plugins/figma/skills/figma-design-to-codeManually: put the files in place
.devin/skills/figma-design-to-code/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set201
The whole set →Similar
Questions about figma-design-to-code
How do I install figma-design-to-code in Codex?
Run npx skills add openai/plugins --skill figma-design-to-code -a codex. The general install command is npx skills add openai/plugins --skill figma-design-to-code.
What does figma-design-to-code do?
It guides the agent through implementing a Figma node: fetch context with get_design_context, inspect the project’s components, and adapt the reference code to the project’s stack.
What should I do if a Figma URL has no node-id?
Ask for a link to a specific node. The skill says not to guess the nodeId or pass an empty value.