figma-code-connect-components
Fungsinya
Skill ini menghubungkan komponen di desain Figma dengan komponen yang sesuai di kode Anda. Skill ini untuk desainer dan developer yang ingin desain dan kode tetap konsisten.
Kapan dipakai
- βSaat Anda ingin menautkan komponen Figma ke implementasinya di codebase Anda.
- βSaat Anda meminta pemetaan atau koneksi komponen agar desainer dan developer melihat hal yang sama.
- βSaat komponen Figma sudah dipublikasikan dan Anda ingin membuat pemetaan Code Connect-nya.
Link skill
https://github.com/openai/skills/blob/main/skills/.curated/figma-code-connect-components/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTolong hubungkan komponen tombol Figma ini dengan tombol yang sesuai di kode saya memakai Code Connect.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca struktur komponen di Figma, mencari komponen yang cocok di codebase, lalu mengirim pemetaan itu ke Figma lewat Code Connect.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Code Connect Components
Overview
This skill helps you connect Figma design components to their corresponding code implementations using Figma's Code Connect feature. It analyzes the Figma design structure, searches your codebase for matching components, and establishes mappings that maintain design-code consistency.
Skill Boundaries
- Use this skill for
get_code_connect_suggestions+send_code_connect_mappingsworkflows. - If the task requires writing to the Figma canvas with Plugin API scripts, switch to figma-use.
- If the task is building or updating a full-page screen in Figma from code or a description, switch to figma-generate-design.
- If the task is implementing product code from Figma, switch to figma-implement-design.
Prerequisites
- Figma MCP server must be connected and accessible
- User must provide a Figma URL with node ID:
https://figma.com/design/:fileKey/:fileName?node-id=1-2- IMPORTANT: The Figma URL must include the
node-idparameter. Code Connect mapping will fail without it.
- IMPORTANT: The Figma URL must include the
- OR when using
figma-desktopMCP: User can select a node directly in the Figma desktop app (no URL required) - IMPORTANT: The Figma component must be published to a team library. Code Connect only works with published components or component sets.
- IMPORTANT: Code Connect is only available on Organization and Enterprise plans.
- Access to the project codebase for component scanning
Required Workflow
Follow these steps in order. Do not skip steps.
Step 1: Get Code Connect Suggestions
Call get_code_connect_suggestions to identify all unmapped components in a single operation. This tool automatically:
- Fetches component info from the Figma scenegraph
- Identifies published components in the selection
- Checks existing Code Connect mappings and filters out already-connected components
- Returns component names, properties, and thumbnail images for each unmapped component
Option A: Using figma-desktop MCP (no URL provided)
If the figma-desktop MCP server is connected and the user has NOT provided a Figma URL, immediately call get_code_connect_suggestions. No URL parsing is needed β the desktop MCP server automatically uses the currently selected node from the open Figma file.
Note: The user must have the Figma desktop app open with a node selected. fileKey is not passed as a parameter β the server uses the currently open file.
Option B: When a Figma URL is provided
Parse the URL to extract fileKey and nodeId, then call get_code_connect_suggestions.
IMPORTANT: When extracting the node ID from a Figma URL, convert the format:
- URL format uses hyphens:
node-id=1-2 - Tool expects colons:
nodeId=1:2
Parse the Figma URL:
- URL format:
https://figma.com/design/:fileKey/:fileName?node-id=1-2 - Extract file key:
:fileKey(segment after/design/) - Extract node ID:
1-2from URL, then convert to1:2for the tool
get_code_connect_suggestions(fileKey=":fileKey", nodeId="1:2")
Handle the response:
- If the tool returns "No published components found in this selection" β inform the user and stop. The components may need to be published to a team library first.
- If the tool returns "All component instances in this selection are already connected to code via Code Connect" β inform the user that everything is already mapped.
- Otherwise, the response contains a list of unmapped components, each with:
- Component name
- Node ID
- Component properties (JSON with prop names and values)
- A thumbnail image of the component (for visual inspection)
Step 2: Scan Codebase for Matching Components
For each unmapped component returned by get_code_connect_suggestions, search the codebase for a matching code component.
What to look for:
- Component names that match or are similar to the Figma component name
- Component structure that aligns with the Figma hierarchy
- Props that correspond to Figma properties (variants, text, styles)
- Files in typical component directories (
src/components/,components/,ui/, etc.)
Search strategy:
- Search for component files with matching names
- Read candidate files to check structure and props
- Compare the code component's props with the Figma component properties returned in Step 1
- Detect the programming language (TypeScript, JavaScript)
Pertanyaan umum
Apa yang harus saya berikan?
Tautan Figma yang menyertakan node ID, atau node yang dipilih di aplikasi desktop Figma.
Mengapa komponen harus dipublikasikan?
Skill menyatakan Code Connect hanya bekerja dengan komponen atau set komponen yang dipublikasikan ke library tim.
Bisakah skill ini juga menggambar di kanvas Figma?
Tidak. Skill menyatakan penulisan ke kanvas termasuk skill lain, yaitu figma-use.
Detail
Deskripsi asli dari pembuat
Connects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.
repo: openai/skills
Popularitas
- Bintang GitHub
- 28k
- Peringkat
- #9848
- Lisensi
- β
- Diperbarui
- 28/10/2026
Komentar
- β¦
Skill lain dari repositori ini
aspnet-core
28kMembantu agent Anda membangun, meninjau, atau meningkatkan aplikasi web ASP.NET Core, memilih jenis aplikasi yang tepat dan mengikuti panduan terkini Microsoft untuk .NET.
chatgpt-apps
28kMembantu agent Anda membangun aplikasi ChatGPT yang memadukan server MCP dengan antarmuka widget, mencakup desain alat, resource UI, metadata, dan pengaturan lokal.
cli-creator
28kMembantu agent Anda mengubah dokumentasi API, spesifikasi, atau skrip menjadi alat baris perintah yang dapat dipakai ulang dari folder mana pun.
define-goal
28kMembantu agent Anda mengubah niat yang samar menjadi tujuan yang jelas dan terukur, dengan kriteria keberhasilan, cakupan, dan kondisi berhenti sebelum pekerjaan dimulai.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.