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.
Badge for your README
Markdown
[](/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
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.
- ---
- name: product-prototype-figma
- description: |
- 用 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。
- inherits:
- - frontend-design
- version: "1.0"
- updated: "2026-07-08"
- ---
- # 产品原型生成(Figma)
- > 结构靠 `page.ui.yaml`,视觉靠 `DESIGN.md`(B/C 双轨),去 AI 味靠 **frontend-design 流程**。
- > IA 从 brief 推导,**禁止**套用任何「XX 后台标准八页」案例库。
- ## 启动必读(顺序固定)
- 1. 本文件 `SKILL.md`
- 2. `frontend-design` 源规则(来自宿主 Agent / Codex 环境)
- 3. [DESIGN.md](DESIGN.md)(路由 B/C 视觉轨)
- 4. [frontend-design-gates.md](references/frontend-design-gates.md)(闸门表)
- 按需再读:`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`。
- ## 触发条件
- - 「画原型」「出线框」「Figma 稿」「UI 图」「页面原型」
- - 「做个 XX 后台 / App / 小程序 原型」
- - 明确 `@产品原型生成` 或指向本目录
- ## 前置环境
- - Cursor 已装 Figma 插件,`plugin-figma-figma` MCP 已 OAuth
- - 生成前调用 `whoami` 取 `planKey`(`create_new_file` 需要)
- - 执行 Figma 写入前加载 `figma-use`;整页/多区块组装加载 `figma-generate-design`
- ## 流水线总览
- | Phase | 名称 | 产出 | 闸门 |
- | ----- | ----------- | ---------------- | ----------------------------- |
- | 0 | IA 推导 | `ia-draft.md` | 禁止套模板 IA;须写推导依据 |
- | 1 | Design Plan | `design-plan.md` | frontend-design 第一遍 |
- | 2 | Anti-Slop | checklist PASS | **FAIL 禁止 yaml 与 Figma** |
- | 3 | 结构 Spec | `*.page.ui.yaml` | `anti_slop: pass` + schema 校验 |
- | 4 | Figma 执行 | 云文件 Frames | 按 region 分批 `use_figma` |
- | 5 | 视觉再审 | screenshot 对照 | 每屏删 1 多余装饰 |
- | 6 | 交付 | 链接 + plan + yaml | — |
- | 7 | 增量修改 | patch | 禁止整页重 roll |
- **全程**:Phase 0→6 可连跑;Phase 2 FAIL 只回 Phase 1 改 plan,不画 Figma。
- ---
- ## Phase 0:IA 推导
- 读 [ia-derivation.md](references/ia-derivation.md)。从 brief 推实体 → 角色 → 任务链 → 页面,输出 [ia-draft.template.md](templates/ia-draft.template.md) 格式。
- 禁止:
- - 读取或引用任何「标准后台页面清单」固定案例
- - 用「一般都有工作台/列表/详情」凑页数
- 用户未反对 IA 草案即可进入 Phase 1;有异议则修订后重进 Phase 1。
- ---
- ## Phase 1:Design Plan(frontend-design)
- 按 [design-plan-template.md](references/design-plan-template.md) 写 `design-plan.md`,必填:
- 1. Subject(产品、受众、单屏任务)
- 2. Tone + `surface: b_end | c_end`(路由规则见 [DESIGN.md](DESIGN.md))
- 3. Token(色/字/间距/圆角,从 DESIGN 对应轨复制,可微调须说明)
- 4. Layout(每页 ASCII 线框)
- 5. Signature(全项目 1 个记忆点,服务当前 brief)
- 6. Differentiation(相对 AI 默认模板差在哪,一句话)
- `b_end` 禁止选 frontend-design 的 extreme 美学;`c_end` 用 `refined-consumer`,仍禁 landing 炫技。
- ---
- ## Phase 2:Anti-Slop(frontend-design 第二遍)
- 逐项勾选 [anti-slop-checklist.md](references/anti-slop-checklist.md)。在 `design-plan.md` 末尾写:
- ```markdown
- ## Anti-Slop Review
- - surface: b_end | c_end
- - 命中项: ...
- - 修订: ...
- - 结论: PASS | FAIL
- ```
- 仅 `PASS` 可进入 Phase 3。把 `anti_slop: pass` 写入各 `page.ui.yaml` 的 `meta`。
- ---
- ## Phase 3:page.ui.yaml
- - 模板:[page.ui.template.yaml](templates/page.ui.template.yaml)
- - 校验:[page.ui.schema.json](schema/page.ui.schema.json)
- - 页型约束:[page-templates.yaml](references/page-templates.yaml)
- 每页一文件,命名 `{page-id}.page.ui.yaml`。`meta.surface` 与 design-plan 一致;`regions` 与 plan ASCII 一一对应。
- 落盘:
- - 项目明确 → 项目 `assets/` 或用户指定目录
- - 不明确 → `99-收件箱/待整理/产品原型/{项目名}/`
- ---
- ## Phase 4:Figma 执行
- 读 [spec-to-figma-map.md](references/spec-to-figma-map.md)。
- 1. 无 `file_key` → `create_new_file`(需 `planKey`)
- 2. 共享 shell(侧栏/顶栏/TabBar)先画一版,各页引用同一结构模式
- 3. **按 region 分批** `use_figma`,每批对照 yaml + plan
- 4. 颜色/字号/间距只来自 `design-plan.md` + DESIGN 对应轨
- 5. 字体:中文 `PingFang SC` 或 `思源黑体`,数据列 `SF Mono`;**禁止 Inter**
- 6. 有设计系统 → `search_design_system` 填 `catalog_map`;无则 primitive
- ---
- ## Phase 5:视觉再审
- 每屏 `get_screenshot`:
- 1. 对照 `design-plan.md` 该页 ASCII
- 2. **香奈儿法则**:删 1 个多余装饰
- 3. 仍像 AI 默认 dashboard/App → patch,不整页重 roll
- ---
- ## Phase 6:交付
- 交给用户:
- 1. **Figma 链接**(主交付)
- 2. `design-plan.md`
- 3. `ia-draft.md` + `*.page.ui.yaml`
- 4. 页面清单表:帧名、职责、根 nodeId(便于 Phase 7)
- 5. Anti-Slop 结论摘要
- ---
- ## Phase 7:增量修改
- 读 [incremental-edit.md](references/incremental-edit.md)。
- - 结构变更 → 改 yaml + patch 对应 node
- - 视觉变更 → 先改 design-plan 相关 token → 视情况重跑 Anti-Slop → patch
- - **禁止**收到修改意见后无 plan/yaml 更新直接整文件重生成
- ---
- ## 红线
- - 无 `design-plan.md` → 禁止 Figma
- - Anti-Slop 非 PASS → 禁止 Figma
- - `meta.anti_slop` 非 `pass` → 禁止 Figma
- - 产品复盘 Skill 所需 UI 截图须用户提供,本 Skill 不冒充真机截图
- - 不 `git push`、不公开发布
- ## 与其他 Skill
- | Skill | 关系 |
- |-------|------|
- | `frontend-design` | 继承流程与 Nevers |
- | `figma-use` / `figma-generate-design` | Figma 执行层 |
- | 产品复盘文档生成 | 复盘截图不由本 Skill 伪造 |
- ## 文件索引
- | 文件 | 用途 |
- |------|------|
- | [DESIGN.md](DESIGN.md) | B/C 路由 + 摘要 |
- | [design-shared.md](references/design-shared.md) | 共用 nevers、a11y |
- | [design-b-end.md](references/design-b-end.md) | B 端 token |
- | [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.
- # Laowangba PM Prototype Skill
- 一个用于生成 B/C 端产品原型的 Codex Skill,重点面向 Figma 可编辑 UI 原型。
- 它把原型生成拆成稳定流程:
- - IA 推导:从 brief 推实体、角色、任务链和页面,不套固定后台页面清单。
- - Design Plan:先确定 subject、tone、token、layout、signature、differentiation。
- - Anti-Slop Review:生成 Figma 前先检查是否落入常见 AI 默认审美。
- - `page.ui.yaml`:用结构化页面规格承接后续增量修改。
- - Figma 执行:按 region 分批生成可编辑 Frame。
- ## Repository Structure
- ```text
- .
- ├── SKILL.md
- ├── DESIGN.md
- ├── references/
- ├── schema/
- └── templates/
- ```
- ## Requirements
- - Codex / Agent 环境支持 Skill 加载。
- - 如需写入 Figma,需要已配置 Figma MCP / Figma 插件,并可用 `figma-use`、`figma-generate-design`、`figma-create-new-file` 等能力。
- - 本 Skill 继承 `frontend-design` 的设计思路;如果宿主环境没有该 Skill,可按 `DESIGN.md` 与 `references/frontend-design-gates.md` 执行同等检查。
- ## Usage
- 把本仓库作为 Skill 放入你的 Codex skills 目录,然后在任务里指定:
- ```text
- 使用产品原型生成 Skill,生成一个会员系统前台页面原型
- ```
- 典型产出:
- - `ia-draft.md`
- - `design-plan.md`
- - `{page-id}.page.ui.yaml`
- - Figma 文件链接与 Frame nodeId
- ## Examples
- > 注意:这里生成的是产品原型图,还达不到最终 UI 稿的程度。后续如果要用于展示、投放或正式交付,建议再次使用 gptimage2 或 Stitch 生成更完整、更精致的 UI 图。
- >
- > 产品经理在工作协作时,不建议直接拿这个当 UI 图交付给设计师;它更适合作为需求沟通、信息架构、页面流程和布局意图的原型材料。设计师会恨你的。
- ### Member System Frontend
- 
- 会员系统前台页面原型案例,包含 IA、Design Plan 和 5 个 `page.ui.yaml` 页面规格。
- [案例目录](examples/member-system-frontend/) · [IA](examples/member-system-frontend/ia-draft.md) · [Design Plan](examples/member-system-frontend/design-plan.md)
- ### Inventory System Backend
- 
- 
- 库存系统 B 端原型截图案例,展示库存总览、预警优先级队列、库存动作流、入库管理筛选和表格结构。
- [案例目录](examples/inventory-system-backend/)
- ### AI Price Comparison Frontend
- AI 比价前台页面原型案例,包含淘宝式 C 端视觉、IA、Design Plan、5 个 `page.ui.yaml` 页面规格和本地 HTML 预览。
- [案例目录](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)
- ## Design Principles
- - 先推导 IA,再画页面。
- - B 端和 C 端使用不同视觉轨道。
- - 无 `design-plan.md` 不生成 Figma。
- - Anti-Slop 非 PASS 不生成 Figma。
- - 增量修改先更新 plan / yaml,再 patch Figma。
- ## License
- MIT
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.