一键导入
ux-design
UX design thinking for friction reduction and cognitive load. Load when building interactive UI or auditing user flows
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
UX design thinking for friction reduction and cognitive load. Load when building interactive UI or auditing user flows
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
External API evaluation and MCP server wrapper generation. Load when integrating a REST/GraphQL API as a workspace tool
Capability-based provider system patterns. Load when creating providers or wiring module-provider integration
Full-stack WebSocket subscription development. Load when adding WS routes, topic services, or debugging WS data flows
Systematic Python type error resolution (mypy/pyright). Load when fixing backend type check failures
Type-first Python with Pydantic, Protocol, and discriminated unions. Load when writing models or enforcing typing
Systematic type error resolution for Python (mypy/pyright) and TypeScript (vue-tsc). Use when fixing type errors, resolving type check failures, or optimizing type imports.
| name | ux-design |
| description | UX design thinking for friction reduction and cognitive load. Load when building interactive UI or auditing user flows |
| user-invocable | false |
Actionable UX design patterns grounded in cognitive psychology — Gestalt perception, Fitts' & Hick's Laws, cognitive load theory, flow state engineering, and ADHD-friendly design. Apply these while writing code to build interfaces that feel effortless.
Three types of mental load — eliminate the one you control:
| Type | Definition | Your Job |
|---|---|---|
| Intrinsic | Task complexity itself | Can't eliminate — acknowledge it |
| Extraneous | Poor design adding effort | ELIMINATE THIS |
| Germane | Learning/understanding | Minimize for repeat users |
Working memory limits (Miller's Law):
Reduction strategies:
How humans perceive visual grouping — use these to communicate structure without labels:
Proximity — elements close together are perceived as related:
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ Related │ │ Related │ │ Other │ │ Other │
│ Item A │ │ Item B │ │ Group A │ │ Group B │
└─────────┘ └─────────┘ └─────────┘ └─────────┘
↑ CLOSE = grouped ↑ SEPARATE = distinct
Similarity — same color/shape/size = perceived as same function:
┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐
│ BLUE │ │ BLUE │ │ BLUE │ │ RED │ │ RED │
│ Save │ │ Copy │ │ Edit │ │ Del │ │ Clear│
└──────┘ └──────┘ └──────┘ └──────┘ └──────┘
↑ Same style = safe actions ↑ Different = destructive
Continuity — the eye follows lines and paths naturally:
Step 1 ──→ Step 2 ──→ Step 3 ──→ Complete
●──────────●──────────●──────────●
Closure — the brain completes incomplete shapes:
[ ████████░░░░░░░░ ] 50% — brain "sees" the end
Time to reach a target = f(Distance / Size). Larger + closer = faster.
Minimum touch/click target sizes:
| Platform | Minimum | Preferred |
|---|---|---|
| iOS | 44 × 44 px | 48 × 48 px |
| Android | 48 × 48 px | 56 × 56 px |
| Desktop | 32 × 32 px | 44 × 44 px |
Layout rules:
❌ [ Delete ] [ Confirm ] ← Adjacent destructive + primary
✅ [ Confirm ] [ Delete ] ← Separated, different size
Decision time increases logarithmically with the number of choices.
Rules:
Decision hierarchy pattern:
Primary: [ Place Order ] ← One clear CTA
Secondary: [ Save Draft ] [ Cancel ] ← Supporting actions
Tertiary: More options ▾ ← Everything else hidden
Every user action needs acknowledgment. Silence breeds uncertainty.
Response time thresholds:
| Delay | User Perception | Required Feedback |
|---|---|---|
| < 100ms | Instant | None needed |
| 100ms – 1s | Noticeable | Subtle indicator (spinner, pulse) |
| 1s – 10s | Waiting | Progress bar, skeleton screen |
| > 10s | Leaving | Progress %, background processing with notification |
State coverage checklist — every async component needs all five:
Optimistic UI:
Flow requires: clear goals, immediate feedback, challenge-skill balance, no failure anxiety.
Rules to preserve flow:
Ctrl+Enter for primary action, Escape for cancelInterruption cost matrix:
| Interruption Type | Recovery Time | Mitigation |
|---|---|---|
| Modal dialog (blocks flow) | 15-30s | Use inline messages or toasts instead |
| Full page navigation | 5-15s | Use panels, drawers, or inline expansion |
| Confirmation dialog | 3-10s | Use undo pattern instead ("3 items deleted. [Undo]") |
| Toast notification | 1-2s | Minimal cost — preferred for non-critical feedback |
Patterns that benefit neurodivergent users — and improve experience for everyone:
| Principle | Implementation |
|---|---|
| Progressive disclosure | Show one task at a time; hide future steps |
| Context preservation | Auto-save every keystroke; never lose work |
| Gentle feedback | Status updates, not alarms; no aggressive red urgency |
| Pause & resume | Session state persists across days/weeks |
| Minimal distractions | Single focus area; dim non-active panels |
| Chunked progress | Visual cards/steps, not endless scrolling |
| Predictable layout | Same layout always; no layout shifts or surprises |
| Calm mode option | Reduced animations, muted colors on demand |
Run this against any component or flow before shipping: