Generate a Figma design from an app
Builds or updates a full screen in Figma from code or a description, section by section, using the file's published components, variables and styles instead of hardcoded values. Use when a page from your app should exist as a Figma screen.
figma-generate-design- Author
- OpenAI
- Source
- openai/skills/skills/.curated/figma-generate-design @ 49f948f
- License
- Figma Developer Terms
About this skill
What it does
The skill builds or updates a full screen inside Figma from your code or a description, assembled from the file's published design system rather than boxes with hex colours. It is a workflow on top of Figma use_figma prerequisite, which loads with it for the API rules.
The agent splits the source screen into sections and components, then collects the library's components, variables and styles, preferably by walking an existing screen in the file, otherwise with many short synonym queries to search_design_system. An empty result from the local variables API does not mean the library has none, the skill warns.
The build has a fixed shape: a page wrapper frame in its own call, since moving nodes between calls fails silently, then one section per call inside it, with component instances, variable-bound colours and spacing, and text set through setProperties(). Variants follow the component's default props in code, not only the props passed. Each section gets its own screenshot to catch clipped text, overlaps, leftover placeholder text and wrong variants. Existing screens are edited in place, down to swapComponent.
For a web app it adds a parallel run: generate_figma_design captures the running page as a pixel reference, deleted once the screen matches. It has no references of its own and reuses figma-use's.
When to use it, and when not
Use it to push a page from code into Figma, mock a screen from existing components, or bring a Figma screen back in line with the code. The target file needs a published design system or a team library; without one, build it first with Figma design system from a codebase. A single new component is a job for figma-use alone.
How to run it
We do not copy this skill: its files fall under Figma's Developer Terms, not an open licence. Install it from the author's repository with the button to the source; in Codex the route is $skill-installer figma-generate-design, for another agent copy the folder into its skills directory. OpenAI has marked openai/skills deprecated; newer versions live in openai/plugins. Install figma-use next to it.
- Claude Code:
/figma-generate-design, or ask for the skill by name. - Codex:
$figma-generate-design. - Cursor: type
/in the Agent chat and pickfigma-generate-design.
Example: /figma-generate-design Rebuild src/pages/Settings.tsx in this file from our library: https://figma.com/design/<fileKey>/App
How it differs from similar skills
Implement a Figma design in code runs the other way, from Figma to code. Create a new Figma file gives this skill an empty file to work in. No skill outside the Figma set writes into a design tool.
Install
This skill is not copied to the catalog: its licence does not allow it. Install it from the author's repository.
Connect through AnyModel API
This skill runs on whatever model your agent uses. Point Claude Code, Codex or Cursor at AnyModel to run it on Claude, GPT, Gemini and more with one key — pay per token, no subscription.
AnyModel