figma-extract
What it does
This tool takes a Figma file and saves its core information to your computer. It extracts the design structure, styles (like colors and fonts), and images in an organized format.
When to use it
- βWhen you want a local copy of your Figma design.
- βWhen preparing a project to use Figma styles and images elsewhere.
- βTo create an official record of your design at a specific point in time.
Skill link
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/figma-extract/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSave my Figma design into an organized file.β
5 new skills a week. 1 minute to read.
How it works
You provide the Figma file link and special permission (OAuth token). The tool then downloads everything and organizes it into folders on your computer.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Figma extract
Spec Β§10 / Β§21.3.1: the figma-migration scenario starts with a Figma
file URL + an OAuth token. This atom turns that pair into the
authoritative on-disk record subsequent stages (token-map,
generate, critique) operate on.
Inputs
| Source | Required | Notes |
|---|---|---|
Figma file URL or node-id |
yes | Provide via the figma-oauth GenUI surface or od plugin apply --input fileUrl=β¦ |
| Figma OAuth token | yes | Routed through oauth-prompt with oauth.route='connector' and connectorId='figma'; the daemon never stores the token in SQLite |
Output
The atom writes a deterministic, JSON-shaped extract under the project cwd:
project-cwd/
βββ figma/
β βββ tree.json # canonical node tree (id / type / parent / children / box / fills / text)
β βββ tokens.json # color + typography + spacing tokens lifted off the file
β βββ assets/ # rasterised exports of every leaf node that the file marks for export
β β βββ <node-id>.<png|svg|webp>
β βββ meta.json # { fileUrl, version, lastModified, exportedAt, atomDigest }
figma/tree.json is the canonical pivot for every downstream atom.
figma/tokens.json is the input to token-map. assets/ is the
input to generate's media stage.
Convergence
The atom completes when figma/tree.json exists and is non-empty.
The until evaluator reads figma.tree.nodes >= 1; if the figma
file is empty or the OAuth token expired, the atom emits a clear
error event and the run aborts (the user fixes auth or picks a
different file).
Anti-patterns the prompt fragment forbids
- Synthesising a tree from screenshots when the OAuth path failed β always re-prompt the user; never make up node ids.
- Dropping unsupported node types silently; record them in
meta.json.unsupportedNodes[]so the human can audit gaps. - Treating component instances as duplicates; record
componentReflinks sotoken-mapcan de-duplicate at the right boundary.
Status
Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/figma-extract.ts. It fetches and walks the
Figma REST tree, records unsupported nodes, lifts tokens, and rasterizes
supported assets.
FAQ
What are 'design tokens'?
These are the basic styles of your design, like the exact colors used, font sizes, and spacing between elements.
What happens if the Figma file is empty or the permission expires?
The tool will notify you with a clear error so you can fix the permission or choose a different file.
Does the tool try to guess the design if it can't access Figma?
No, it never invents information. If something goes wrong, it asks you to fix it or choose another file.
Details
Original description by the author
Pull a Figma file's node tree, design tokens, and embedded assets into the project cwd as a structured snapshot.
repo: nexu-io/open-design
Popularity
- GitHub stars
- 101k
- Ranking position
- #985
- License
- Apache-2.0
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
sample-plugin
101kMakes your agent create a metadata file for tests. It helps ensure code works correctly in different situations.
aster-atelier
101kHelps your agent create an artistic website with a classic look. It uses elegant imagery, blue skies, and serif fonts for a cinematic feel.
audio-jingle
101kMakes your agent generate audio like jingles and sound effects. It can create music and voices, saving the result as an audio file.
blog-post
101kHelps your agent write long articles or blog posts. It includes space for images, quotes, and author information.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.