Skip to content
Skill

Prepare figma design

Turns a Figma design or .fig export into structured files an agent can build from

Prepare figma design is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
380
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Prepare figma design

This skill pulls a Figma design, either from a figma.com link using a read-only personal access token or from a local .fig export, and writes three files: a structured layout description, a machine-readable spec for checking renders, and the bitmaps the design uses. Materials are named with the team's own design tokens, read from Style Dictionary JSON, so colors and spacing refer to token names rather than raw values.

The workflow is deliberately split in two. This step is the only one that touches Figma, and it is meant to run once per design revision. The output is committed to the repository so that a later build step, handled by the implement-figma-design skill, needs no Figma access or seat. The skill notes that Figma's own component markup should not be handed over as a build source, since it tends to carry layout-engine wrappers rather than meaningful structure.

It expects Node 22.15 or newer when reading a .fig file, which is compressed with zstd. Theme selection (light or dark) changes which token names are used, so the chosen theme should be recorded alongside the output.

When your agent uses it

Use when you have a figma.com link or a local .fig export, and someone needs to build that design — including when you will build it yourself. One command turns it into the design's structure, its materials named as your own design tokens, the text of every node and the bitmaps it uses, as three files to commit. No Dev Mode seat: a read-only personal access token, or no credential at all from a .fig. Hand those files to implement-figma-design, which needs no Figma access.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 9 files (105 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the charcoal plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add pixiv/charcoal
/plugin install charcoal@charcoal

Or copy only this skill to ~/.claude/skills/prepare-figma-design:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/prepare-figma-design &&
cp -R "$tmp/skills/prepare-figma-design" ~/.claude/skills/prepare-figma-design &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/prepare-figma-design inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/prepare-figma-design to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/prepare-figma-design &&
cp -R "$tmp/skills/prepare-figma-design" ~/.agents/skills/prepare-figma-design &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/prepare-figma-design inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/prepare-figma-design to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/prepare-figma-design &&
cp -R "$tmp/skills/prepare-figma-design" ~/.cursor/skills/prepare-figma-design &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/prepare-figma-design inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/pixiv/charcoal.git --path skills/prepare-figma-design

Or copy the folder to ~/.gemini/skills/prepare-figma-design yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/prepare-figma-design:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/prepare-figma-design &&
cp -R "$tmp/skills/prepare-figma-design" ~/.copilot/skills/prepare-figma-design &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/prepare-figma-design inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/pixiv/charcoal.git

Then copy charcoal/skills/prepare-figma-design into your agent's skills folder as prepare-figma-design. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Design structure export
Writes the frame's element tree with box sizes, positions and the components each element comes from.
Design token naming
Names colors and other values after tokens from a Style Dictionary JSON set instead of raw hex.
Bitmap download
Downloads the images a design uses and records the object-fit each crop implies.
Comparison spec output
Produces a spec file that a script can use to compare a rendered screen against the design.
Offline .fig support
Reads a local Figma export without any network call or token.
Light and dark themes
Resolves token names against either the light or dark theme file, leaving out the other theme.

Good for

  • Export a Figma frame into a design.md file to commit alongside the code
  • Pull the images from a Figma frame into a project assets folder
  • Generate a comparison spec for a screen before building it
  • Convert a saved .fig file into a structured design pack without a Figma account
  • Name a design's colors with the team's existing design tokens

Prepare figma design FAQ

What do I need to run Prepare figma design from a Figma link?

A read-only Figma personal access token set in the FIGMA_TOKEN environment variable. No Dev Mode seat is required.

Can Prepare figma design run without a Figma token?

Yes. Using a local .fig export needs no token, no network access and no access to the original file. The --node flag is required in that case.

What files does Prepare figma design write?

The design description on stdout, which is usually redirected to design/design.md, plus optional spec.json and assets directory when those flags are given. It writes nothing inside node_modules and keeps no cache.

Which Node version is required for .fig files?

Node 22.15 or newer, because recent exports compress the document with zstd.

How do I install Prepare figma design in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/prepare-figma-design to use it in all your projects, or to .claude/skills/prepare-figma-design in one project. Or install the charcoal plugin, which includes it: /plugin marketplace add pixiv/charcoal, then /plugin install charcoal@charcoal.

Does Prepare figma design run scripts?

Yes. It runs JavaScript and TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Prepare figma design?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Prepare figma design?

The closest alternatives to Prepare figma design are Figma implement design, Figma implement design, Implement figma design, Figma and Figma generate library.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from pixiv/charcoal

  1. Guides agents to pick and correctly set up pixiv's charcoal-ui styling routes

    • Open source
    • 380 GitHub stars
    • Developer tools
  2. Guides agents to pick the correct Charcoal design tokens instead of hardcoded values

    • Open source
    • 380 GitHub stars
    • Developer tools
  3. Builds a UI screen from a prepared Figma design pack and checks it against the spec

    • Open source
    • 380 GitHub stars
    • Developer tools
  4. Guides wiring charcoal design tokens into an existing styled-components codebase

    • Open source
    • 380 GitHub stars
    • Developer tools