openai/skills

figmaopenai/skills

从 Figma 节点读取设计上下文并落到现有代码

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

figma 是什么?

通过Figma MCP读取指定设计节点的结构、截图和素材,再按项目现有框架、组件与设计token实现页面。MCP生成的React/Tailwind表示只是设计输入,不应直接当成项目最终代码。

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

适合用在

  • 任务给出了 Figma 文件链接或节点 ID,需要读取设计上下文、截图、变量或素材,并在当前代码库实现对应界面。

这些情况不适合

  • 没有 Figma 文件、节点或 MCP 访问条件,却要求凭空还原特定设计;来源要求使用真实设计上下文和素材。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

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

  2. 交给你正在用的 Agent

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

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

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

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

安装并检查 figma

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

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

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

装好以后,具体怎么用?

准备哪些材料

  • 提供精确Frame/Layer链接或node ID,连接有权限的Figma MCP,并能读取目标项目;完整目录保留references中的配置和工具指南。

会得到什么

  • 与所选设计节点对应的前端实现,以及实际视觉/行为核对结果。

实际使用顺序

  1. 先get_design_context读取目标节点;截断或过大时用get_metadata找节点地图,再缩小请求。
  2. 取得同一变体截图后再下载素材和动手实现;返回localhost素材时使用真实资源,不自行找占位图或加新图标包。
  3. 沿用项目路由、状态、字体、颜色和已有组件,视觉与行为对照Figma截图逐项核验。
使用示例

从一个具体任务开始

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

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用figma实现我给的Skills卡片Frame链接。先读该node的design context和截图,再复用项目已有按钮、颜色token和图标素材,按现有HTML/CSS结构实现;不要因为MCP示例是React就改整个项目框架。
预期结果

预期实现与准确节点对应,差异与未验证交互分别列出;本例未运行。

使用前先看这些限制

使用条件与边界

  • 没有节点权限或只给文件首页时,不能猜测想实现的变体。
  • 安装Skill只是提供流程,Figma MCP连接与账号授权仍需独立存在。
针对这个 Skill 的疑问

常见问题

为什么还要截图,已有代码结构不够吗?

结构能说明层级与属性,截图用于确认具体变体的视觉结果;来源要求两者都取得后才开始实施。

需要核对时再展开原文

来源原文与资料状态

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

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

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

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

来源 description(原文)

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

查看源文件章节 / Source sections
  • 原文:Figma MCP
  • 原文:Figma MCP Integration Rules
  • 原文:Required flow (do not skip)
  • 原文:Implementation rules
  • 原文:Asset handling
  • 原文:Link-based prompting
  • 原文:References
原文:Figma MCP

Use the Figma MCP server for Figma-driven implementation. For setup and debugging details (env vars, config, verification), see `references/figma-mcp-config.md`.

原文:Figma MCP Integration Rules

These rules define how to translate Figma inputs into code for this project and must be followed for every Figma-driven change.

原文:Required flow (do not skip)

1. Run get_design_context first to fetch the structured representation for the exact node(s). 2. If the response is too large or truncated, run get_metadata to get the high-level node map and then re-fetch only the required node(s) with get_design_context. 3. Run get_screenshot for a visual reference of the node variant being implemented. 4. Only after you have both get_design_context and get_screenshot, download any assets needed and start implementation. 5. Translate the output (usually React + Tailwind) into this project's conventions, styles and framework. Reuse the project's color tokens, components, and typography wherever possible. 6. Validate against Figma for 1:1 look and behavior before marking complete.

原文:Implementation rules

- Treat the Figma MCP output (React + Tailwind) as a representation of design and behavior, not as final code style. - Replace Tailwind utility classes with the project's preferred utilities/design-system tokens when applicable. - Reuse existing components (e.g., buttons, inputs, typography, icon wrappers) instead of duplicating functionality. - Use the project's color system, typography scale, and spacing tokens consistently. - Respect existing routing, state management, and data-fetch patterns already adopted in the repo. - Strive for 1:1 visual parity with the Figma design. When conflicts arise, prefer design-system tokens and adjust spacing or sizes minimally to match visuals. - Validate the final UI against the Figma screenshot for both look and behavior.

原文:Asset handling

- The Figma MCP Server provides an assets endpoint which can serve image and SVG assets. - IMPORTANT: If the Figma MCP Server returns a localhost source for an image or an SVG, use that image or SVG source directly. - IMPORTANT: DO NOT import/add new icon packages, all the assets should be in the Figma payload. - IMPORTANT: do NOT use or create placeholders if a localhost source is provided.

原文:Link-based prompting

- The server is link-based: copy the Figma frame/layer link and give that URL to the MCP client when asking for implementation help. - The client cannot browse the URL but extracts the node ID from the link; always ensure the link points to the exact node/variant you want.

文件 SHA256:5b11f7c8d0ce4c047b401323e7b8fe6559bd3162a3397bf5248634a5444609d5

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

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

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/figma/SKILL.md

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

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