od-figma-migration
它能做什么
这个工具可以帮你把 Figma 文件里的设计转换成网站。它会从 Figma 中读取你的设计信息,再把这些信息转换成网站的代码。
适用场景
- ✓当你想把 Figma 设计变成网站时。
- ✓当你要把设计项目从 Figma 迁移到网页上时。
- ✓当你想根据 Figma 设计快速做一个网站原型时。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/scenarios/od-figma-migration/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这个 Figma 设计做成一个网站。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先从你的 Figma 设计中提取细节信息。然后,它会把这些信息整理好,并用它们生成网站的代码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
od-figma-migration (scenario)
Spec §1 / §10.1 / §21.3.1 / §23.3.3: the canonical figma-migration
flow. The pipeline is sequenced so each stage's output is the next
stage's input — figma-extract writes figma/tree.json,
token-map writes token-map/colors.json (etc.), and generate
reads both before producing the HTML artifact.
Default pipeline
{
"stages": [
{ "id": "extract", "atoms": ["figma-extract"] },
{ "id": "tokens", "atoms": ["token-map"] },
{ "id": "generate", "atoms": ["file-write", "live-artifact"] },
{
"id": "critique", "atoms": ["critique-theater"],
"repeat": true,
"until": "critique.score>=4 || iterations>=3"
}
]
}
Required GenUI surfaces
The scenario expects two oauth-prompt / form surfaces from the
plugin layer:
figma-oauth—oauth.route='connector',connectorId='figma', persists at the project tier so multi-conversation work doesn't re-prompt.file-pick—kind='form', captures the Figma file URL on the first turn sofigma-extractknows where to read.
The daemon auto-derives the figma-oauth surface when
od.connectors.required[].id='figma' is declared and the connector
isn't yet authorised (spec §10.3.1 implicit oauth-prompt rule).
常见问题
什么是“流水线”(pipeline)?
它是工具完成任务时依次执行的一系列步骤,就像一条装配线。
什么是“阶段”(stages)?
这是流水线中的主要步骤,每个阶段负责完成其中一部分工作。
为什么工具要求连接 Figma?
它需要访问你的 Figma 文件,才能提取其中的设计信息。
详情
作者的原始描述
Default reference pipeline for the figma-migration taskKind — figma-extract → token-map → generate → critique.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1067
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …