openai/skills

figma-generate-design

复用现有设计系统,在Figma逐段组装页面

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

figma-generate-design 是什么?

把应用代码或页面描述在Figma中组装成完整屏幕,优先复用已发布设计系统的组件实例、变量和样式。先建页面容器,再一段段构造并检查;成果在Figma画布,而非产品代码。

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

适合用在

  • 已有 Web 应用页面或明确界面描述,希望在 Figma 中用团队设计系统组件、变量和样式逐段组装一个屏幕。

这些情况不适合

  • 交付物是仓库代码,或需要更新非 Web 应用的既有 Figma 屏幕;来源为这些任务指定了其他工作流。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

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

  2. 交给你正在用的 Agent

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

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

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

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

安装并检查 figma-generate-design

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

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

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

装好以后,具体怎么用?

准备哪些材料

  • Figma MCP、figma-use、目标文件及可访问的设计系统组件,源代码或具体页面说明。

会得到什么

  • 目标Figma屏幕、受影响节点ID与局部/整页核对记录。

实际使用顺序

  1. 读页面结构与组件默认属性,先检查已有屏幕使用的实例和变量,再搜索团队库;本地变量查询为空不能推断远程库不存在。
  2. 先创建整体wrapper并返回ID,再在其中按段建立布局和组件实例,绑定变量与样式,使用真实TEXT属性覆写占位文案。
  3. 每段和整页截图检查裁切、重叠、变体和文本;更新旧屏幕只改相关节点,不重建整页或删除其他作品。
使用示例

从一个具体任务开始

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

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用figma-generate-design与figma-use,根据我提供的定价页代码在指定Figma文件规划页面。先读取页面、已有Card/Button实例和库变量,列出wrapper、标题和价格卡三个段落的组件映射;本次只做只读计划,不写画布、不删除旧设计。
预期结果

预期得到与源代码和现有库一致的页面组装计划;本站未执行。

使用前先看这些限制

使用条件与边界

  • 复用设计系统实例与网页截图捕获承担不同职责;临时参考输出若需清理,只处理确认由本次创建的对象。
针对这个 Skill 的疑问

常见问题

它会从Figma生成网站代码吗?

方向相反。此来源将代码或描述变成Figma屏幕,设计转代码应使用figma-implement-design。

找不到本地变量就创建新的可以吗?

先检查远程或已发布库。来源明确说明本地查询不包含所有库变量,不能据空结果重复造token。

需要核对时再展开原文

来源原文与资料状态

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

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

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

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

来源 description(原文)

Use this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma', 'create in Figma from code', 'push page to Figma', 'take this app/page and build it in Figma', 'create a screen', 'build a landing page in Figma', 'update the Figma screen to match code'. This is the preferred workflow skill whenever the user wants to build or update a full page, screen, or view in Figma from code or a description. Discovers design system components, variables, and styles via search_design_system, imports them, and assembles screens incrementally section-by-section using design system tokens instead of hardcoded values.

查看源文件章节 / Source sections
  • 原文:Build / Update Screens from Design System
  • 原文:Skill Boundaries
  • 前置条件 / Prerequisites
  • 原文:Parallel Workflow with generate_figma_design (Web Apps Only)
  • 原文:Required Workflow
  • 原文:Step 1: Understand the Screen
  • 原文:Step 2: Discover Design System — Components, Variables, and Styles
  • 原文:2a: Discover components
  • 原文:2b: Discover variables (colors, spacing, radii)
  • 原文:2c: Discover styles (text styles, effect styles)
  • 原文:Step 3: Create the Page Wrapper Frame First
  • 原文:Step 4: Build Each Section Inside the Wrapper
  • 原文:Override instance text with setProperties()
  • 原文:Read source code defaults carefully
  • 原文:What to build manually vs. import from design system
  • 原文:Step 5: Validate the Full Screen
  • 原文:Step 6: Updating an Existing Screen
  • 原文:Reference Docs
  • 原文:Error Recovery
  • 原文:Best Practices
原文:Build / Update Screens from Design System

Use this skill to create or update full-page screens in Figma by **reusing the published design system** — components, variables, and styles — rather than drawing primitives with hardcoded values. The key insight: the Figma file likely has a published design system with components, color/spacing variables, and text/effect styles that correspond to the codebase's UI components and tokens. Find and use those instead of drawing boxes with hex colors. **MANDATORY**: You MUST also load [figma-use](../figma-use/SKILL.md) before any `use_figma` call. That skill contains critical rules (color ranges, font loading, etc.) that apply to every script you write. **Always pass `skillNames: "figma-generate-design"` when calling `use_figma` as part of this skill.** This is a logging parameter — it does not affect execution.

原文:Skill Boundaries

- Use this skill when the deliverable is a **Figma screen** (new or updated) composed of design system component instances. - If the user wants to generate **code from a Figma design**, switch to [figma-implement-design](../figma-implement-design/SKILL.md). - If the user wants to create **new reusable components or variants**, use [figma-use](../figma-use/SKILL.md) directly. - If the user wants to write **Code Connect mappings**, switch to [figma-code-connect-components](../figma-code-connect-components/SKILL.md).

前置条件 / Prerequisites

- Figma MCP server must be connected - The target Figma file must have a published design system with components (or access to a team library) - User should provide either: - A Figma file URL / file key to work in - Or context about which file to target (the agent can discover pages) - Source code or description of the screen to build/update

原文:Parallel Workflow with generate_figma_design (Web Apps Only)

When building a screen from a **web app** that can be rendered in a browser, the best results come from running both approaches in parallel: 1. **In parallel:** - Start building the screen using this skill's workflow (use_figma + design system components) - Run `generate_figma_design` to capture a pixel-perfect screenshot of the running web app 2. **Once both complete:** Update the use_figma output to match the pixel-perfect layout from the `generate_figma_design` capture. The capture provides the exact spacing, sizing, and visual treatment to aim for, while your use_figma output has proper component instances linked to the design system. 3. **Once confirmed looking good:** Delete the `generate_figma_design` output — it was only used as a visual reference. This combines the best of both: `generate_figma_design` gives pixel-perfect layout accuracy, while use_figma gives proper design system component instances that stay linked and updatable. **This workflow only applies to web apps** where `generate_figma_design` can capture the running page. For non-web apps (iOS, Android, etc.) or when updating existing screens, use the standard workflow below.

原文:Required Workflow

**Follow these steps in order. Do not skip steps.**

原文:Step 1: Understand the Screen

Before touching Figma, understand what you're building: 1. If building from code, read the relevant source files to understand the page structure, sections, and which components are used. 2. Identify the major sections of the screen (e.g., Header, Hero, Content Panels, Pricing Grid, FAQ Accordion, Footer). 3. For each section, list the UI components involved (buttons, inputs, cards, navigation pills, accordions, etc.).

文件 SHA256:45d2b97103bdeb31cb2744fca2c79bcefb659c88faca626bea30ec2f9342dcc9

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

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

Use this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma', 'create in Figma from code', 'push page to Figma', 'take this app/page and build it in Figma', 'create a screen', 'build a landing page in Figma', 'update the Figma screen to match code'. This is the preferred workflow skill whenever the user wants to build or update a full page, screen, or view in Figma from code or a description. Discovers design system components, variables, and styles via search_design_system, imports them, and assembles screens incrementally section-by-section using design system tokens instead of hardcoded values.

查看历史简介来源

历史收录数据

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

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

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