SuperAPI AI 工具集

od-figma-migration

设计与创作

查看项目

更新于 10-16 06:51

技能介绍

用途:od-figma-migration 是 figma-migration 任务类型的默认参考流水线(scenario),用于把 Figma 设计迁移为 HTML 产物。各阶段按顺序衔接,前一阶段输出作为后一阶段输入。

主要能力与流程:默认流水线包含四个阶段。extract 阶段使用 figma-extract,写出 figma/tree.json;tokens 阶段使用 token-map,写出 token-map/colors.json 等;generate 阶段使用 file-write 与 live-artifact,读取前两阶段产物后生成 HTML;critique 阶段使用 critique-theater,可重复执行,终止条件为 critique.score>=4 || iterations>=3。

所需 GenUI 界面:该场景依赖插件层提供两个 oauth-prompt / form 界面。figma-oauth 使用 oauth.route='connector'、connectorId='figma',并持久化在项目层级,避免多轮对话重复提示授权;file-pick 为 kind='form',在首轮捕获 Figma 文件 URL,供 figma-extract 确定读取位置。当声明 od.connectors.required[].id='figma' 且连接器尚未授权时,守护进程会按隐式 oauth-prompt 规则自动派生 figma-oauth 界面。

适用场景:需要将 Figma 文件结构化提取、映射设计令牌并生成 HTML 产物的迁移工作流。

限制:资料未提供具体安装命令、收费方式、支持平台及效果数据,暂未提供。