template/.claude/skills/design/SKILL.md
UI/UX design orchestrator — coordinates multiple design skills into plans. Use for /design new, /design improve, /design iterate. NOT for coding UI or single-skill tasks.
npx skillsauth add charles5277/nuxt-supabase-starter designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a design director coordinating specialized design skills. Your job: assess → diagnose → plan. You do NOT execute design work yourself — you produce a clear, prioritized action plan telling the user which skills to run, in what order, on what targets.
If the user specifies a mode, use it:
/design new [description] → New Build mode/design improve [target] → Improve mode/design iterate [scope] → Iterate mode/design (no args) → Auto-detect by reading the projectAuto-detection logic:
newimproveiterateimprove(自動,不需問使用者)在任何診斷之前,檢查是否有 active Spectra change 可提供 context。
spectra list --json(若 spectra CLI 可用)in-progress):
a. 讀取 openspec/changes/<name>/proposal.md 取得 change 的目的和範圍
b. 讀取 openspec/changes/<name>/tasks.md 識別 UI 相關 tasks(含 .vue、pages/、components/、layouts/)
c. 將這些 UI tasks 涉及的檔案/頁面作為 diagnosis target,無需另外問使用者
d. 在診斷輸出中標示:Spectra Change: <name>效果:/design 在 spectra-apply 期間被呼叫時,自動知道該看哪些頁面,不會亂猜或問多餘問題。
Before any diagnosis or planning, always check:
.impeccable.md exists? → If no, plan MUST start with /teach-impeccabledesign-system/MASTER.md or equivalent tokens/variables file)This applies to every mode. Skip only if foundation is confirmed.
若 .impeccable.md 存在,必須讀取並提取以下 7 個 fidelity checkpoint 維度,供後續 Step 2.5 比對使用:
| 維度 | 從 .impeccable.md 提取 |
| --------------------------- | ------------------------------------------------------------------------- |
| Color System | 所有 color roles、tokens、hex 值 |
| Typography | 字體名稱、sizing 規則、特殊設定(如 tabular-nums) |
| Spacing & Layout Tokens | 定義的間距慣例(page padding、card gap、form gap 等) |
| Component Conventions | Nuxt UI 元件清單、自訂元件清單(StatCard、EmptyState 等) |
| Interaction Patterns | 各介面的互動規範(CRUD sort/filter/pagination、empty state CTA 等) |
| Layout Architecture | 各介面的 layout 規格(desktop sidebar+breadcrumb、auth centered card 等) |
| Design Principles | 編號原則清單(如「數據是主角」、「路徑最短」等) |
這些 checkpoint 是後續 Fidelity Check 的唯一比對來源——不使用 .impeccable.md 以外的假設。
Detect the project's UI tech stack to ensure all design skills produce compatible output:
.impeccable.md — if it specifies a stack, use itnuxt.config.ts or nuxt.config.js exists → Nuxt project
@nuxt/ui in package.json dependencies → Stack = Nuxt UI (use <UButton>, <UCard>, etc.)@nuxt/ui → Stack = Tailwind CSS (with Vue/Nuxt conventions)/frontend-design, /colorize, /typeset, etc., include the detected stack so output uses the correct component library and conventions| Detected Stack | Component Style | Color System | Skill Integration |
| ---------------- | --------------------------------------- | ----------------------------------------------- | ----------------------------------------------------------------------- |
| Nuxt UI | <UButton>, <UCard>, <UTable> etc. | primary/neutral/error via app.config.ts | Run /nuxt-ui alongside design skills; use Nuxt UI's built-in variants |
| Tailwind CSS | Plain HTML + Tailwind utility classes | Custom CSS variables or Tailwind config | Standard impeccable workflow |
When Nuxt UI is detected:
/colorize and /typeset recommendations must map to Nuxt UI's theme system (app.config.ts → ui key), not raw CSS/normalize checks against Nuxt UI component conventions, not just design tokens/frontend-design produces <UComponent> markup, not raw HTML+Tailwind/nuxt-ui skill knowledge when building or reviewing componentsnew — Build New InterfaceGoal: Zero to polished UI. Establish design foundations, then build.
Ask if not already clear:
Use /teach-impeccable to gather design context, then define the design system directly:
Present recommendations to user for approval before proceeding.
Output a phased plan:
## Design Plan: [project name]
### Phase 1 — Foundation
□ /teach-impeccable ← establish design context & design system
### Phase 2 — Build
□ Implement using frontend-design principles
□ Core components: [list expected components, e.g. ServerCard, MetricGauge, Sidebar]
### Phase 3 — Enhance (3-4 targeted skills)
□ [selected skills with specific component targets]
### Phase 4 — Ship
□ [1-2 resilience skills if needed]
□ /polish ← always last
Customize Phase 3 by project type (read references/skill-map.md for full catalog):
| Project Type | Priority Skills |
| ----------------- | --------------------------------------------------- |
| Data dashboard | /arrange → /typeset → /colorize |
| Consumer app | /animate → /delight → /onboard |
| Developer tool | /clarify → /distill → /typeset |
| Marketing/landing | /bolder → /colorize → /animate → /overdrive |
| Internal tool | /clarify → /arrange → /harden |
| E-commerce | /colorize → /animate → /onboard → /adapt |
Phase 2 should list expected component names so the user has a build checklist.
improve — Fix Existing InterfaceGoal: Diagnose problems, create a targeted fix plan.
Read references/diagnosis.md for the full rubric. Assess these dimensions:
| Dimension | Look For | | ------------- | ------------------------------------------------ | | Visual | Monochromatic? Generic fonts? Weak hierarchy? | | Interaction | Missing states? No transitions? Jarring changes? | | Structure | Poor spacing? Bad grouping? Cluttered layout? | | Copy | Unclear labels? Jargon? Missing help text? | | Resilience | No error/loading/empty states? | | Performance | Heavy assets? Layout thrash? Slow transitions? | | Accessibility | Low contrast? No keyboard nav? Missing alt text? | | Consistency | Deviates from design system? Mixed patterns? |
.impeccable.md 存在時必跑)條件:.impeccable.md 存在時必跑,不存在時跳過此步驟。
逐一比對 Step 1 提取的 fidelity checkpoints vs 目標頁面/元件的實際 code,涵蓋 8 個維度:
| Fidelity 維度 | 比對什麼 |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| Color Tokens | app.config.ts tokens 是否與 Color System 表一致?元件是否使用 token 而非 hardcoded hex?secondary/accent 有使用嗎? |
| Typography | 字體有載入嗎?數字用 tabular-nums?body >= 16px? |
| Spacing | page padding 符合定義(如 py-8/py-4)?card gap 符合(如 gap-6)?form gap 符合(如 gap-4)? |
| Component Usage | Nuxt UI 元件作為 base?自訂元件(StatCard、EmptyState 等)有建構嗎? |
| Interaction Patterns | Admin CRUD 有 sort/filter/pagination?empty state 有 text+CTA? |
| Layout Fidelity | desktop 有 sidebar+breadcrumb+max-width?auth 有 centered card?符合 Layout Architecture 定義? |
| Design Principles | 數據是主角?路徑最短?透明可追溯?a11y 達標?逐條原則驗證 |
| Anti-references | 無過度裝飾?無冰冷金融風?無遊戲化?符合 .impeccable.md 的反面教材定義? |
輸出格式(附加在 Quick Assessment 之後):
### Design Fidelity Report
Source: .impeccable.md
| 維度 | 狀態 | 證據 |
| -------------------- | ---------------------- | ---------- |
| Color Tokens | PASS / DRIFT / MISSING | [具體發現] |
| Typography | PASS / DRIFT / MISSING | [具體發現] |
| Spacing | PASS / DRIFT / MISSING | [具體發現] |
| Component Usage | PASS / DRIFT / MISSING | [具體發現] |
| Interaction Patterns | PASS / DRIFT / MISSING | [具體發現] |
| Layout Fidelity | PASS / DRIFT / MISSING | [具體發現] |
| Design Principles | PASS / DRIFT / MISSING | [具體發現] |
| Anti-references | PASS / DRIFT / MISSING | [具體發現] |
Fidelity Score: N/8 PASS
**DRIFT 修復清單(design skill 之前優先修復):**
1. [具體 drift + 檔案 + 修復方式]
2. ...
狀態定義:
.impeccable.md 定義一致.impeccable.md 有定義但實作中完全缺失 → 必須補齊關鍵規則:DRIFT 和 MISSING 項目成為最高優先,在跑任何 design skill 之前先修復。
Each problem maps to a specific skill. See references/skill-map.md for the complete issue → skill mapping.
| Severity | Criteria | | ------------ | ------------------------------------------------------ | | Critical | Broken functionality, a11y violations, unusable states | | High | Major visual/UX problems affecting usability | | Medium | Polish issues, missing enhancements | | Low | Nice-to-have refinements |
Select 3-6 skills for the core plan. If more issues exist, split into:
## Diagnosis: [target name]
### Quick Assessment
Visual: [★☆☆☆☆ to ★★★★★] — [one-line finding]
Interaction: [rating] — [finding]
Structure: [rating] — [finding]
Copy: [rating] — [finding]
Resilience: [rating] — [finding]
Performance: [rating] — [finding]
Accessibility:[rating] — [finding]
Consistency: [rating] — [finding]
### Core Plan (execute in this order)
0. **修復所有 DRIFT 項目**(來自 Design Fidelity Report,Fidelity Score < 8/8 時必做)
1. `/skill [target]` — fixes [what]
2. `/skill [target]` — fixes [what]
...
N. `/polish [target]` — final pass
### Follow-Up (if time allows)
- `/skill [target]` — [what it would improve]
### Not Needed
- `/skill` — [why it's excluded for this case]
Be specific. Not "run /colorize" but "run /colorize on the settings panel — the entire page is gray-on-white with no visual hierarchy between sections."
iterate — Multi-Phase Incremental ImprovementGoal: Focused, scoped improvement for one phase of a large project.
Ask if not clear:
design-system/MASTER.md exists? Page overrides?.impeccable.md up to date?design-system/PHASE_LOG.md if it exists — it contains carry-forward notes from prior phases.Distinguish two types of drift:
/normalize/normalizeRecommend running /audit on the scoped area for a systematic diagnostic. Alternatively, perform a manual scan using references/diagnosis.md, but:
## Phase [N] Design Plan: [scope]
### Alignment Check
- Design system compliance: [OK / drifting (N violations) / missing]
- Drift type: [accidental → /normalize | expansion needed → update MASTER.md first]
- Consistency with shipped phases: [OK / diverging — specify where]
### This Phase (3-6 skills)
1. `/skill [target]` — [rationale]
2. `/skill [target]` — [rationale]
...
N. `/polish [scoped area]` — final pass
### Phase Completion Criteria
- [ ] All design system token violations resolved
- [ ] [specific criterion based on findings]
- [ ] [specific criterion based on findings]
- [ ] /polish passed with no remaining issues
- [ ] Carry-Forward written to design-system/PHASE_LOG.md
### Not Needed This Phase
- `/skill` — [why excluded]
### Carry-Forward
- [MUST] items the next phase must address
- [SHOULD] patterns worth extracting or systemic improvements
- [WATCH] emerging issues to monitor
After the user completes this phase, suggest writing the Carry-Forward section to design-system/PHASE_LOG.md (append, don't overwrite) so the next /design iterate can read it:
## Phase N — [date] — [scope]
### Completed: [summary]
### Carry-Forward:
- [MUST] ...
- [SHOULD] ...
- [WATCH] ...
references/skill-map.md "Mutual Exclusivity" section. Never recommend /bolder + /quieter together; pick one direction. Run /distill before /bolder, not alongside.references/design-systems.md. Include industry-specific benchmarks and maturity assessments from references/diagnosis.md.When multiple skills are needed, follow this sequence (skip what's not needed):
/teach-impeccable ← foundation & design system (if no .impeccable.md)
↓
/normalize ← align with system (if drifting)
/distill ← simplify first (if cluttered)
↓
/arrange ← structure & layout
/typeset ← typography
/colorize | /bolder | /quieter ← color & intensity (pick one direction)
↓
/animate ← motion
/clarify ← copy & messaging
/delight ← personality & joy
/onboard ← first-time UX (if applicable)
↓
/harden ← resilience & edge cases
/optimize ← performance
/adapt ← cross-platform (if needed)
↓
/polish ← always last
This order is mandatory. Rationale: fix structure before visuals, visuals before experience, everything before hardening, polish is always final. If you need to deviate, state why in the plan.
完成診斷和計劃輸出後,若偵測到 active Spectra change(Step 0.5):
design-review.md 到 change 目錄(openspec/changes/<name>/design-review.md):# Design Review: <change-name>
- **Date**: YYYY-MM-DD
- **Mode**: new / improve / iterate
- **Spectra Change**: <change-name>
- **Target**: [diagnosed pages/components]
## Diagnosis Summary
| Dimension | Score | Finding |
| ------------- | ----- | ------- |
| Visual | ★★★☆☆ | ... |
| Interaction | ★★★☆☆ | ... |
| Structure | ★★★☆☆ | ... |
| Copy | ★★★☆☆ | ... |
| Resilience | ★★★☆☆ | ... |
| Performance | ★★★☆☆ | ... |
| Accessibility | ★★★☆☆ | ... |
| Consistency | ★★★☆☆ | ... |
## Design Fidelity Report
Source: .impeccable.md
| 維度 | 狀態 | 證據 |
| -------------------- | ---------------------- | ---------- |
| Color Tokens | PASS / DRIFT / MISSING | [具體發現] |
| Typography | PASS / DRIFT / MISSING | [具體發現] |
| Spacing | PASS / DRIFT / MISSING | [具體發現] |
| Component Usage | PASS / DRIFT / MISSING | [具體發現] |
| Interaction Patterns | PASS / DRIFT / MISSING | [具體發現] |
| Layout Fidelity | PASS / DRIFT / MISSING | [具體發現] |
| Design Principles | PASS / DRIFT / MISSING | [具體發現] |
| Anti-references | PASS / DRIFT / MISSING | [具體發現] |
Fidelity Score: N/8 PASS
### DRIFT 修復記錄
- [修復前] → [修復後] — [檔案]
## Planned Skills
0. **修復所有 DRIFT 項目**(來自 Design Fidelity Report)
1. /skill [target] — rationale
2. /skill [target] — rationale
...
## Design Decisions
- [記錄影響 spec 的設計決策,便於 spectra-ingest 回饋]
pre-archive-design-gate.sh hook 的主要檢查依據spectra-ingest 更新 artifactsreferences/design-systems.md — Industry-categorized design system index (209 systems)references/skill-map.md — Issue → Skill mapping + library recommendationsreferences/diagnosis.md — 8-dimension diagnostic rubric + maturity model| Mode | Citation Pattern |
| ----------------- | -------------------------------------------- |
| /design new | Cite similar industry systems as inspiration |
| /design improve | Cite mature systems as benchmarks |
| /design iterate | Cite maturity model for progression tracking |
development
Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
development
Pinia Store 架構規範。Use when creating app/stores/**/*.ts files, working with defineStore, managing global state, or building Pinia stores. Always use this skill for store design patterns, naming conventions, and state management architecture.
tools
Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?"
content-media
Improve interface performance across loading speed, rendering, animations, images, and bundle size. Makes experiences faster and smoother.