/design-system:ux-auditfrom design-system
UX behavior audit for design-system components and product UI. Checks keyboard navigation, focus management, ARIA correctness, animation timing, interaction canonical (hover/click/drag/zoom), error/loading states, empty states.
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.
現有 /design-system-audit(code/spec)+ /visual-audit(pixel)+ /performance-audit(render)都不看行為。interaction canonical、keyboard nav、focus trap、animation timing 這類 bug:
本 skill 是稽核 6 維度的 D4 UX 行為 canonical home。
| 情境 | 模式 | 本 skill 跑什麼 |
|---|---|---|
| 新元件 merge 前 | 進階強制 | 全面(kb / focus / ARIA / animation / interaction) |
| 元件新功能 | 進階強制 | scoped to 新 interaction 路徑 |
| 產品 demo 前 | 進階強制 | 全流程 keyboard-only walkthrough |
| 日常 dev | 高效 | 主要 kb path 手動過一次 |
| Release cut | 進階 + 全 DS | 全 DS 的 a11y / interaction 全掃 |
packages/design-system/src/components/{Name}/查 7 項:
tabIndex 不濫用(tabIndex > 0 禁用)focus-visible 非 focus)查 4 項:
查 6 項:
role="button" on role="dialog" / role="menu" / role="grid"aria-live="polite" 或 "assertive"aria-hidden;隱藏內容不能 keyboard focus查 5 項:
@media (prefers-reduced-motion: reduce) 下動畫減到 0 或極短tokens/motion/motion.spec.md 三層 tier SSOT)查 5 項 + null-safety + rapid-interaction:
null / undefined label/value/children 不 crash(e.g. {label} 為 undefined render 空字串,不 Cannot read properties of undefined);空 array .map() 不 crash;emoji / 超長單字 / RTL 字元不爆版<Empty> 或對應 placeholder,非 blank;empty 有 CTA 讓使用者知道下步<Notice> 或 inline <FieldError>;配合 aria-live 通知 AT;error message 不吞(e.g. async rejection 有 fallback UI 非 silent swallow)Edge case corollary(現實髒資料):
null / 為空 array / 元素數量極大(超 50 筆)產出:
# UX Audit — {Scope} — {YYYY-MM-DD}
## Summary
- Keyboard: PASS / N fails
- Focus: PASS / M fails
- ARIA: PASS / K fails
- Animation: PASS / L fails
- Three states: PASS / P fails
## Findings(按 severity 排序)
### P0(完全 block a11y)
### P1(嚴重影響 UX)
### P2(建議改善)
## Authority classification
- P2E:{工程/治理 finding,交 canonical owner 自主修復}
- P2H:{只有真正產品/UI/UX SSOT 取捨才列 exact target-bound decision}
本 skill 保持 read-only,report 是 evidence receipt;caller/canonical owner 對 P2E 直接接續 修復與驗證,不把 read-only skill boundary 誤當 user checkpoint。只有 P2H 或 shared-governance human-only boundary 才停止。
/visual-audit)/design-system-audit)packages/design-system/ds-canonical/skills/design-system-audit/SKILL.md — 全 dim 統籌(per design-system-audit SSOT);本 skill 是 D4 補位packages/design-system/ds-canonical/skills/visual-audit/SKILL.md — pixel 層(D5)packages/design-system/ds-canonical/skills/performance-audit/SKILL.md — 效能層(D3)packages/design-system/ds-canonical/skills/component-quality-gate/SKILL.md — Phase 4.5 進階模式 chain 本 skillWhat 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。