openai/skills

figma-create-design-system-rules

把项目组件与样式约定写成可执行规则

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

figma-create-design-system-rules 是什么?

结合代码库真实组件目录、样式token与架构约定,为Figma转代码任务编写项目级Agent规则。结果保存到适合当前客户端的规则文件,而不是创建Figma变量或整套组件库。

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

适合用在

  • 已经接通 Figma MCP,希望根据当前仓库组件、token 和约定生成可供 Agent 执行的项目级 Figma 转代码规则。

这些情况不适合

  • 要在 Figma 里直接创建 token 或组件库;本 Skill 产出的是代码仓库中的规则文件。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

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

  2. 交给你正在用的 Agent

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

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

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

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

安装并检查 figma-create-design-system-rules

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

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

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

装好以后,具体怎么用?

准备哪些材料

  • Figma MCP与代码库访问,确认使用Codex、Claude Code还是Cursor,并读取已有规则文件。

会得到什么

  • 与实际工程对应的规则段落和保存位置,以及后续行为检查范围。

实际使用顺序

  1. 获取create_design_system_rules提供的基础模板,再阅读实际组件、token、导入方式和工程约定。
  2. 把占位内容换成真实路径与可操作约束,规定读取设计上下文和截图、复用组件、资产处理与视觉核对流程。
  3. 追加到相应规则文件而非覆盖旧规则,用一个实际组件任务观察是否加载和遵守,再删减冲突或过时条目。
使用示例

从一个具体任务开始

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

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用figma-create-design-system-rules为当前项目准备Codex规则草稿。读取已有AGENTS.md、组件目录和token文件,只整理Figma相关新段落,保留现有项目和footer规范。先返回草稿与证据路径,不写入规则、不改组件。
预期结果

预期得到无占位路径、与既有规则不冲突的草稿;本站未执行。

使用前先看这些限制

使用条件与边界

  • 源文关于客户端自动加载和上下文大小的描述依版本而变,保存文件后仍需核对当前客户端行为。
针对这个 Skill 的疑问

常见问题

这会帮我创建Figma组件库吗?

不会。这份来源的成果是Agent项目规则,组件库创建对应figma-generate-library。

可以直接套示例中的src/components吗?

不能,示例是占位约定。需要读取真实项目目录与导出方式后再写规则。

需要核对时再展开原文

来源原文与资料状态

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

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

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

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

来源 description(原文)

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

查看源文件章节 / Source sections
  • 原文:Create Design System Rules
  • 原文:Overview
  • 原文:Supported Rule Files
  • 原文:What Are Design System Rules?
  • 前置条件 / Prerequisites
  • 原文:When to Use This Skill
  • 原文:Required Workflow
  • 原文:Step 1: Run the Create Design System Rules Tool
  • 原文:Step 2: Analyze the Codebase
  • 原文:Step 3: Generate Project-Specific Rules
  • 原文:General Component Rules
  • 原文:Styling Rules
  • 原文:Figma MCP Integration Rules
  • 原文:Asset Handling Rules
  • 原文:Project-Specific Conventions
  • 原文:Step 4: Save Rules to the Appropriate Rule File
  • 原文:Step 5: Validate and Iterate
  • 原文:Rule Categories and Examples
  • 原文:Essential Rules (Always Include)
  • 原文:Recommended Rules (Highly Valuable)
  • 原文:Optional Rules (Project-Specific)
  • 示例 / Examples
  • 原文:Example 1: React + Tailwind Project
  • 原文:Example 2: Vue + Custom CSS Project
  • 原文:Example 3: Design System Team
  • 原文:Best Practices
  • 原文:Start Simple, Iterate
  • 原文:Be Specific
  • 原文:Make Rules Actionable
  • 原文:Use IMPORTANT for Critical Rules
原文:Overview

This skill helps you generate custom design system rules tailored to your project's specific needs. These rules guide AI coding agents to produce consistent, high-quality code when implementing Figma designs, ensuring that your team's conventions, component patterns, and architectural decisions are followed automatically.

原文:Supported Rule Files

| Agent | Rule File | |-------|-----------| | Claude Code | `CLAUDE.md` | | Codex CLI | `AGENTS.md` | | Cursor | `.cursor/rules/figma-design-system.mdc` |

原文:What Are Design System Rules?

Design system rules are project-level instructions that encode the "unwritten knowledge" of your codebase - the kind of expertise that experienced developers know and would pass on to new team members: - Which layout primitives and components to use - Where component files should be located - How components should be named and structured - What should never be hardcoded - How to handle design tokens and styling - Project-specific architectural patterns Once defined, these rules dramatically reduce repetitive prompting and ensure consistent output across all Figma implementation tasks.

前置条件 / Prerequisites

- Figma MCP server must be connected and accessible - Access to the project codebase for analysis - Understanding of your team's component conventions (or willingness to establish them)

原文:When to Use This Skill

Use this skill when: - Starting a new project that will use Figma designs - Onboarding an AI coding agent to an existing project with established patterns - Standardizing Figma-to-code workflows across your team - Updating or refining existing design system conventions - Users explicitly request: "create design system rules", "set up Figma guidelines", "customize rules for my project"

原文:Required Workflow

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

文件 SHA256:1f4d7e16ba5325a80da32e2e6bde0ea850ba9287f35f4675d51d55d2f0dc6e2a

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

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

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

查看历史简介来源

历史收录数据

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

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

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