Agent Skill
Figma to code (OpenAI, deprecated repo)
Turns a Figma frame into code that matches the design, using the Figma MCP server for design context, screenshots and assets. Source repo is deprecated.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit 49f948f, the version we read, wherever the install method supports it.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill figma-implement-design -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill figma-implement-design -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
Built-in installer
$skill-installer figma-implement-designRun inside Codex. The built-in installer fetches curated skills from openai/skills at its latest commit, not the pinned one.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill figma-implement-design -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install openai/skills skills/.curated/figma-implement-design --pin 49f948faa9258a0c61caceaf225e179651397431 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill figma-implement-designPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
A seven-step workflow for building a Figma frame or component as code. The agent gets the node ID from a Figma URL (or the current selection in the Figma desktop app), fetches design context and a screenshot through the Figma MCP server, downloads the assets, translates the output into your project’s components and tokens rather than pasting raw generated code, and then compares the result with the screenshot until it matches. The rules favour reusing existing components, using design-system tokens over hard-coded values, and writing down any deliberate deviation. It ends with fixes for common problems such as truncated MCP output and token values that differ from Figma.
Outline of the SKILL.md
We have not reproduced this SKILL.md because the folder ships Figma’s own licence for these materials rather than an open-source licence. These are its section headings at the reviewed commit; read the full file at the source link.
- Overview
- Skill Boundaries
- Prerequisites
- Required Workflow
- Implementation Rules
- Examples
- Best Practices
- Common Issues and Solutions
- Understanding Design Implementation
- Additional Resources
Source status
This skill comes from openai/skills, which OpenAI has marked deprecated in favour of openai/plugins. We checked: there is no identical copy there. The Figma plugin in openai/plugins has a newer, shorter skill called figma-design-to-code with a similar job, and its description insists the agent load it before calling Figma’s get_design_context tool. If you use Codex, install that plugin instead. Elsewhere this older skill still works, but it will not get updates.
When to use it
Implementing a screen or component from a Figma file with a design system already in place, where close visual match matters.
When to skip it
No Figma MCP server, or a project without components and tokens: the skill assumes there is a system to map onto. For writing back to the Figma canvas, the description points to a separate figma-use skill.
Try it
Implement this Figma frame as a React component using our Button and Card
components and the tokens in src/styles/tokens.css:
https://figma.com/design/<fileKey>/<fileName>?node-id=<node-id>
Compare with the screenshot and list any differences you left in.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- See source
- Needs
- Figma MCP server (remote or desktop); Figma account with access to the file
- Client-specific fields
- None, spec fields only
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Figma MCP calls with your Figma login, asset downloads and edits to your source files. No allowed-tools. The folder ships Figma’s own licence for these materials, which is why we link to the SKILL.md rather than reproducing it.
At commit 49f948f the SKILL.md is 258 lines long. Alongside it:
agents/(1 entry)assets/(3 entries)LICENSE.txt
Alternatives
DESIGN.md from Stitch if your designs live in Google Stitch. Frontend design when there is no design file and the agent needs to choose a direction.
SKILL.md
We have not reproduced this file here; the outline above lists its sections. Read the SKILL.md on GitHub.
Related skills
DESIGN.md from Stitch (Google Labs)
Reads a Google Stitch project through the Stitch MCP server and writes a DESIGN.md that describes its colours, type, shapes and layout in plain words.
Frontend design
Steers UI work away from template defaults toward a deliberate visual direction, with a plan, review and self-critique loop before and after building.
React best practices (Vercel)
Vercel's React and Next.js performance rules as a skill, ranked by impact: waterfalls, bundle size, server performance, data fetching and re-renders.
Guides and recipes that use Figma to code (OpenAI, deprecated repo)
- Turn a Figma design into code with an agent
Connect the Figma MCP server, map the design's variables to your tokens first, build one frame, then run a visual diff and an axe check.
- Model Context Protocol
Connecting AI applications to tools and data through MCP servers and clients.