Langsung ke konten
Skillpedia
Antarmuka (UI/UX)101k Β· #985

figma-extract

Fungsinya

Tool ini mengambil file Figma dan menyimpan informasi intinya ke komputer Anda. Ia mengekstrak struktur desain, gaya (seperti warna dan font), serta gambar dalam format yang terorganisir.

Kapan dipakai

  • βœ“Saat Anda ingin salinan lokal dari desain Figma Anda.
  • βœ“Saat menyiapkan proyek agar bisa menggunakan gaya dan gambar Figma di tempat lain.
  • βœ“Untuk membuat catatan resmi tentang desain Anda pada titik waktu tertentu.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/figma-extract/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œSimpan desain Figma saya ke dalam file yang terorganisir.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Anda memberikan tautan file Figma dan izin khusus (OAuth token). Tool kemudian mengunduh semuanya dan mengelompokkannya ke dalam folder di komputer Anda.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa itu 'design tokens'?

Ini adalah gaya dasar dari desain Anda, seperti warna yang digunakan, ukuran font, dan jarak antar elemen.

Apa yang terjadi jika file Figma kosong atau izinnya kedaluwarsa?

Tool akan memberi tahu Anda dengan pesan error yang jelas sehingga Anda bisa memperbaiki izin atau memilih file lain.

Apakah tool mencoba menebak desain jika tidak bisa mengakses Figma?

Tidak, tool tidak pernah mengarang informasi. Jika terjadi masalah, ia meminta Anda memperbaikinya atau memilih file lain.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
101k
Peringkat
#985
Lisensi
Apache-2.0
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa