
Interaction Design Specification Generator
Generate developer-ready interaction specs with state diagrams and edge case handling
What You Can Do
You can generate detailed interaction specifications for complex user flows and component behaviors that eliminate ambiguity in handoff. The skill produces structured documentation including state diagrams, transition tables, animation timing, keyboard navigation patterns, error handling workflows, and accessibility requirements—all formatted for both designers and developers to reference.
Features
Visual and textual representations of component states (enabled, disabled, loading, error, success) and transitions between them
Detailed specs for micro-interactions including timing, easing curves, triggers, and conditional logic
Identifies and documents error states, loading states, empty states, and boundary conditions often missed in design handoff
Keyboard navigation patterns, screen reader behavior, ARIA requirements, and focus management for each interaction
Precise documentation of animation duration, easing functions, and sequencing for consistency across implementations
Maps conditional logic and branching user flows with clear entry/exit points and fallback behaviors
Generates prose descriptions, structured tables, and state machine diagrams suitable for different stakeholder review
Creates interaction convention guidelines for design systems and component libraries
Example Output
Example 1: Form Field Validation Micro-interaction
- States: Default → Focused → Validating → Success / Error
- Transitions: OnFocus triggers outline color change (200ms ease-out), onBlur triggers validation check, success state shows checkmark (300ms scale animation)
- Edge cases: Disabled field styling, validation error message with live region announcement, recovery path when user corrects input
Example 2: Modal Dialog State Diagram
Closed → Opening (backdrop fade-in 150ms) → Open
↓ ↓
[ESC key / backdrop click] [Submit/Cancel]
↓ ↓
Closing (fade-out 200ms) → Closed
With documented focus management, scroll locking, and keyboard trap specifications.
Example 3: Data Table Pagination
- States: Loading, Loaded (with results), Empty, Error
- Accessibility: Screen reader announces "Page 2 of 5 loaded, 20 results displayed"
- Keyboard: Tab order, arrow key navigation within table, Enter to sort columns
What's Included
- SKILL.md: Core instruction file with skill overview and usage guidelines
- Interaction Specification Template: Structured markdown template covering states, transitions, animations, accessibility, and edge cases
- State Diagram Syntax Guide: Quick reference for creating ASCII/Mermaid state diagrams
- Micro-interaction Checklist: Common interaction patterns (modals, dropdowns, form validation, loaders) with standard state requirements
- Accessibility Requirements Framework: Checklist for keyboard navigation, ARIA, focus management, and screen reader announcements
Who It's For
- Interaction Designers — Creating detailed handoff documentation that reduces dev clarification questions
- UX Designers — Specifying component interactions and user flow behaviors with precision
- Design System Managers — Building reusable interaction pattern libraries and conventions
- Product Managers — Documenting interaction requirements and edge case handling for feature specs
- Frontend Developers — Understanding design intent without back-and-forth clarification cycles
Best For
- Micro-interaction design (modals, dropdowns, tooltips, form validation, loaders)
- Complex user flows with multiple conditional paths and decision points
- Component state machine documentation for design systems
- Animation and transition timing specifications
- Accessibility and keyboard navigation pattern documentation
- Error recovery and edge case handling workflows







