본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)28k · #9848

figma-code-connect-components

하는 일

이 스킬은 Figma 디자인의 컴포넌트를 코드 프로젝트의 대응 컴포넌트와 연결합니다. 디자이너와 개발자가 디자인과 코드를 일관되게 유지하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓Figma 컴포넌트를 프로젝트의 구현과 연결하고 싶을 때.
  • ✓디자이너와 개발자가 같은 것을 보도록 컴포넌트를 연결하거나 매핑해 달라고 요청할 때.
  • ✓Figma 컴포넌트를 게시했고 Code Connect 매핑을 만들고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openai/skills/blob/main/skills/.curated/figma-code-connect-components/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Figma 버튼 컴포넌트를 Code Connect를 사용해서 제 코드의 버튼과 연결해 주세요.”

매주 새 스킬 5개. 읽는 데 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)
자주 묻는 질문

무엇을 제공해야 하나요?

노드 ID가 포함된 Figma 링크나, Figma 데스크톱 앱에서 선택한 노드가 필요합니다.

컴포넌트를 왜 게시해야 하나요?

Code Connect는 팀 라이브러리에 게시된 컴포넌트나 컴포넌트 세트에서만 작동한다고 설명합니다.

이 스킬로 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
라이선스
—
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