मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)28k · #9848

figma-code-connect-components

यह क्या करती है

यह स्किल Figma डिज़ाइन के कंपोनेंट्स को आपके कोड के मेल खाते कंपोनेंट्स से जोड़ती है। यह उन डिज़ाइनरों और डेवलपरों के लिए है जो चाहते हैं कि डिज़ाइन और कोड एक जैसे रहें।

कब इस्तेमाल करें

  • ✓जब आप किसी Figma कंपोनेंट को अपने कोडबेस में उसके इम्प्लीमेंटेशन से जोड़ना चाहें।
  • ✓जब आप कंपोनेंट को मैप या कनेक्ट करने को कहें ताकि डिज़ाइनर और डेवलपर एक ही चीज़ देखें।
  • ✓जब कोई Figma कंपोनेंट प्रकाशित हो और आपको उसकी Code Connect मैपिंग बनानी हो।

Skill का लिंक

https://github.com/openai/skills/blob/main/skills/.curated/figma-code-connect-components/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/openai/skills/blob/main/skills/.curated/figma-code-connect-components/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस Figma button कंपोनेंट को Code Connect से मेरे कोड के मेल खाते button से जोड़िए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट Figma में कंपोनेंट की संरचना पढ़ता है, कोडबेस में मेल खाता कंपोनेंट खोजता है, और फिर Code Connect के ज़रिए मैपिंग Figma को भेजता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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_mappings workflows.
  • 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-id parameter. Code Connect mapping will fail without it.
  • OR when using figma-desktop MCP: 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-2 from URL, then convert to 1:2 for 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:

  1. Search for component files with matching names
  2. Read candidate files to check structure and props
  3. Compare the code component's props with the Figma component properties returned in Step 1
  4. Detect the programming language (TypeScript, JavaScript)
अक्सर पूछे जाने वाले सवाल

मुझे क्या देना होगा?

एक Figma लिंक जिसमें node ID हो, या Figma डेस्कटॉप ऐप में चुना गया node।

कंपोनेंट प्रकाशित क्यों होना चाहिए?

स्किल कहती है कि Code Connect सिर्फ़ टीम लाइब्रेरी में प्रकाशित कंपोनेंट या component sets के साथ काम करता है।

क्या यह स्किल Figma कैनवास पर भी लिख सकती है?

नहीं। स्किल कहती है कि कैनवास पर लिखना एक अलग स्किल figma-use का काम है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
28k
रैंकिंग में स्थान
#9848
लाइसेंस
—
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

aspnet-core

28k

यह आपके एजेंट को ASP.NET Core वेब ऐप बनाने, जांचने या अपग्रेड करने में मदद करती है, सही ऐप प्रकार चुनकर और .NET के लिए Microsoft के मौजूदा दिशानिर्देश मानकर।

कोडिंगAPI और सर्वर (backend)

chatgpt-apps

28k

यह आपके एजेंट को ChatGPT ऐप बनाने में मदद करती है, जो MCP सर्वर को widget UI के साथ जोड़ता है, टूल डिज़ाइन, UI resources, metadata और लोकल सेटअप सहित।

AI और एजेंटकनेक्टर (MCP)

cli-creator

28k

यह आपके एजेंट को API दस्तावेज़ या स्क्रिप्ट से ऐसा कमांड-लाइन टूल बनाने में मदद करती है, जो किसी भी फ़ोल्डर से चले और स्थिर JSON लौटाए।

कोडिंगसामान्य कोडिंग

define-goal

28k

यह आपके एजेंट को धुंधले इरादे को सफलता के मानदंड और दायरे वाले साफ़ लक्ष्य में बदलने में मदद करती है, काम शुरू होने से पहले।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills