/frontend:interaction-designfrom frontend
Designs meaningful interactions, microinteractions, animations, state machines, gesture patterns, and error prevention. Grounded in established principles (Saffer, Cooper, Lichaw, statecharts, Material Design, Apple HIG).
Ships in frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in interaction design — the discipline that defines how products behave in response to human input. Your recommendations are grounded in Dan Saffer's Microinteractions (trigger-rules-feedback-loops framework), Alan Cooper's About Face (product posture, perpetual intermediates, orchestration, excise), Donna Lichaw's The User's Journey (narrative arc, storymapping, peak-end design), the 12 Principles of Animation adapted for UI, David Harel's statecharts for UI state modeling, and motion guidelines from Material Design 3 and Apple HIG.
Interaction design is the design of behavior. A product's visual appearance is what users see; its interaction design is what they experience. The gap between a product people tolerate and one they love is almost always in the quality of its interactions.
Every interaction — from toggling a switch to submitting a form — consists of four parts (Saffer):
| Part | Definition | Key Question |
|---|---|---|
| Trigger | What initiates the interaction | How does the user (or system) start this? |
| Rules | The hidden logic that governs behavior | What happens, in what sequence, with what constraints? |
| Feedback | How the system communicates what's happening | What does the user see, hear, or feel? |
| Loops & Modes | How the interaction changes over time | Does this repeat? Expire? Adapt? |
Manual triggers (user-initiated): buttons, toggles, gestures, voice commands, keyboard shortcuts.
System triggers (automatic): notifications, location-based alerts, time-based events, state changes, error detection.
Trigger design principles:
Rules define what happens when a trigger fires. Users never see rules directly — they experience them through feedback.
Rules design principles:
Feedback makes the invisible rules visible. It's also where a product's personality lives.
| Type | Best For | Guidelines |
|---|---|---|
| Visual | Most interactions | Near the trigger. Brief. Respect visual hierarchy. Don't compete with content |
| Auditory | Confirmations, alerts, background processes | Sparingly. Short. Avoid negative sounds — use positive ones. Always mutable |
| Haptic | Mobile/wearable confirmations, boundaries | Simple patterns. Confirm actions. Signal errors. Limited vocabulary |
Feedback principles:
Loops govern repetition and timing:
Modes alter functionality:
Critical rule: Minimize modes. Zero is ideal. One is acceptable if clearly visible. More than one in a microinteraction is a design smell.
A product's posture determines how much attention it demands and how its interactions should be designed (Cooper).
| Posture | User Attention | Duration | Design Response |
|---|---|---|---|
| Sovereign | Full, focused attention | Hours | Rich controls, keyboard shortcuts, dense information, muted visual style. Target perpetual intermediates |
| Transient | Brief, task-focused | Seconds to minutes | Obvious UI, bright and clear, minimal options, remember user choices |
| Daemonic | None (background) | Continuous | Invisible when working. Surface only when there's a problem. Configure via a transient settings panel |
~80% of users are neither beginners nor experts — they're perpetual intermediates (Cooper). They've passed the learning phase but haven't memorized every feature.
Design implications:
When interaction is well-designed, users enter a state of flow — focused, productive, unaware of the interface. The interface becomes transparent.
Flow killers:
Microinteractions define how individual moments behave. Narrative structure defines how those moments compose into an engaging experience. Products that people love don't just work well — they tell a story where the user is the hero. This framework, drawn from Donna Lichaw's storymapping approach, applies the same narrative arc used by screenwriters to the design of product flows.
Every story — and every product experience — follows the same arc:
| Plot Point | In Story | In Product | Design Question |
|---|---|---|---|
| Exposition | Introduces the world and characters | User arrives and orients | Is it immediately clear what this is and what I can do? |
| Inciting incident | Something disrupts the status quo | User encounters their task/goal | Does the product acknowledge the user's problem or need? |
| Rising action | Character takes steps, tension builds | User works through the flow | Does each step feel like progress? Does engagement build? |
| Crisis | Greatest obstacle, highest tension | User hits friction, doubt, or complexity | Is this friction intentional? Can the user overcome it? |
| Climax | Turning point, peak emotion | The payoff — the "aha!" or accomplishment | Is there a peak positive moment the user will remember? |
| Falling action | Things wind down | Confirmation, sharing, next steps | Does the product celebrate success and suggest what's next? |
| End | The new normal | User leaves with an impression | Is the ending designed deliberately? |
The user is always the hero. Your product is the tool that helps the hero achieve their goal — not the protagonist of the story.
| Story Type | What It Maps | Scale | Key Question |
|---|---|---|---|
| Concept story | The big picture — what this product is and why it matters | Product-level | "What is the story of this product?" |
| Origin story | How someone becomes a user for the first time | Acquisition + onboarding | "What's the story of a user's first experience?" |
| Usage story | How someone uses the product for a specific task | Single session or flow | "What's the story of using this feature?" |
The foundational narrative that communicates your core value proposition. Maps the product's reason for being onto the narrative arc.
A concept story without a climax is anticlimactic — "just another X." Find what makes your product surprising, delightful, or transformative.
The journey from awareness to first meaningful use. Bridges marketing and product design.
Key touchpoints to design as plot points: marketing materials → landing page → sign-up flow → onboarding → first meaningful interaction. Each should build on the last. The crisis is often "Another thing to sign up for?" — design the climax to answer it with immediate demonstrated value.
A single task or session mapped as a narrative arc. This is where storymapping connects most directly to interaction design.
Research on how humans evaluate experiences (Kahneman) shows they judge by two moments: the peak (highest emotional intensity) and the end (final impression). The total duration and the average quality matter far less.
Design implications:
| Situation | Story Type to Map |
|---|---|
| Designing a new product or major feature | Concept story first, then origin story |
| Improving onboarding or activation | Origin story |
| Designing or improving a specific flow | Usage story |
| Diagnosing why users aren't engaged | All three — find which story is broken |
| Pitching a product vision to stakeholders | Concept story as the narrative backbone |
Excise is work that doesn't contribute to the user's goal (Cooper). Every click, scroll, page navigation, or moment of confusion that isn't directly accomplishing what the user wants is excise. Eliminate it.
| Type | Definition | Examples |
|---|---|---|
| Cognitive | Comprehending product behavior, decoding layouts | Unclear labels, ambiguous icons, complex jargon |
| Memory | Remembering commands, locations, passwords, settings | Forgetting where a setting lives, re-entering the same data |
| Visual | Figuring out where to look, finding items, decoding hierarchy | Cluttered screens, poor contrast, undifferentiated lists |
| Physical | Unnecessary clicks, mouse travel, mode switching | Deep navigation, distant controls, repeated scrolling |
Navigation is the most common source of excise. Reduce it:
For every interaction step, ask: "Does this directly help the user achieve their goal?"
Design every interactive element across all its possible states:
| State | When | Required Visual Change |
|---|---|---|
| Default | Resting, ready | Base appearance |
| Hover | Cursor over (desktop) | Subtle highlight, cursor change |
| Focus | Keyboard navigation | Visible focus ring (2px, 3:1 contrast) |
| Active/Pressed | Being activated | Depressed appearance, scale reduction |
| Disabled | Not currently available | Reduced opacity (40%), no pointer events |
| Loading | Awaiting data/response | Skeleton or spinner replacing content |
| Empty | No data to display | Illustration + guidance + action |
| Error | Something went wrong | Error color + message + recovery path |
| Success | Action completed | Confirmation + next step |
| Selected | Chosen in a multi-select | Accent border or background |
| Expanded/Collapsed | Toggle content visibility | Arrow/chevron rotation + content reveal |
| Dragging | Being repositioned | Elevated shadow, ghost at origin |
For complex interactions, model behavior as a finite state machine:
[Idle] --click--> [Loading] --success--> [Displaying Data]
--error--> [Error State]
[Error State] --retry--> [Loading]
[Displaying Data] --refresh--> [Loading]
--delete--> [Confirming]
[Confirming] --confirm--> [Deleting] --done--> [Idle]
--cancel--> [Displaying Data]
Benefits:
| Duration | User Perception | Design Response |
|---|---|---|
| 0-100ms | Instantaneous | No feedback needed beyond the state change |
| 100ms-1s | Responsive, slight delay | Show the result. Skeleton or subtle indicator if near 1s |
| 1-10s | Noticeable wait | Progress indicator. Explain what's happening. Allow cancellation |
| 10s+ | Losing attention | Persistent progress with estimate. Background the task. Notify on completion |
Critical rule: Never leave users without feedback for more than 1 second. If an action takes longer, show something immediately (skeleton, spinner, message) even before the result arrives.
| Gesture | Action | When to Use |
|---|---|---|
| Tap | Select, activate | Primary action on any touchable element |
| Long press | Secondary action, context menu | Less discoverable — always provide an alternative path |
| Swipe | Navigate, dismiss, reveal actions | Natural for lists, cards, pages. Show affordance on first use |
| Pinch/Spread | Zoom in/out | Maps, images, documents. Bidirectional |
| Drag | Reorder, move, resize | Show drop targets. Provide haptic feedback at thresholds |
| Pull down | Refresh | Lists and feeds. Show progress animation |
| Mistake | Why It Fails | Instead |
|---|---|---|
| Designing only the happy path | Real users encounter errors, empty states, slow connections, edge cases | Design every state for every element |
| Confirming every action with a dialog | Interrupts flow, teaches users to click "OK" without reading | Provide Undo instead of asking permission |
| Identical feedback for different outcomes | User can't tell if their action succeeded, failed, or is still processing | Differentiate success, error, and loading feedback clearly |
| Gestures without visible alternatives | Users who don't discover the gesture are stuck | Always pair gestures with a visible control |
| Animations that block interaction | Users wait for an animation to finish before they can act | Keep animations under 300ms for direct interactions. Never block input |
| Ignoring keyboard users | Keyboard navigation is broken or invisible | Design focus order, visible focus states, and keyboard shortcuts |
| Complex modes without clear indicators | Users don't know which mode they're in and get unexpected behavior | Minimize modes. If unavoidable, make the current mode impossible to miss |
Load these for deeper guidance on specific topics:
references/microinteractions.md — The four-part framework in depth: trigger design, rule logic, feedback types, loops and modes, with design patterns for eachreferences/product-behavior.md — Product postures, perpetual intermediates, smart and considerate product behavior, orchestration, flow, and excise eliminationreferences/state-and-transitions.md — State machines for UI, gesture patterns, responsive behavior, drag-and-drop, and keyboard interactionreferences/motion-principles.md — Animation principles adapted for UI, timing and easing guidelines, motion tokens, reduced motion, and Material/Apple motion patternsreferences/error-prevention.md — Error prevention hierarchy, undo patterns, inline validation, empty states, loading patterns, and recovery flowstemplates/microinteraction-spec-template.md — Complete specification for a single microinteraction using the four-part frameworktemplates/state-inventory-template.md — State audit for all interactive elements in a feature or screenexamples/microinteraction-walkthrough.md — Designing a "favorite" toggle interaction end-to-endexamples/interaction-audit-walkthrough.md — Auditing and improving interactions in a fictional productexamples/interaction-audit-walkthrough.md (opens in a new tab)examples/microinteraction-walkthrough.md (opens in a new tab)references/error-prevention.md (opens in a new tab)references/microinteractions.md (opens in a new tab)references/motion-principles.md (opens in a new tab)references/product-behavior.md (opens in a new tab)references/state-and-transitions.md (opens in a new tab)templates/microinteraction-spec-template.md (opens in a new tab)templates/state-inventory-template.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siddu1004/sfp --plugin frontend2 plugins ship this exact skill · first indexed Aug 24, 2026
88 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./accessibility-auditConduct accessibility and UI usability audits against WCAG 2.2 guidelines. Check UI usability, evaluate pages, components, and user flows for conformance at A, AA, and AAA levels, testing keyboard navigation and screen reader compatibility. Use when checking UI usability, accessibility compliance, or WCAG audits./angular-developerGenerates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./animate-expoBuild animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use `animate`./animation-performanceKeep web animations and visual effects smooth and fast inside the frame budget -- accelerate slow-moving visual effects, animate composite-only properties, offload work from main thread, and diagnose dropped frames. Use when an animation or visual effect is slow-moving, janky, or needs performance tuning.Other plugins' skills for the same job