/design-system:propose-optionsfrom design-system
Forces a 7-question principle check (M8 benchmark, M17 SSOT, Rule-of-3, M10 subsumption) on every proposed option before listing. Filters or labels failures. Codifies a 'verify before propose' runtime discipline.
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.
None: SKILL.md is the whole skill.
This canonical workflow contains a committed inventory of legacy assumptions. Resolve them exactly as follows; an unavailable resolution or inventory drift is ADAPTER-BLOCKED:
provider-identity: Treat historical provider names as provenance labels, never as the current runtime identity.provider-surface-path: Resolve legacy repository paths through generated views while treating ds-canonical as the semantic owner.目的:Claude 對 user 提建議 / 列 option list 時,先跑 7 題原則自檢,通過才寫進回覆。Reject 的不列 OR 列出時標 fail 原因。
對齊:
強制 invoke 在以下情境(不靠 user 提醒):
不 invoke:
每個 candidate option 過以下 7 題,inline 寫進回覆:
問:propose 給 user 拍板前,是否已grep DS-wide + Read 相關 spec.md / tsx + Read consumer usage 確認 problem 真存在?
為何:M18 / M23 / M29 都管「決策過程紀律」,但propose 給 user 前的「problem 真存在?」基本判斷沒 codify。本 session 我 propose 3 題(Sheet 補 / 5 元件 migrate inline-action / 5 元件 migrate SurfaceBody)全部不是真 problem — Sheet spec 已完整、inline-action 已全消費、SurfaceBody 有意設計不該動 — 但我 propose 給 user 拍板浪費 user 時間 + 動搖 user 信任。
強制檢查:
rg "<primitive>" packages/design-system/src/components/<X>)Fail criteria(任一命中 → reject propose,不丟給 user):
Pass criteria(全過才能 propose):
例:
對應 hook:check_propose_discipline.sh 的 r3_planning_doc_cite(Stop;2026-05-18 原是一支 PreToolUse 只警告、模型看不到的獨立 hook,2026-11-18 併入並改成擋)— 本輪寫進「任一層目錄名以 planning / report / handoff 開頭」的 .md,內容含「請拍板 / 決策 N / 選項」等 propose keyword,而本輪寫進去的內容裡沒有可查證的出處(文件別處原有的不算;被拒絕 / 失敗的寫入不算寫入;出處寫法:檔名:行號 / L42 / line 42 / 官方文件網址,或反引號包起來的 .tsx / .ts / .css / .md 路徑)→ exit 2 擋下,補出處或拿掉提案才放行;escape:檔案前 3 行 <!-- @propose-pre-verified: 理由 -->(理由必填,本輪寫進去才算)。chat reply 裡的 propose 字眼無 hook 覆蓋,靠本 skill Q0 自律(回覆裡「規定 / 必配」類斷言另由同一支的 r2 擋)
問:本 option ≥ 3 家 world-class DS / framework / canonical 有對照嗎? 列:具體實作名 / API 指向 / docs URL Fail:< 3 家對照 → option 未成熟,不該 propose 例:
先 grep DS 既有 token / variant / pattern 命中?有 → 必對齊,Q1 外部 benchmark 只是輔證。
問:propose 的 visual decision(color / size / spacing / typography / state)是否已 grep packages/design-system/src/tokens/ + 近親 component spec/tsx 確認沒命中既有?
Fail:跳過 grep 直接搬 world-class → M23 違反(本 conv chevron 用 Ant 5 家 muted 覆蓋 DS 內 icon-only Button = neutral-9 canonical → user 4 輪糾正)
例:
text-foreground 已是 icon-only Button 預設(neutral-9 / 85%)→ 對齊;Ant cite 為輔證"問:本 option 動到的 canonical 有真正可執行 SSOT 嗎(token / primitive / utility)?還是只在 markdown 文字? Fail:只增加 markdown 文字、沒提供 mechanical enforcement → 假 SSOT 例:
ICON_ONLY_BASE 共用,2 host import"問:本概念在現有 home 已 ≥ 3 處出現?該選 SSOT,其他 pointer。新加的話,SSOT 該住哪 home? Fail:concept 已 ≥ 3 處仍要新增 home / 重複描述 → 違 Rule-of-3 例:
問:本 option 加入後,既有哪些 rule / memory / bug case 被吸收可刪? Fail:純 append 沒 retire,違反「上游加 = 下游減」 + 治理 anti-bloat 例:
問:plan iteration / option list 改版時,user 提的所有 raised issue 是否 100% mapped 到本版的 step / option / 評估?未 mapped 的逐條 explicit 標:done / folded into Step X / informational(無實作) / dropped(原因) / pending。
Fail:silent drop / 沒 mapping table / fold 進 step 沒 trace
例:
對 user 回覆中的 option list 必含 inline 7-Q 表 + Issue mapping(plan iteration 場景):
| 選項 | M23 DS grep | M8 benchmark | M17 SSOT | Rule-of-3 | M10 下游 | Issue cover | 結論 |
|---|---|---|---|---|---|---|---|
| A | DS 已有 X token,對齊 | Polaris/Atlassian/Material 輔證 | 抽 utility 共用 | 0 處 SSOT 新增 OK | 可刪 X 條冗餘 | covers 8/14 | **PASS,推薦** |
| B | 沒 grep | 只查 1 家 | 純 markdown rule | 已 3 處,無新 SSOT 動 | 純 append 沒 retire | covers 4/14 | **REJECT(M23+M8 雙 fail + Q5 不全)** |
Plan iteration 必含 Issue ↔ Step 完整 mapping table(不可只列新 step 表,user 看不到原 issue trace):
| # | Issue (按 user 提出順序) | 處理 |
|---|---|---|
| 1 | <user 原文 issue> | Step X / informational / dropped(reason) |
| ... | ... | ... |
所有 fail 過 7-Q 的 option 必明示 reject + 原因,不只 list 不過的。User 看見 reject 過程才能信 propose 過原則。
不需走全 7 題(沒 option list,直接修)。但 commit message 仍應簡述「修法已知 root cause + 不取巧」(對齊 mindset #1)。
每層各自跑 7 題。Skill 不限深度但實作上 ≥ 3 層 nested 已是設計問題,user 該停下重整。
不跑 skill。直接執行。
User 已就「為什麼會給錯誤建議」糾正 ≥ 3 次:
Infra G6/G7/G8 是 post-edit / session-start 防線,沒 propose-time gate。Claude Code event model 沒 OnAssistantMessage hook,只能靠 model-runtime 紀律 + skill self-invoke。本 skill 就是 mechanical 補位 — invoke 時讀本檔,7-Q 表格自然寫進回覆。
每次 invoke 完,session 結束前自問:
回填到本 SKILL.md 或 packages/design-system/ds-canonical/rules/meta-patterns.md M18(若需 escalate)。
| Skill | scope |
|---|---|
pre_write_subsumption_check.sh(retired 2026-06 → canonical packages/design-system/ds-canonical/hooks/retired/ — write 前層由 check_file_size_budget.sh + enforce_home_charter.sh 等現役 pre-write hook 部分補位) | Edit/Write 已發生時 |
post_edit_canonical_interrogate.sh(retired/未實作 — mindset enforcement) | 寫完 canonical 後 3 題 |
check_governance_compliance.sh(retired/未實作 — 靠 check_propose_discipline.sh r3 + 加 hook 前 3 題) | 寫新 hook 7 題 |
本 skill /propose-options | propose-time(寫進 user 回覆前)7 題 |
4 個正交層(propose 前 / write 前 / write 中 / write 後);現役機械覆蓋:propose 前靠本 skill,寫進規劃 / 報告 / 交接文件的提案由 check_propose_discipline.sh r3 在 Stop 端擋(沒附出處不能結束這一輪),write 前部分補位;其餘層 retired/未實作,靠 mindset。
What 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。