figma-code-connect-components
Was er macht
Dieser Skill verknüpft Komponenten in einem Figma-Design mit den passenden Komponenten in deinem Code. Er ist für Designer und Entwickler gedacht, die wollen, dass Design und Code konsistent bleiben.
Wann du ihn nutzt
- ✓Wenn du eine Figma-Komponente mit ihrer Umsetzung in deiner Codebasis verknüpfen willst.
- ✓Wenn du eine Komponente zuordnen oder verbinden willst, damit Designer und Entwickler dasselbe sehen.
- ✓Wenn eine Figma-Komponente veröffentlicht ist und du ihre Code-Connect-Zuordnung erstellen willst.
Link zum Skill
https://github.com/openai/skills/blob/main/skills/.curated/figma-code-connect-components/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Bitte verbinde diese Figma-Button-Komponente mit dem passenden Button in meinem Code über Code Connect.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest die Struktur der Komponente in Figma, sucht in der Codebasis nach einer passenden Komponente und sendet die Zuordnung dann über Code Connect an Figma.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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)
Häufige Fragen
Was muss ich angeben?
Einen Figma-Link mit einer Node-ID oder einen ausgewählten Knoten in der Figma-Desktop-App.
Warum muss die Komponente veröffentlicht sein?
Der Skill sagt, Code Connect funktioniert nur mit Komponenten oder Komponentensets, die in einer Team-Bibliothek veröffentlicht sind.
Kann dieser Skill auch auf der Figma-Arbeitsfläche zeichnen?
Nein. Der Skill sagt, Schreibvorgänge auf der Arbeitsfläche gehören zu einem anderen Skill, figma-use.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 28k
- Platz im Ranking
- #9848
- Lizenz
- —
- Aktualisiert
- 28.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
aspnet-core
28kHilft deinem Agenten, ASP.NET-Core-Webapps zu bauen, zu prüfen oder zu aktualisieren, mit dem passenden App-Typ und aktuellen Microsoft-Richtlinien für .NET.
chatgpt-apps
28kHilft deinem Agenten, eine ChatGPT-App mit MCP-Server und Widget-Oberfläche zu bauen, inklusive Werkzeugen und lokaler Einrichtung.
cli-creator
28kHilft deinem Agenten, API-Doku oder Skripte in ein wiederverwendbares Kommandozeilenwerkzeug mit stabiler JSON-Ausgabe zu verwandeln.
define-goal
28kHilft deinem Agenten, eine vage Absicht vor Arbeitsbeginn in ein klares, messbares Ziel mit Erfolgskriterien, Umfang und Stopp-Bedingung zu verwandeln.
Ähnliche Skills
canvas
394kLässt deinen Agenten ein gehostetes visuelles Widget auf einem verbundenen Mac-Panel zeigen und das Panel danach ausblenden oder auf eine andere Seite verschieben.
control-ui
394kHilft deinem Agenten, die OpenClaw-Control-UI zu ordnen und zu prüfen, einschließlich Sitzungen, Dashboards und verbundener Gateways.
diagram-maker
394kHilft deinem Agenten, klare Diagramme als SVG, HTML oder bearbeitbare Excalidraw-Dateien zu erstellen, für Prozesse, Systemarchitekturen und Whiteboard-Skizzen.