本文へスキップ
Skillpedia
インターフェース(UI/UX)101k · #985

figma-extract

できること

このツールはFigmaのファイルを受け取り、その主要な情報をあなたのコンピューターに保存します。デザインの構造、スタイル(色やフォントなど)、画像を整理された形で取り出します。

使う場面

  • ✓Figmaのデザインをローカルにコピーして保存したいとき
  • ✓Figmaのスタイルや画像を他の場所で使うためにプロジェクトを準備するとき
  • ✓特定の時点におけるデザインの正式な記録を残したいとき

スキルのリンク

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/figma-extract/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/figma-extract/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Figmaのデザインを整理されたファイルとして保存してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

あなたはFigmaファイルのリンクと特別な許可(OAuthトークン)を提供します。ツールはすべてをダウンロードし、コンピューター上のフォルダにまとめて整理します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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 componentRef links so token-map can 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.

よくある質問

「デザイントークン」とは何ですか?

デザインの基本的なスタイルのことです。使われている正確な色、フォントサイズ、要素同士の間隔などを指します。

Figmaのファイルが空の場合や、許可の期限が切れた場合はどうなりますか?

ツールは、許可を修正するか別のファイルを選ぶよう、わかりやすいエラーで通知します。

Figmaにアクセスできない場合、ツールがデザインを推測しますか?

いいえ。ツールが情報を作り出すことは決してありません。何か問題が起きた場合は、修正するか別のファイルを選ぶようあなたに求めます。

詳細

作者による元の説明

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

人気

GitHubのスター
101k
ランキング
#985
ライセンス
Apache-2.0
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル