Skip to content
Back to search

product-prototype-figma

用 Figma MCP 生成 B/C 端可编辑 UI 原型。用户说画原型、线框图、Figma 稿、后台页面、App 页面时使用。 强制嵌入 frontend-design 全流程(design-plan → Anti-Slop → page.ui.yaml → Figma → 截图自审 → 增量 patch), 配合 DESIGN.md 双轨视觉,避免 AI 默认审美与抽卡式重生成。无 spec 不生成;无 Anti-Slop PASS 不调用 use_figma。

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/pmlaowangba-lab--laowangba-pmprototype-skill/badge.svg)](/listings/pmlaowangba-lab--laowangba-pmprototype-skill)

HTML

<a href="/listings/pmlaowangba-lab--laowangba-pmprototype-skill"><img src="/api/listings/pmlaowangba-lab--laowangba-pmprototype-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 183 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. ---
  2. name: product-prototype-figma
  3. description: |
  4. 用 Figma MCP 生成 B/C 端可编辑 UI 原型。用户说画原型、线框图、Figma 稿、后台页面、App 页面时使用。
  5. 强制嵌入 frontend-design 全流程(design-plan → Anti-Slop → page.ui.yaml → Figma → 截图自审 → 增量 patch),
  6. 配合 DESIGN.md 双轨视觉,避免 AI 默认审美与抽卡式重生成。无 spec 不生成;无 Anti-Slop PASS 不调用 use_figma。
  7. inherits:
  8. - frontend-design
  9. version: "1.0"
  10. updated: "2026-07-08"
  11. ---
  12. # 产品原型生成(Figma)
  13. > 结构靠 `page.ui.yaml`,视觉靠 `DESIGN.md`(B/C 双轨),去 AI 味靠 **frontend-design 流程**。
  14. > IA 从 brief 推导,**禁止**套用任何「XX 后台标准八页」案例库。
  15. ## 启动必读(顺序固定)
  16. 1. 本文件 `SKILL.md`
  17. 2. `frontend-design` 源规则(来自宿主 Agent / Codex 环境)
  18. 3. [DESIGN.md](DESIGN.md)(路由 B/C 视觉轨)
  19. 4. [frontend-design-gates.md](references/frontend-design-gates.md)(闸门表)
  20. 按需再读:`references/ia-derivation.md`、`references/design-plan-template.md`、`references/anti-slop-checklist.md`、`references/spec-to-figma-map.md`、`references/incremental-edit.md`、`references/page-templates.yaml`。
  21. ## 触发条件
  22. - 「画原型」「出线框」「Figma 稿」「UI 图」「页面原型」
  23. - 「做个 XX 后台 / App / 小程序 原型」
  24. - 明确 `@产品原型生成` 或指向本目录
  25. ## 前置环境
  26. - Cursor 已装 Figma 插件,`plugin-figma-figma` MCP 已 OAuth
  27. - 生成前调用 `whoami` 取 `planKey`(`create_new_file` 需要)
  28. - 执行 Figma 写入前加载 `figma-use`;整页/多区块组装加载 `figma-generate-design`
  29. ## 流水线总览
  30. | Phase | 名称 | 产出 | 闸门 |
  31. | ----- | ----------- | ---------------- | ----------------------------- |
  32. | 0 | IA 推导 | `ia-draft.md` | 禁止套模板 IA;须写推导依据 |
  33. | 1 | Design Plan | `design-plan.md` | frontend-design 第一遍 |
  34. | 2 | Anti-Slop | checklist PASS | **FAIL 禁止 yaml 与 Figma** |
  35. | 3 | 结构 Spec | `*.page.ui.yaml` | `anti_slop: pass` + schema 校验 |
  36. | 4 | Figma 执行 | 云文件 Frames | 按 region 分批 `use_figma` |
  37. | 5 | 视觉再审 | screenshot 对照 | 每屏删 1 多余装饰 |
  38. | 6 | 交付 | 链接 + plan + yaml | — |
  39. | 7 | 增量修改 | patch | 禁止整页重 roll |
  40. **全程**:Phase 0→6 可连跑;Phase 2 FAIL 只回 Phase 1 改 plan,不画 Figma。
  41. ---
  42. ## Phase 0:IA 推导
  43. 读 [ia-derivation.md](references/ia-derivation.md)。从 brief 推实体 → 角色 → 任务链 → 页面,输出 [ia-draft.template.md](templates/ia-draft.template.md) 格式。
  44. 禁止:
  45. - 读取或引用任何「标准后台页面清单」固定案例
  46. - 用「一般都有工作台/列表/详情」凑页数
  47. 用户未反对 IA 草案即可进入 Phase 1;有异议则修订后重进 Phase 1。
  48. ---
  49. ## Phase 1:Design Plan(frontend-design)
  50. 按 [design-plan-template.md](references/design-plan-template.md) 写 `design-plan.md`,必填:
  51. 1. Subject(产品、受众、单屏任务)
  52. 2. Tone + `surface: b_end | c_end`(路由规则见 [DESIGN.md](DESIGN.md))
  53. 3. Token(色/字/间距/圆角,从 DESIGN 对应轨复制,可微调须说明)
  54. 4. Layout(每页 ASCII 线框)
  55. 5. Signature(全项目 1 个记忆点,服务当前 brief)
  56. 6. Differentiation(相对 AI 默认模板差在哪,一句话)
  57. `b_end` 禁止选 frontend-design 的 extreme 美学;`c_end` 用 `refined-consumer`,仍禁 landing 炫技。
  58. ---
  59. ## Phase 2:Anti-Slop(frontend-design 第二遍)
  60. 逐项勾选 [anti-slop-checklist.md](references/anti-slop-checklist.md)。在 `design-plan.md` 末尾写:
  61. ```markdown
  62. ## Anti-Slop Review
  63. - surface: b_end | c_end
  64. - 命中项: ...
  65. - 修订: ...
  66. - 结论: PASS | FAIL
  67. ```
  68. 仅 `PASS` 可进入 Phase 3。把 `anti_slop: pass` 写入各 `page.ui.yaml` 的 `meta`。
  69. ---
  70. ## Phase 3:page.ui.yaml
  71. - 模板:[page.ui.template.yaml](templates/page.ui.template.yaml)
  72. - 校验:[page.ui.schema.json](schema/page.ui.schema.json)
  73. - 页型约束:[page-templates.yaml](references/page-templates.yaml)
  74. 每页一文件,命名 `{page-id}.page.ui.yaml`。`meta.surface` 与 design-plan 一致;`regions` 与 plan ASCII 一一对应。
  75. 落盘:
  76. - 项目明确 → 项目 `assets/` 或用户指定目录
  77. - 不明确 → `99-收件箱/待整理/产品原型/{项目名}/`
  78. ---
  79. ## Phase 4:Figma 执行
  80. 读 [spec-to-figma-map.md](references/spec-to-figma-map.md)。
  81. 1. 无 `file_key` → `create_new_file`(需 `planKey`)
  82. 2. 共享 shell(侧栏/顶栏/TabBar)先画一版,各页引用同一结构模式
  83. 3. **按 region 分批** `use_figma`,每批对照 yaml + plan
  84. 4. 颜色/字号/间距只来自 `design-plan.md` + DESIGN 对应轨
  85. 5. 字体:中文 `PingFang SC` 或 `思源黑体`,数据列 `SF Mono`;**禁止 Inter**
  86. 6. 有设计系统 → `search_design_system` 填 `catalog_map`;无则 primitive
  87. ---
  88. ## Phase 5:视觉再审
  89. 每屏 `get_screenshot`:
  90. 1. 对照 `design-plan.md` 该页 ASCII
  91. 2. **香奈儿法则**:删 1 个多余装饰
  92. 3. 仍像 AI 默认 dashboard/App → patch,不整页重 roll
  93. ---
  94. ## Phase 6:交付
  95. 交给用户:
  96. 1. **Figma 链接**(主交付)
  97. 2. `design-plan.md`
  98. 3. `ia-draft.md` + `*.page.ui.yaml`
  99. 4. 页面清单表:帧名、职责、根 nodeId(便于 Phase 7)
  100. 5. Anti-Slop 结论摘要
  101. ---
  102. ## Phase 7:增量修改
  103. 读 [incremental-edit.md](references/incremental-edit.md)。
  104. - 结构变更 → 改 yaml + patch 对应 node
  105. - 视觉变更 → 先改 design-plan 相关 token → 视情况重跑 Anti-Slop → patch
  106. - **禁止**收到修改意见后无 plan/yaml 更新直接整文件重生成
  107. ---
  108. ## 红线
  109. - 无 `design-plan.md` → 禁止 Figma
  110. - Anti-Slop 非 PASS → 禁止 Figma
  111. - `meta.anti_slop` 非 `pass` → 禁止 Figma
  112. - 产品复盘 Skill 所需 UI 截图须用户提供,本 Skill 不冒充真机截图
  113. - 不 `git push`、不公开发布
  114. ## 与其他 Skill
  115. | Skill | 关系 |
  116. |-------|------|
  117. | `frontend-design` | 继承流程与 Nevers |
  118. | `figma-use` / `figma-generate-design` | Figma 执行层 |
  119. | 产品复盘文档生成 | 复盘截图不由本 Skill 伪造 |
  120. ## 文件索引
  121. | 文件 | 用途 |
  122. |------|------|
  123. | [DESIGN.md](DESIGN.md) | B/C 路由 + 摘要 |
  124. | [design-shared.md](references/design-shared.md) | 共用 nevers、a11y |
  125. | [design-b-end.md](references/design-b-end.md) | B 端 token |
  126. | [design-c-end.md](references/design-c-end.md) | C 端 token |
