Langsung ke konten
Skillpedia
Antarmuka (UI/UX)28k Β· #9852

figma-generate-library

Fungsinya

Skill ini memandu pembangunan sistem desain lengkap di Figma yang sesuai dengan kode Anda. Skill ini untuk tim sistem desain yang ingin variabel, komponen, tema, dan fondasi tertata dalam urutan yang jelas.

Kapan dipakai

  • βœ“Saat Anda ingin mengubah token kode menjadi variabel Figma untuk warna, spasi, dan tipografi.
  • βœ“Saat Anda perlu membangun library komponen di Figma yang sesuai dengan komponen aplikasi Anda.
  • βœ“Saat Anda ingin mengatur mode terang dan gelap serta menyelaraskan versi Figma dan kode.

Link skill

https://github.com/openai/skills/blob/main/skills/.curated/figma-generate-library/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/openai/skills/blob/main/skills/.curated/figma-generate-library/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

β€œBisa Anda membangun sistem desain Figma dari codebase kami, dimulai dengan variabel warna dan spasi?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent bekerja dalam beberapa fase. Ia mempelajari codebase lebih dulu, lalu membuat token, komponen, dan tema secara berurutan, dan berhenti untuk meminta masukan di antara setiap langkah.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Design System Builder β€” Figma MCP Skill

Build professional-grade design systems in Figma that match code. This skill orchestrates multi-phase workflows across 20–100+ use_figma calls, enforcing quality patterns from real-world design systems (Material 3, Polaris, Figma UI3, Simple DS).

Prerequisites: The figma-use skill MUST also be loaded for every use_figma call. It provides Plugin API syntax rules (return pattern, page reset, ID return, font loading, color range). This skill provides design system domain knowledge and workflow orchestration.

Always pass skillNames: "figma-generate-library" when calling use_figma as part of this skill. This is a logging parameter β€” it does not affect execution.


1. The One Rule That Matters Most

This is NEVER a one-shot task. Building a design system requires 20–100+ use_figma calls across multiple phases, with mandatory user checkpoints between them. Any attempt to create everything in one call WILL produce broken, incomplete, or unrecoverable results. Break every operation to the smallest useful unit, validate, get feedback, proceed.


2. Mandatory Workflow

Every design system build follows this phase order. Skipping or reordering phases causes structural failures that are expensive to undo.

Phase 0: DISCOVERY (always first β€” no use_figma writes yet)
  0a. Analyze codebase β†’ extract tokens, components, naming conventions
  0b. Inspect Figma file β†’ pages, variables, components, styles, existing conventions
  0c. Search subscribed libraries β†’ use search_design_system for reusable assets
  0d. Lock v1 scope β†’ agree on exact token set + component list before any creation
  0e. Map code β†’ Figma β†’ resolve conflicts (code and Figma disagree = ask user)
  βœ‹ USER CHECKPOINT: present full plan, await explicit approval

Phase 1: FOUNDATIONS (tokens first β€” always before components)
  1a. Create variable collections and modes
  1b. Create primitive variables (raw values, 1 mode)
  1c. Create semantic variables (aliased to primitives, mode-aware)
  1d. Set scopes on ALL variables
  1e. Set code syntax on ALL variables
  1f. Create effect styles (shadows) and text styles (typography)
  β†’ Exit criteria: every token from the agreed plan exists, all scopes set, all code syntax set
  βœ‹ USER CHECKPOINT: show variable summary, await approval

Phase 2: FILE STRUCTURE (before components)
  2a. Create page skeleton: Cover β†’ Getting Started β†’ Foundations β†’ --- β†’ Components β†’ --- β†’ Utilities
  2b. Create foundations documentation pages (color swatches, type specimens, spacing bars)
  β†’ Exit criteria: all planned pages exist, foundations docs are navigable
  βœ‹ USER CHECKPOINT: show page list + screenshot, await approval

Phase 3: COMPONENTS (one at a time β€” never batch)
  For EACH component (in dependency order: atoms before molecules):
    3a. Create dedicated page
    3b. Build base component with auto-layout + full variable bindings
    3c. Create all variant combinations (combineAsVariants + grid layout)
    3d. Add component properties (TEXT, BOOLEAN, INSTANCE_SWAP)
    3e. Link properties to child nodes
    3f. Add page documentation (title, description, usage notes)
    3g. Validate: get_metadata (structure) + get_screenshot (visual)
    3h. Optional: lightweight Code Connect mapping while context is fresh
    β†’ Exit criteria: variant count correct, all bindings verified, screenshot looks right
    βœ‹ USER CHECKPOINT per component: show screenshot, await approval before next component

Phase 4: INTEGRATION + QA (final pass)
  4a. Finalize all Code Connect mappings
  4b. Accessibility audit (contrast, min touch targets, focus visibility)
  4c. Naming audit (no duplicates, no unnamed nodes, consistent casing)
  4d. Unresolved bindings audit (no hardcoded fills/strokes remaining)
  4e. Final review screenshots of every page
  βœ‹ USER CHECKPOINT: complete sign-off

3. Critical Rules

Plugin API basics (from use_figma skill β€” enforced here too):

  • Use return to send data back (auto-serialized). Do NOT wrap in IIFE or call closePlugin.
  • Return ALL created/mutated node IDs in every return value
  • Page context resets each call β€” always await figma.setCurrentPageAsync(page) at start
  • figma.notify() throws β€” never use it
  • Colors are 0–1 range, not 0–255
  • Font MUST be loaded before any text write: await figma.loadFontAsync({family, style})

Design system rules:

  1. Variables BEFORE components β€” components bind to variables. No
Pertanyaan umum

Apakah ini tugas satu langkah?

Tidak. Skill menyatakan membangun sistem desain membutuhkan banyak langkah terpisah dengan titik pemeriksaan di antaranya.

Skill lain apa yang dibutuhkannya?

Skill figma-use harus dimuat untuk setiap penulisan ke Figma, karena skill itu mencakup aturan Plugin API.

Apakah ini mencakup tema terang dan gelap?

Ya. Pengaturan tema dengan mode terang dan gelap adalah salah satu fasenya.

Detail

Deskripsi asli dari pembuat

Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. This skill teaches WHAT to build and in WHAT ORDER β€” it complements the `figma-use` skill which teaches HOW to call the Plugin API. Both skills should be loaded together.

repo: openai/skills

Popularitas

Bintang GitHub
28k
Peringkat
#9852
Lisensi
β€”
Diperbarui
28/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa