ux-design
Design user experiences with usability focus. Use when planning user flows, navigation, forms, error handling, or accessibility. Complements frontend-design (visual) with UX structure.
📖 中文导读:Design user experiences with usability focus. Use when planning user flows, navigation, forms, error handling, or accessibility. Complements frontend-design (visual) with UX structure. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: ux-design description: Design user experiences with usability focus. Use when planning user flows, navigation, forms, error handling, or accessibility. Complements frontend-design (visual) with UX structure.
## Visual Foundation (CRAP) 1. [Contrast]: hierarchy through size/color/weight, important = stands out 2. [Repetition]: consistent patterns, colors, spacing throughout 3. [Alignment]: consistent alignment, grid-based layout 4. [Proximity]: related items close, unrelated items separatedInteraction
- [Scannable]: F-pattern layout, primary info top-left
- [Progressive]: essentials first → details on demand
- [Constrained]: dropdown over free text, radio over checkbox swarm
- [Recoverable]: undo for destructive, soft-delete over hard-delete
- [Semantic]:
<button>not<div onclick>,<label>for all inputs
Forms
- layout: single column, labels top-aligned
- groups: visual separation between related fields
- defaults: pre-fill from context
- password: strength indicator + reveal toggle
- submit: loading state + disable button
Feedback
- <100ms → immediate state change
1s → skeleton/progress bar
- success → inline confirmation at action source
- error → inline at source
- empty → guide next action: "Add your first {item}"
Destructive
- [Decision] reversible → Ctrl+Z undo | irreversible → confirm modal
- confirm modal: show affected items, require explicit action
- critical (delete account) → type-to-confirm