figma-use — Codex skill: what it does, how to install
This skill sets out how to use the Figma Plugin API through use_figma. It helps when an agent needs to change a Figma file or inspect its structure programmatically.
npx skills add openai/plugins --skill figma-use -a codexWhat figma-use does
figma-use explains how to run JavaScript in Figma files through the Plugin API. Its guidance covers text edits, pages, variables, and auto layout, with instructions to make changes in small steps and validate them. Detailed API references are included with the skill.
For building or updating a full page, load figma-generate-design as well. Component work also calls for figma-generate-library. Pay attention to font-loading rules when editing text and to the requirement to switch pages asynchronously. Install this skill when an agent will call use_figma; it is unnecessary for tasks that do not involve the Figma Plugin API.
What it helps with
- create or edit nodes in a Figma file
- inspect a page's structure with JavaScript
- set up variables and bind them to properties
- build a component with variants and auto layout
Example prompts for the agent
- Create an auto-layout frame in Figma and add a heading to it.
- Find the text nodes on the current page and return their IDs.
- Change this node's fill and return its ID.
How to install figma-use
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-use -a codex2Manually: put the files in place
.agents/skills/figma-use/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/plugins --skill figma-use -a claude-code2Manually: put the files in place
~/.claude/skills/figma-use/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/figma-use/
Manually: put the files in place
.cursor/skills/figma-use/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/plugins figma-use2Manually: put the files in place
.github/skills/figma-use/SKILL.mdPlatform CLI
gemini skills install https://github.com/openai/plugins --path plugins/figma/skills/figma-useManually: put the files in place
.devin/skills/figma-use/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-use
How do I install figma-use in Codex?
Run npx skills add openai/plugins --skill figma-use. To specify the agent, run npx skills add openai/plugins --skill figma-use -a codex.
What does figma-use do?
It provides guidance for running JavaScript in Figma files through the Plugin API with use_figma. An agent can use it to edit a file or inspect its structure programmatically.
Do I need another skill to build Figma components?
Yes. Load figma-generate-library alongside figma-use for component creation. For a full page or screen, load figma-generate-design.