ux-design
UX design principles, heuristics, and evaluation frameworks. Use when reviewing interface usability, planning user flows, evaluating designs against heuristics, or applying UX methodology to any product — web, mobile, CLI, or AI.
What this skill does
# UX Design Principles Reference for evaluating and designing user experiences. Start here for frameworks and heuristics; see reference files for domain-specific application. ## References - [Human-in-the-Loop AI Chat Systems](references/hitl-ai-chat.md) — Applying UX principles to AI interfaces, trust calibration, autonomy design, supervision patterns - [Form & Input Design](references/form-input-design.md) — Layout, input types, labels, validation, mobile touch, and accessibility for web forms - [Data Visualization UX](references/data-visualization.md) — Chart selection, visual encoding, color, labels, interaction, responsive charts, dashboard layout - [Performance as UX](references/performance-ux.md) — Response time thresholds, Core Web Vitals, perceived performance, loading states, optimistic UI, animation - [CLI & Terminal UX](references/cli-terminal-ux.md) — Command structure, output design, error messages, TUI patterns, scripting, composability - [UX for Onboarding & Empty States](references/onboarding-empty-states.md) — First-run experience, progressive disclosure, empty states, activation, returning users - [Error & Edge State Design](references/error-edge-states.md) — Error messages, prevention, form validation, loading failures, edge cases, destructive safeguards --- ## First Principles Before Frameworks Three gates before reaching for any established pattern: 1. **What is the actual user goal?** Not the feature, not the screen — the verb. "Find the broken deployment" not "view the dashboard." If you can't state it as an action, you don't understand the problem yet. 2. **Why does the current/conventional pattern exist?** Every UX convention solved a specific problem in a specific context. A sidebar nav solved "persistent access to many sections." If your product has 3 sections, that solved problem isn't yours. Name the original problem before inheriting the solution. 3. **What would you build if the pattern didn't exist?** Strip away convention. Given this user, this goal, this context — what's the minimum interface? Sometimes the answer is the same as the convention. Often it isn't. **Failure mode: Pattern-first design.** You reach for a dashboard layout because the prompt said "dashboard." You add a sidebar because apps have sidebars. You use tabs because there are categories. Every choice was a pattern match, none was a design decision. The interface works but solves no specific problem well. **Self-check:** For each major structural choice, can you explain why it's right for *this* problem without referencing convention? "Users need X, this structure enables X" — not "dashboards typically have this." --- ## Nielsen's 10 Usability Heuristics The most widely cited UX evaluation framework. Use for heuristic evaluation of any interface. | # | Heuristic | What to Check | |---|-----------|---------------| | 1 | **Visibility of system status** | Does the system keep users informed through timely, appropriate feedback? | | 2 | **Match between system and real world** | Does it use familiar language, concepts, and conventions? Information appears in natural order? | | 3 | **User control and freedom** | Can users undo, redo, and escape unwanted states easily? Clear "emergency exits"? | | 4 | **Consistency and standards** | Do same words/actions/situations mean the same thing everywhere? Follows platform conventions? | | 5 | **Error prevention** | Does design prevent problems before they occur? Confirmation for risky actions? | | 6 | **Recognition over recall** | Are options, actions, and information visible or easily retrievable? Minimal memory load? | | 7 | **Flexibility and efficiency** | Accelerators for experts? Shortcuts? Customizable frequent actions? | | 8 | **Aesthetic and minimalist design** | Only relevant information shown? No visual noise competing with essential content? | | 9 | **Help users recognize, diagnose, and recover from errors** | Error messages in plain language? Specific? Suggest solutions? | | 10 | **Help and documentation** | Searchable, task-focused, concise help available when needed? | Source: Nielsen Norman Group (1994, updated 2024). --- ## Don Norman's Design Principles Six concepts from *The Design of Everyday Things*. These apply to physical and digital products alike. - **Affordances** — What actions does the object/interface make possible? A button affords pressing. A text field affords typing. What does your interface afford that users don't realize? - **Signifiers** — Cues that indicate where and how to act. Affordances exist whether visible or not; signifiers make them discoverable. Underlines on links. Hover cursors. Placeholder text. - **Constraints** — Limitations that guide correct use. Grayed-out buttons prevent invalid actions. Type restrictions on inputs prevent bad data. Good constraints make errors impossible rather than recoverable. - **Mappings** — Spatial/logical correspondence between controls and outcomes. A slider that moves left-to-right to adjust a value from low-to-high. Navigation that mirrors information architecture. - **Feedback** — Immediate, clear communication of action results. Every action should produce a visible, audible, or tactile response. The gap between action and feedback is where uncertainty lives. - **Conceptual models** — The user's internal understanding of how the system works. Design must align with (or carefully reshape) mental models. When the system model and user model diverge, confusion follows. --- ## Shneiderman's 8 Golden Rules Complements Nielsen — more prescriptive about interaction design. 1. **Strive for consistency** — Consistent sequences for similar situations. Same terminology, consistent layout. 2. **Seek universal usability** — Accommodate novice to expert. Abbreviations, hidden commands, faster pacing for frequent users. 3. **Offer informative feedback** — Every action gets a response. Frequent/minor actions: modest. Infrequent/major actions: substantial. 4. **Design dialogs to yield closure** — Sequences of actions have beginning, middle, end. Give completion feedback. 5. **Prevent errors** — Design so users cannot make serious errors. Gray out invalid options. Offer confirmation. 6. **Permit easy reversal of actions** — Encourage exploration by making undo cheap. Reduces anxiety. 7. **Keep users in control** — Users are initiators, not responders. Avoid surprises, tedious data entry, difficulty getting needed info. 8. **Reduce short-term memory load** — Humans hold ~4 chunks in working memory. Keep displays simple, consolidate multi-page displays, allow sufficient training time. --- ## Gestalt Principles of Visual Perception How humans group and interpret visual elements. Essential for layout decisions. - **Proximity** — Elements close together are perceived as related. Spacing is the primary grouping mechanism. - **Similarity** — Elements that look alike (color, shape, size) are perceived as related. Consistent styling signals shared function. - **Continuity** — The eye follows smooth paths. Aligned elements feel connected even with gaps. - **Closure** — The mind completes incomplete shapes. You don't need borders on all sides to define a region. - **Figure-ground** — Users distinguish foreground (focus) from background (context). Elevation, contrast, and blur control this. - **Common region** — Elements within a shared boundary are grouped. Cards, panels, and containers leverage this. --- ## Fitts's Law & Interaction Cost **Fitts's Law:** Time to reach a target = f(distance / target size). Larger targets closer to the cursor are faster to hit. **Implications:** - Important actions should be large and near the user's current focus - Edge/corner positions are effectively infinite size (cursor stops at screen edge) - Contextual menus (right-click, long-press) reduce distance to zero - Tiny click targets (icon-only buttons, cramped nav items) violate this directly **Interaction cost** is the total mental and physi
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.