/design-system:delivery-handofffrom design-system
Generates stakeholder-ready handoff documentation for confirmed-final products/features, producing Storybook handoff pages, UI flow diagrams, component usage inventories, token consumption reports, a11y checklists, and per-screen specs.
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: 產品 / feature 通過 prototype → audit → stakeholder 決策後確認 final,需要產 Figma-like inspectable handoff documentation 給工程 / PM / QA / 其他 stakeholder。
本 skill 不是 prototype 階段文件(那是 /prototype 的 notes.md),而是正式交付包。
明確觸發:
不觸發:
/prototype,產 exploration notes)/product-ui-audit).spec.md 編)/product-ui-audit /prototype → exploration + shortlist
/product-ui-audit → QA gate
[stakeholder decides final]
[P0 fixed, P1 resolved]
/delivery-handoff ← 本 skill,只在 final confirmed 後
/product-ui-audit Zero P0(必要)/ P1 有計畫 resolve(建議)clarify with user:
Deterministic 源優先(2026-07-07 治理進化收尾:本 skill 原「幾乎零機械依賴」列冊補強):
node scripts/gen-ds-story-manifest.mjs 產出的 manifest(禁憑記憶列)rg -o -- '--[a-z][a-z0-9-]*' <feature files> | sort | uniq -c(機械計數,非印象;字元類含 0-9 — DS token 名 46% 含數字如 --chart-1/--black-a02,缺數字會截斷合併成假 key)scripts/audit-orphan-tokens.mjs 的消費通道邏輯(同一套 5 通道定義)scan 目標 feature 的 code,自動 inventory:
Component 清單(哪些 DS 元件被此 feature 消費):
| Component | Count | Consumer files |
|-----------|-------|----------------|
| Button | 12 | Checkout.tsx, Summary.tsx, ... |
| Dialog | 2 | Confirm.tsx, Edit.tsx |
| Empty | 1 | NoItems.tsx |
Token 使用報告:
| Token | Usage | Files |
|-------|-------|-------|
| --primary | 8 hits | ... |
| --fg-secondary | 14 hits | ... |
| --error | 3 hits | ... |
Layout primitives 消費: Empty / item-layout / overlay-surface / ScrollArea / AspectRatio 各幾次。
A11y checklist(先掃再人工 review):
用 Mermaid 產 flow(Storybook 支援 render,也可 export PDF)。
範本:
flowchart TD
Start([進入 Checkout]) --> Review[結帳 Review]
Review -->|修改| Edit[編輯 Cart Dialog]
Edit --> Review
Review -->|確認| Payment[付款方式 Step]
Payment -->|信用卡| Card[Card Form]
Payment -->|轉帳| Bank[Bank Instructions]
Card --> Confirm[確認 Dialog]
Bank --> Confirm
Confirm -->|確定| Success([訂單成立])
Confirm -->|取消| Review
AI 根據 code(route / onClick / navigation)auto-generate,並以 source/readback 驗證。 若 flow 可由既有 requirement 與實作唯一重建,直接修正 evidence drift;只有仍存在會改變 產品/UI/UX SSOT 的真實 flow 取捨才 P2H。
每個 screen / modal / flow step 一頁 spec(Storybook 的 Handoff story,或 Markdown 章節):
## Screen: Checkout Review
**Storybook**: `Features/Checkout/Review`
**File**: `src/app/features/checkout/Review.tsx`
### 用途
使用者進入結帳後,第一屏預覽購物車 + 小計 + 折扣碼輸入。
### 主要元件
- DataTable(訂單 items)
- Input(折扣碼)
- Button(套用)
- Dialog(編輯 item 彈出)
- Empty(購物車空狀態)
### States
- **default**: 載入後正常顯示(≥1 item)
- **empty**: 購物車無 item — 顯示 Empty 元件 + 「回去繼續購物」CTA
- **error**: 折扣碼無效 — Input error state + Alert 說明
### Interactions
- 點擊 item → open Edit Dialog
- 輸入 discount → debounce 500ms → auto-validate
- 按 Apply → post /discount API
### A11y
- ✓ 所有 icon-only 有 aria-label
- ✓ Dialog 有 title + description
- ✓ keyboard 可 tab 所有互動
- ✓ color contrast 通過 WCAG AA
### 邊界 case
- 折扣碼已套用:顯示 "已套用 {code}",Apply Button 變 Clear
- 網路錯誤:顯示 Alert + retry button
- 折扣超過總額:capped 折扣 = 總額,顯示說明
在 Storybook 建立 Features/{Feature}/Handoff page,內含:
Storybook title: Features/{FeatureName}/Handoff
此 page 就是「Figma-like 的 inspectable 交付」— stakeholder 打開就看到全景。
Phase 4 產出後記錄並驗證:
📦 Handoff Package Ready
Scope: {feature}
Audience: {engineering / PM / designer / cross-team}
Package:
- Storybook page: Features/{Feature}/Handoff
- Inventory: {N components / M tokens}
- UI Flow: Mermaid diagram ({N nodes})
- Spec sheets: {N screens}
- A11y checklist: {N passed / M needs review}
Export formats:
- Storybook URL: {link}
- Markdown(可 export PDF): {path}
Readback:
- requirement/source coverage: {complete / findings}
- links/screens/states/a11y evidence: {verified / findings}
- audience binding: {source / exact requirement}
可由 requirement、source、tests 與既有 audience 唯一判定的 finding 由 agent 自主修正並 繼續。只有 handoff 揭露新的產品/UI/UX outcomes 取捨,或對外分享會構成無法從既有 requirement 推導的 business commitment,才停在 shared governance 定義的 human-only boundary;handoff milestone 本身不是 user engineering-approval gate。
本 skill 對標:
我們的 Storybook handoff page 整合上述 3 個 tool 的優勢到一頁。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
27 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。npx claudepluginhub ajenchen/design-system --plugin design-system