figma-generate-library · openai — Codex skill: design system sync with code
Skill to build a professional design system in Figma from your codebase. Creates variables, components with variants, typography styles and theming in the correct order — from tokens to finished components.
npx skills add openai/plugins --skill figma-generate-library -a codexWhat figma-generate-library does
The skill manages a multi-phase workflow: first it analyzes your code and current Figma state, then creates foundations (variables, collections, modes), builds file structure, and assembles components in dependency order.
Unlike manual work, the skill proceeds step-by-step with checklists and validation after each phase. It requires loading alongside the figma-use skill, which handles Plugin API syntax — figma-generate-library itself teaches the sequence for building systems. Important: this is not a one-shot operation but a staged process with 20–100+ API calls, each needing completion and verification before the next phase starts.
The skill follows real-world design system architecture (Material 3, Polaris, Figma UI3), sets scopes for all variables, assigns code syntax, and wires component property bindings. Works only if your Figma file is open in context and your codebase is readable.
What it helps with
- sync components with design system from code
- create variables and theme modes (light and dark)
- build component library with variants and property bindings
- set up design foundations: tokens, colors, typography
- align Figma structure with codebase architecture
Example prompts for the agent
- Build a design system in Figma from our Design Tokens file and React components
- Update our Figma library: add variables for light and dark theme, then build buttons and inputs with variants
- Help me close the gap between Figma and code: button is in Figma but the disabled state is only in code — keep them in sync
How to install figma-generate-library
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-generate-library -a codex2Manually: put the files in place
.agents/skills/figma-generate-library/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-generate-library -a claude-code2Manually: put the files in place
~/.claude/skills/figma-generate-library/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/figma-generate-library/
Manually: put the files in place
.cursor/skills/figma-generate-library/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/plugins figma-generate-library2Manually: put the files in place
.github/skills/figma-generate-library/SKILL.mdPlatform CLI
gemini skills install https://github.com/openai/plugins --path plugins/figma/skills/figma-generate-libraryManually: put the files in place
.devin/skills/figma-generate-library/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 →Other versions of figma-generate-library
Similar
Questions about figma-generate-library
How do I install figma-generate-library in Codex?
Run npx skills add openai/plugins --skill figma-generate-library -a codex, then find the skill in .agents/skills/figma-generate-library/SKILL.md in your project root.
What does figma-generate-library do?
Manages step-by-step design system construction in Figma from your codebase: extracts tokens and components, creates variables and collections, builds file structure, and adds components with variants and variable bindings.
Do I need to load figma-use with figma-generate-library?
Yes, both skills must load together: figma-generate-library teaches the sequence for building systems, and figma-use provides the Plugin API syntax for actual calls.