README.md · README · 85 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Laowangba PM Prototype Skill
  2. 一个用于生成 B/C 端产品原型的 Codex Skill,重点面向 Figma 可编辑 UI 原型。
  3. 它把原型生成拆成稳定流程:
  4. - IA 推导:从 brief 推实体、角色、任务链和页面,不套固定后台页面清单。
  5. - Design Plan:先确定 subject、tone、token、layout、signature、differentiation。
  6. - Anti-Slop Review:生成 Figma 前先检查是否落入常见 AI 默认审美。
  7. - `page.ui.yaml`:用结构化页面规格承接后续增量修改。
  8. - Figma 执行:按 region 分批生成可编辑 Frame。
  9. ## Repository Structure
  10. ```text
  11. .
  12. ├── SKILL.md
  13. ├── DESIGN.md
  14. ├── references/
  15. ├── schema/
  16. └── templates/
  17. ```
  18. ## Requirements
  19. - Codex / Agent 环境支持 Skill 加载。
  20. - 如需写入 Figma,需要已配置 Figma MCP / Figma 插件,并可用 `figma-use`、`figma-generate-design`、`figma-create-new-file` 等能力。
  21. - 本 Skill 继承 `frontend-design` 的设计思路;如果宿主环境没有该 Skill,可按 `DESIGN.md` 与 `references/frontend-design-gates.md` 执行同等检查。
  22. ## Usage
  23. 把本仓库作为 Skill 放入你的 Codex skills 目录,然后在任务里指定:
  24. ```text
  25. 使用产品原型生成 Skill,生成一个会员系统前台页面原型
  26. ```
  27. 典型产出:
  28. - `ia-draft.md`
  29. - `design-plan.md`
  30. - `{page-id}.page.ui.yaml`
  31. - Figma 文件链接与 Frame nodeId
  32. ## Examples
  33. > 注意:这里生成的是产品原型图,还达不到最终 UI 稿的程度。后续如果要用于展示、投放或正式交付,建议再次使用 gptimage2 或 Stitch 生成更完整、更精致的 UI 图。
  34. >
  35. > 产品经理在工作协作时,不建议直接拿这个当 UI 图交付给设计师;它更适合作为需求沟通、信息架构、页面流程和布局意图的原型材料。设计师会恨你的。
  36. ### Member System Frontend
  37. ![Member System Frontend prototype](examples/member-system-frontend/preview.png)
  38. 会员系统前台页面原型案例,包含 IA、Design Plan 和 5 个 `page.ui.yaml` 页面规格。
  39. [案例目录](examples/member-system-frontend/) · [IA](examples/member-system-frontend/ia-draft.md) · [Design Plan](examples/member-system-frontend/design-plan.md)
  40. ### Inventory System Backend
  41. ![Inventory System Overview prototype](examples/inventory-system-backend/inventory-overview.png)
  42. ![Inventory System Inbound Management prototype](examples/inventory-system-backend/inbound-management.png)
  43. 库存系统 B 端原型截图案例,展示库存总览、预警优先级队列、库存动作流、入库管理筛选和表格结构。
  44. [案例目录](examples/inventory-system-backend/)
  45. ### AI Price Comparison Frontend
  46. AI 比价前台页面原型案例,包含淘宝式 C 端视觉、IA、Design Plan、5 个 `page.ui.yaml` 页面规格和本地 HTML 预览。
  47. [案例目录](examples/ai-price-comparison-frontend/) · [IA](examples/ai-price-comparison-frontend/ia-draft.md) · [Design Plan](examples/ai-price-comparison-frontend/design-plan.md) · [HTML Preview](examples/ai-price-comparison-frontend/index.html)
  48. ## Design Principles
  49. - 先推导 IA,再画页面。
  50. - B 端和 C 端使用不同视觉轨道。
  51. - 无 `design-plan.md` 不生成 Figma。
  52. - Anti-Slop 非 PASS 不生成 Figma。
  53. - 增量修改先更新 plan / yaml,再 patch Figma。
  54. ## License
  55. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.