figma-generate-library
它能做什么
这个工具可以利用你已有的代码,在 Figma 中创建或更新设计系统组件库。它能确保 Figma 中的设计始终与你项目中已交付的内容保持一致。
适用场景
- ✓当你想根据代码在 Figma 中创建一个新的组件库时。
- ✓当你需要让代码组件与 Figma 保持同步时。
- ✓为了让 Figma 始终作为“唯一可信来源”,并及时更新已发布的组件。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/figma-generate-library/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“根据我的代码组件创建一个 Figma 组件库。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析你的组件代码,并将其转换为 Figma 中的视觉元素。它能确保 Figma 中的内容准确反映代码中的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
figma-generate-library
Curated from Figma's MCP server guide.
What it does
Build or update a professional-grade design system library in Figma from a codebase. Useful for keeping the Figma source of truth in sync with shipped components.
Source
- Upstream: https://github.com/figma/skills
- Category:
figma
How to use
This catalogue entry advertises the skill in OpenDesign so the agent discovers it during planning. To run the full upstream workflow with its original assets, scripts, and references, install the upstream bundle into your active agent's skills directory:
# Inspect the upstream README for exact paths
open https://github.com/figma/skills
Then ask the agent to invoke this skill by name (figma-generate-library) or with
one of the trigger phrases listed in this skill's frontmatter.
常见问题
Figma 中的设计系统组件库是什么?
它是一组有组织的视觉组件(如按钮、输入框等),可以在多个项目中重复使用,从而保持视觉上的一致性。
为什么要让 Figma 与代码保持同步?
这能确保设计师和开发者使用的是相同版本的组件,避免出错和返工。
使用这个工具需要会编程吗?
不需要。这个工具是为设计系统管理者设计的,即使他们不会写代码也能使用。你只需要准备好组件代码即可。
详情
作者的原始描述
Build or update a professional-grade design system library in Figma from a codebase. Useful for keeping the Figma source of truth in sync with shipped components.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1169
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …