# Prepare figma design

> Prepare figma design is an open-source agent skill for design and media. Turns a Figma design or .fig export into structured files an agent can build from. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pixiv/charcoal/tree/main/skills/prepare-figma-design
- **Repository:** https://github.com/pixiv/charcoal
- **GitHub stars:** 380
- **License:** Apache-2.0
- **Skill name:** prepare-figma-design
- **Collection:** https://github.com/pixiv/charcoal
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/pixiv/charcoal/tree/HEAD/skills/prepare-figma-design)
- [Network calls found in its scripts](https://github.com/pixiv/charcoal/tree/HEAD/skills/prepare-figma-design)
- [License: Apache-2.0](https://github.com/pixiv/charcoal/tree/HEAD/skills/prepare-figma-design)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Figma implement design](https://ai-powered.com/skills/figma-implement-design-mtarcure): Figma implement design is an open-source agent skill for design and media.
- [Figma implement design](https://ai-powered.com/skills/figma-implement-design): Figma implement design is a free agent skill for design and media.
- [Implement figma design](https://ai-powered.com/skills/implement-figma-design): Implement figma design is an open-source agent skill for developer tools.
- [Figma](https://ai-powered.com/skills/figma-openai): Figma is a free agent skill for design and media.
- [Figma generate library](https://ai-powered.com/skills/figma-generate-library): Figma generate library is a free agent skill for design and media.
- [Figma generate design](https://ai-powered.com/skills/figma-generate-design): Figma generate design is a free agent skill for design and media.
- [Figma use](https://ai-powered.com/skills/figma-use): Figma use is a free agent skill for design and media.
- [Remember design system](https://ai-powered.com/skills/remember-design-system): Remember design system is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/prepare-figma-design
