interaction-design
Design intuitive, meaningful interactions grounded in user goals and cognitive principles. Use when designing component behaviors, user flows, feedback systems, error handling, loading states, transitions, accessibility, keyboard navigation, touch/gesture interactions, or when evaluating interaction quality. Also use for modal vs modeless decisions, direct manipulation patterns, input device considerations, emotional/dramatic aspects of UX, or when asked about making interfaces feel responsive, humane, and goal-directed.
What this skill does
# Interaction Design Design interactions that help real people accomplish real goals with minimum friction and maximum meaning. ## The Fundamental Question Before any pattern or timing value, ask: **What is the user trying to accomplish, and how does this interaction help or hinder that goal?** Interaction design is not about mechanisms. It is about helping specific people achieve specific purposes while respecting their time, attention, and humanity. ## Output Contracts ### Interaction Specification ```markdown ## Interaction Spec: [Component Name] ### User Goal What is the user trying to accomplish? What are the stakes? ### Conceptual Model How should users understand this interaction? What mental model should they form? ### States & Transitions | State | Appearance | Transition | Emotional Tone | |-------|------------|------------|----------------| | Default | [appearance] | — | [calm/ready/inviting] | | Hover | [changes] | 150ms ease-out | [responsive/acknowledged] | | Active | [pressed] | 50ms | [committed/engaged] | | Loading | [feedback] | — | [progressing/patient] | | Success | [confirmation] | 200ms | [accomplished/closure] | | Error | [clear indication] | — | [recoverable/guided] | ### Keyboard & Input - Tab: [focus behavior] - Enter/Space: [activation] - Escape: [reversal/dismissal] - Touch: [gesture, target size] ### Error Prevention & Recovery - How does design prevent errors? - What happens when errors occur? - How does user recover? ### Accessibility - Screen reader announcement - Focus management - Reduced motion behavior ``` ### Flow Analysis ```markdown ## Flow Analysis: [Journey Name] ### User Goal & Stakes What does success mean? What does failure cost? ### Dramatic Arc - Setup: How does user enter this flow? - Rising action: What builds toward the goal? - Climax: The moment of commitment/completion - Resolution: Confirmation and next steps ### Steps 1. [Step] → [Interaction] → [User feeling] ### Friction Analysis - Necessary friction (builds engagement/prevents errors) - Excise to eliminate (work that doesn't serve the goal) ### Error Paths - [Error scenario]: [Prevention] → [Recovery] ``` ## Core Principles ### 1. Goal-Directed Design Users are not "operators" triggering state changes. They are people with purposes. **Ask first:** - Who is using this? (Not abstract "users"—specific archetypes) - What are they trying to accomplish? - What excise can we eliminate? (Work that doesn't serve their goal) - How should they feel during and after? **The perpetual intermediate:** Most users are neither novices learning nor experts optimizing. They learned enough to work and won't learn more. Design for them—make the common path fast while keeping advanced options discoverable but unobtrusive. ### 2. Conceptual Models Users must form accurate mental models of how the system works. The gap between the designer's model and the user's model is where confusion lives. **The system image** (what users see and interact with) must accurately convey the designer's model. When users are confused, the system image has failed—not the user. **Signifiers** communicate where action is possible and how to perform it. A drag handle icon is a signifier; the ability to drag is the affordance. Design signifiers that make affordances discoverable. ### 3. Direct Manipulation Make the computer disappear so users concentrate on their task. **Core properties:** - Visible objects of interest, always accessible - Rapid, incremental, reversible actions - Immediate feedback—action and result visibly connected - Operations in the problem domain, not command syntax **The syntactic/semantic insight:** Direct manipulation works because it operates at the semantic level (the problem domain) rather than requiring translation into syntactic commands. This reduces cognitive load by eliminating the translation step. **When direct manipulation is inappropriate:** - Precise specification (typing "24pt" may be better than dragging) - Batch operations across many objects - Abstract operations without spatial metaphor - Expert users who prefer keyboard efficiency ### 4. Reversibility Enables Exploration Reversibility is not a feature—it is a psychological safety mechanism that transforms a system from intimidating to inviting. - **Undo depth:** Support multi-step undo, not just single-step - **Congruent inverses:** If Cmd+B bolds, Cmd+B unbolds (same action reverses) - **State visibility:** Show that undo is available - **Graceful degradation:** When true undo isn't possible, confirm before destructive actions ### 5. Error Prevention Over Error Handling Errors are usually design failures, not user failures. **Slips** (execution errors): User intends correctly but acts wrong - Prevent with constraints, defaults, confirmation for destructive actions **Mistakes** (intention errors): User forms wrong goal or plan - Prevent with clear conceptual models, visible system state **Design forcing functions:** - Interlocks: Require prerequisite actions - Lockins: Prevent stopping mid-action when dangerous - Lockouts: Prevent entering dangerous states See [references/cognitive-foundations.md](references/cognitive-foundations.md) for error psychology and prevention patterns. ### 6. Feedback & System Status Every action deserves acknowledgment. Users should never wonder "Did that work?" | Response Time | Perception | Design Response | |---------------|------------|-----------------| | <100ms | Instant | Direct result, no indicator | | 100ms–1s | Brief delay | Subtle state change (cursor, opacity) | | 1–10s | Noticeable wait | Spinner or determinate progress | | >10s | Long operation | Progress bar, estimate, allow cancel | **Optimistic UI:** Update immediately, reconcile errors gracefully. But be honest—don't show success before confirming it for important actions. ### 7. Modality: A Necessary Evil Modes cause errors when users forget which mode they're in. But modes also isolate cognitive scope and can reduce errors when users would otherwise forget context. **Use modeless design** (inspectors, inline editing) when: - User needs to see results while adjusting - Trial-and-error is expected - Context switching is frequent **Accept modality** when: - Isolating scope reduces errors (complex multi-step wizards) - Action is destructive and confirmation prevents accidents - System needs exclusive attention (authentication) **If you must use modes:** - Make current mode highly visible (not just status bar) - Ensure mode indicators are near the locus of attention - Provide quick escape (Escape key, clear exit path) ### 8. Meaning and Emotional Design Interactions are not just efficient or inefficient—they carry meaning. **Visceral level:** Immediate emotional response to appearance **Behavioral level:** Pleasure or frustration from use **Reflective level:** What the experience means, how it's remembered A loading state that builds anticipation differs from one that frustrates—same mechanism, different meaning. Consider: - What should the user feel during this interaction? - What story does this interaction tell? - How does completing this action transform the user's situation? See [references/goals-and-context.md](references/goals-and-context.md) for dramatic structure and emotional design. ## Decision Frameworks ### Activation Type | Use Frequency | Recommended Activation | Rationale | |---------------|------------------------|-----------| | Constant | Always visible (spatial) | Zero activation cost | | Frequent | Keyboard shortcut + visible control | Fast for regulars, discoverable for others | | Occasional | Menu or command palette | Saves space, still findable | | Rare/Dangerous | Menu only, possibly nested | Prevents accidents | ### When to Animate Animation serves purposes—it is not decoration. **Animate when:** - Maintaining object constancy during transitions - Communicating causality (this caused that) - Reducing change blindness
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.