/design-system:prototypefrom design-system
Guides a structured 6-phase UX workflow for building UI prototypes/MVPs: clarify requirements, benchmark world-class references, produce shortlisted Storybook explorations, and self-audit before stakeholder decisions.
Ships in design-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Purpose: embody the UX designer's mental model for BUILDING PROTOTYPES — never design by gut; benchmark world-class, filter against DS + business, build multiple shortlisted proposals, self-audit, let stakeholders decide.
This skill is the structured version of shared-governance Mindset #1「對標世界級」+ #4「真實業務場景」+ #5「先證據、再分權」,and the orchestrator for src/explorations/ folder usage.
明確觸發(直接 invoke):user 用「prototype / MVP / 原型」明確字眼。例:「做 prototype」「做 MVP」「做原型」「prototype 一個 X」「做幾個 prototype 版本 compare」。
模糊觸發(先 clarify):「給我幾個方案」「怎麼做世界級」「有哪些選項」「比版本」 — 多為 thought-partnering,先問「要走正式 prototype skill 還是先口頭討論?」
不觸發:已確定單一 feature(直接 implement)/ 單一 pattern 諮詢(直接答)/ 產品交付(走 /delivery-handoff)/ DS 本身稽核(走 /design-system-audit)/ consumer UI 檢查(走 /product-ui-audit)。
生態位:/prototype → Phase 3.5 chain /product-ui-audit gate → stakeholder 決定 → 採用後 /delivery-handoff。新 primitive 採用後,加入 DS 時跑 /design-system-audit 確保內部健康(正交關注點)。
Input: user's initial request(可能模糊)
Process: AI asks user 3-5 targeted questions to lock down:
Output: 一段 1-liner summary 確認 alignment。
Record a clean framing before benchmarking. If the requirement already fixes persona/JTBD/constraints, this is a readback receipt and the workflow continues. Ask only when unresolved framing choices would produce different product/UI/UX outcomes.
Input: Phase 0 framing
Process: Scan 5+ world-class references. See references/benchmark-sources.md for the canonical list of DS + world-class SaaS + industry-specific references.
For each reference,收集兩類資訊:
A. 視覺 / 互動(表層):
B. OOUX 層(資訊架構深度對標):
為什麼加 OOUX 欄:視覺只看外型會抄到形式,object model 才是 IA 深度。做完 5 家 benchmark 後,你會發現哪些 object 是業界共識 / 哪些命名是該產品獨有 — 這是 Phase 3 自己建 Object Map 的原料。
詳細 OOUX 分析方法與範本見 references/ooux-template.md「Phase 1 用法」節(內含 Linear issue tracking 完整範例)。
Output: Markdown scan table(視覺 + OOUX 兩 section):
| Reference | Approach | Key mechanics | Screenshot |
|-----------|----------|---------------|------------|
| Linear | ... | ... | link |
| Stripe | ... | ... | link |
| ... | | | |
Report format: retain and report the scan table as an evidence receipt, then continue when canonical benchmark coverage is complete.
The agent determines research sufficiency from the canonical coverage and evidence rules. Missing evidence is gathered autonomously. Only a newly discovered unresolved product framing trade-off returns to conditional Checkpoint 0.
Input: Phase 1 scan table
Process: for each candidate,score on 4 axes(see references/evaluation-matrix.md):
| Axis | Scale | Meaning |
|---|---|---|
| 優缺 | Pros / Cons bullets | 每個候選的獨立評估 |
| DS 一致性 | 1-5 | 能用多少既有元件 / primitives?新元件要不要造? |
| 業務 fit | 1-5 | 符合 Phase 0 jobs-to-be-done 多深? |
| 複雜度 | 1-5(低複雜度 = 5) | 開發成本 / 維護負擔 |
Output: 評分矩陣 + narrative summary per candidate。
Narrative 必含:
當兩個以上可行候選會產生不同產品/UI/UX outcomes 時,presenting 評分後由 user 決定:
若既有 SSOT、明確 requirement 與 evidence 已唯一淘汰其他候選,agent 記錄 selection receipt 後自主接續;不得為了形式詢問而製造不存在的產品選擇。
Input: shortlist + Phase 1 benchmark 的 OOUX 分析
Process: 在寫任何 candidate story 之前,先做 Object Map(全體 candidate 共享同一個)。ORCA 4 步:
Output:src/explorations/{topic-slug}/notes.md 增補 OOUX section(見 references/ooux-template.md「Phase 3.0」範本 + Step 5 UI Shape → DS 元件映射表)。
為什麼共享同一 Object Map:3 個 candidate 差異應在 UI shape + progressive disclosure + CTA ordering,不在 object 定義本身。若 A candidate 把 Task 拆成 Task + Subtask、B candidate 只有 Task,stakeholder 比稿會變成「比 data model」失焦。除非該 feature 本質就是 data model 辯論,否則 object 定義應一致。
何時跳過:極小 feature(單一 button / 1-object 開關)可跳過 Phase 3.0,在 notes.md 明文標示「feature 範圍小,跳過 ORCA」。
Input: shortlist(2-3 items)+ Phase 3.0 產出的 Object Map
Phase 3.0a — SSOT 5-step pre-check:寫任何 candidate code 前必過 shared governance「SSOT 消費 canonical」+ packages/design-system/ds-canonical/references/ssot-consultation.md「5-step pre-check」(本 skill 不重複)。check_story_invariants.sh R1 anatomy(原 check_story_anatomy.sh folded 折入)PreToolUse 是最後安全網,但 5-step 是事前 discipline。
Process: 每個 candidate 建一個 exploration story,各 candidate 共享 Object Map 但差異在 UI shape + CTAs 順序。see references/proposal-template.md for structure。
目錄結構:
src/explorations/{topic-slug}/
├── notes.md # 本 topic 概述 + Phase 2 評估摘要 + 3 候選簡介
├── {CandidateA}.stories.tsx # 候選 A 原型(Storybook)
├── {CandidateB}.stories.tsx # 候選 B 原型
└── {CandidateC}.stories.tsx # 候選 C 原型
Storybook title 慣例(不與 Components/ 衝突):
Explorations/{Topic}/{CandidateName}
每個 candidate story 必含:
DS 一致性鐵律:
packages/design-system/src/components/ 元件先依 consume-before-invent、public/internal 與 promotion evidence 自主判定。只有 composition 與新 public semantics 皆可行、且代表不同 UI/UX outcomes 時才 ASK:
絕對不可在 explorations/ 階段就偷偷 add 到 Components/,會污染 DS。
Input: Phase 3 完成 + Checkpoint 3 資源決策完畢的 exploration stories
核心原則:exploration code 不該直接進 Phase 4 給 stakeholder 看 — AI 必先掃 6 維(對齊 shared governance # 稽核 canonical M6:stakeholder-visible 產出 → 強制進階模式)。
Output: per candidate 6 維 report,彙整成 Phase 3.5 gate report。
6 維 + 執行順序 + Gate 規則完整詳細 → references/audit-checks.md(SSOT;本 skill 不重複)。重點:
/product-ui-audit / /performance-audit / /ux-audit / /visual-auditprinciple-audit-protocol.md(設計原則自檢 4 子維)Input: 3 個 exploration stories
Process: 撰寫 summary(放在 notes.md):
Output: summary markdown + Storybook URL list → 丟給 stakeholder 評估。
User / stakeholder 決定採用某 candidate 後:
(a) 採用 A,promote 到 packages/design-system/src/ 正式(若需新元件)或消費既有元件建正式 UI(b) 採用 A 但修改(進第二輪 proposal)(c) 混搭 A+B 新 hybrid(新 exploration)(d) 全部不採用(保留 explorations/ 作紀錄,也是有價值的 ruled-out)Graduation 流程:若升級到正式,在 explorations/_archive/ 備份 exploration(per shared governance # 元件完成 + Exploration:比稿定案升級 patterns/ 或 components/,舊比稿保留作紀錄),正式 code 進 design-system/。
刪除 drop 的 exploration 或移 _archive/。更新 src/explorations/ 索引。
references/)benchmark-sources.md 世界級對標 + OOUXooux-template.md ORCA / Object Map / NOM / CTA(Sophia V. Prater)evaluation-matrix.md 4 軸評分 + 決策規則proposal-template.md explorations/ + Storybook 結構checkpoints.md 5 MUST ASK 範本 + 歷史 failure modeWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ajenchen/design-system --plugin design-system27 skills in this plugin
/bug-fix-rhythmBatch-end-verify rhythm + parallel tool batch + user-listed N-rule MUST-ALL + claim runtime verify. Invoke when entering multi-fix session 或 user 列 numbered rules. Replaces M32(c)(d)(h1)(h2) sub-invariants(2026-05-12 split per Knowledge-Prune Checkpoint 2)。/canonical-reviewerReview governance changes in an isolated read-only context with explicit author identity, complete canonical evidence, and mutation detection./code-quality-auditClean code 量化稽核 — `any` 使用 / dead export / file size / long function / circular dep / magic number。補 `/design-system-audit` 只管「design canonical」的缺口。Invoke via /code-quality-audit scope=all(release / 季度)OR scope=changed(daily)OR scope=component:X(focused)。Auto-chain by `/design-system-audit --deep` Dim 27 + `/component-quality-gate` Ship phase + `/new-component` Phase 4.5。/codex-collabCoordinate an evidence-complete primary analysis with a genuinely independent peer provider, then verify and synthesize both results./codify-correctionsProcess $GOVERNANCE_STATE_DIR/user-corrections.jsonl — the Stop-hook-harvested signals of user corrections ("不是" / "不對" / "應該" / "糾正" etc.). Dedup by session + keyword, cluster by topic, and apply edits to the canonical owner(ds-canonical rule / repository memory / canonical skill reference / spec.md rationale) under the shared authority classifier. After codification archive processed entries in the same Git-owned runtime state root. Invoke when user-corrections.jsonl exceeds 40 entries(session_start hard blocker; there is no soft reminder), when the user asks, OR quarterly./codify-principleUser 提出新設計原則 → auto 5-layer artifact generation pipeline。將原則文字自動轉化為 SSOT canonical text + hook scaffold + audit dim + scaffold update + memory entry,依 rule-placement Level 1–9 taxonomy 放入正確 home。對齊 M14 + M19。Invoke when user says「我想加一條設計原則 X」「新原則 Y」「ensure X always」OR auto-recognize trigger phrase。本 skill 把 reactive markdown rule 升級成 proactive principle-to-artifact generator。