openai/skills

figma-code-connect-components

把设计组件准确连到现有代码组件

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

figma-code-connect-components 是什么?

将Figma已发布组件与仓库中的真实组件建立Code Connect映射。它先查询未连接组件,再比较代码的用途、属性和结构,向用户展示候选,确认后只写入选中的映射。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • Figma 团队库中已有已发布组件,代码仓库也有候选实现,想核对两者并创建 Code Connect 映射。

这些情况不适合

  • 要实现页面代码或通过 Plugin API 直接修改 Figma 画布;来源把前者交给设计实现流程、后者交给 figma-use。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 figma-code-connect-components,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 figma-code-connect-components

请在 Codex 的当前工作环境中安装并检查 figma-code-connect-components 这个 Skill。

项目身份:openai/skills / figma-code-connect-components
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/figma-code-connect-components/SKILL.md
已定位的源文件:skills/.curated/figma-code-connect-components/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • Figma MCP、含node-id的链接或桌面选中对象、可读取代码库;组件已发布到团队库且账号具备所需Code Connect权限。

会得到什么

  • 设计节点与代码路径、导出名和框架标签的映射及返回状态。

实际使用顺序

  1. 调用get_code_connect_suggestions获取未映射对象;远程URL中1-2形式的node-id按工具要求转1:2。
  2. 搜索并读取代码候选,比较export、props、默认值和用途;同名不等于同一组件,没有精确匹配时说明差异。
  3. 展示候选并等待选择,随后send_code_connect_mappings只提交已接受项,逐项汇报成功或权限/组件未发布等失败。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用figma-code-connect-components检查我提供的Button节点与仓库组件是否匹配。先获取未连接组件,读取Button与LinkButton的props差异,列出建议和路径。本次只给候选,不发送映射,不发布团队组件。
预期结果

预期得到可复核的候选关系;本站未创建Code Connect。

使用前先看这些限制

使用条件与边界

  • 源文件列的套餐要求是绑定版本说明,当前权限以Figma账号与官方资料核对;创建映射不会自动同步代码变更或实现缺失组件。
针对这个 Skill 的疑问

常见问题

普通Frame能直接映射吗?

来源要求已发布的组件或组件集,普通画布对象和未发布组件不能只靠一个链接获得映射能力。

映射后设计与代码会自动互改吗?

本流程建立对应关系,并未实现自动改写另一端;不能把连接描述成完整双向自动同步。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/figma-code-connect-components/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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`.

查看源文件章节 / Source sections
  • 原文:Code Connect Components
  • 原文:Overview
  • 原文:Skill Boundaries
  • 前置条件 / Prerequisites
  • 原文:Required Workflow
  • 原文:Step 1: Get Code Connect Suggestions
  • 原文:Option A: Using `figma-desktop` MCP (no URL provided)
  • 原文:Option B: When a Figma URL is provided
  • 原文:Step 2: Scan Codebase for Matching Components
  • 原文:Step 3: Present Matches to User
  • 原文:Step 4: Create Code Connect Mappings
  • 示例 / Examples
  • 原文:Example 1: Connecting a Button Component
  • 原文:Example 2: Multiple Components with Partial Selection
  • 原文:Example 3: Component Needs Creation
  • 原文:Best Practices
  • 原文:Proactive Component Discovery
  • 原文:Accurate Structure Matching
  • 原文:Clear Communication
  • 原文:Handle Ambiguity
  • 原文:Graceful Degradation
  • 原文:Common Issues and Solutions
  • 原文:Issue: "No published components found in this selection"
  • 原文:Issue: "Code Connect is only available on Organization and Enterprise plans"
  • 原文:Issue: No matching component found in codebase
  • 原文:Issue: "Published component not found" (CODE_CONNECT_ASSET_NOT_FOUND)
  • 原文:Issue: "Component is already mapped to code" (CODE_CONNECT_MAPPING_ALREADY_EXISTS)
  • 原文:Issue: "Insufficient permissions to create mapping" (CODE_CONNECT_INSUFFICIENT_PERMISSIONS)
  • 原文:Issue: Code Connect mapping fails with URL errors
  • 原文:Issue: Multiple similar components found
原文: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](../figma-use/SKILL.md). - If the task is building or updating a full-page screen in Figma from code or a description, switch to [figma-generate-design](../figma-generate-design/SKILL.md). - If the task is implementing product code from Figma, switch to [figma-implement-design](../figma-implement-design/SKILL.md).

前置条件 / 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.

文件 SHA256:0f19edad8aed28063a3517c419fbcbef5421d024f189fd02a17fae25093ec69d

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

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`.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/figma-code-connect-components/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源