Logo vun Interaction Spec

Interaction Spec

Communautéit
LuckyOneTwoThree
interaction-spec

Use when translating user flows and prototype designs into interaction design specifications. Generates interaction spec documents including state machines, animation specifications, gesture operations, feedback mechanisms, accessibility interactions, and exception state handling. Keywords: interaction design specification, interaction spec, state machine, animation specification, gesture operations, interaction feedback, accessibility interaction, motion design specification.

Iwwersiicht

EditeurLuckyOneTwoThree
Repositoryvibe-skill
Skill-Numminteraction-spec
Stären
34
Forks
8
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum LuckyOneTwoThree op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Interaction Spec an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/interaction-spec
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LuckyOneTwoThree/vibe-skill.git /tmp/vibe-skill
mkdir -p .claude/skills
cp -r /tmp/vibe-skill/.codex/skills/interaction-spec .claude/skills/interaction-spec
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Interaction Spec an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Interaction Spec automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Interaction Spec net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Interaction Design Specification Document Generation

Core Principles

Interaction specifications are the constitution of user experience

Interaction design specifications ensure that every interaction behavior in the product has a consistent, predictable, and accessible experience. Specifications are not about limiting creativity, but about guaranteeing the baseline quality of foundational experiences, allowing designers to focus on innovation rather than repeatedly defining basic interactions.

Interaction Mode

AI->Human AI suggests, human approves

Input

Input ItemTypeRequiredSourceDescription
User FlowJSONYesdesign-userflowUser flow diagrams, state transitions, decision nodes
Prototype SpecificationJSONYesdesign-prototypePrototype design, interaction annotations, component specifications
Design Handoff DocumentmarkdownNodesign-handoff-specDesign tokens, component specifications, responsive breakpoints
Brand GuidelinestextNoUser inputBrand tone, animation style preferences

Degradation Strategy

Missing Upstream InputDegradation PlanOutput ImpactData Acquisition Instructions
User flow missingDerive interaction flow from prototypeFlow pending confirmation, interaction state machine may be less completeRequest user to describe user tasks and flow, or upload design-userflow output file
Prototype specification missingGenerate interaction spec framework based on user flowPending prototype validation, component interaction specs may be less preciseRequest user to describe page layouts and components, or upload design-prototype output file
Design handoff document missingInteraction spec uses independent numberingSubsequent alignment with handoff document needed, token references may be inconsistentRequest user to provide design tokens and component specs, or upload design-handoff-spec output file
Brand guidelines missingAdopt neutral interaction stylePending brand confirmation, animation style may need adjustmentRequest user to provide brand tone and animation style preferences

Execution Steps

Step 1: Interaction State Machine Definition [Core]

Define interaction state machines for each core component and page:

  1. State Enumeration: Default / Hover / Active / Focus / Disabled / Loading / Error / Empty / Success
  2. State Transition Table: Trigger conditions, transition actions, transition intents
  3. State Priority: Priority rules when multiple states overlap (e.g., Disabled + Error)
  4. State Persistence: Rules for transient vs. persistent state retention

Step 2: Animation and Transition Intents [Core]

Define the intents of animations and transitions in the product; specific implementation parameters are determined by UI Skill (ext-interaction-design + page-builder) based on visual_direction:

  1. Transition Intents (does not define specific easing functions or durations):
    • General transitions: Should feel natural and smooth
    • Enter animations: Should have a deceleration feel, elements approaching from a distance
    • Exit animations: Should have an acceleration feel, elements moving away into the distance
    • Frequent toggles: Should be crisp and decisive, no lingering
  2. Animation Intent Standards (does not define specific millisecond values):
    • Micro-interactions (button feedback, toggle switches): Should be immediately perceptible
    • Small transitions (dropdown expand, lightweight feedback): Should complete quickly
    • Large transitions (page switches, modals): Should have rhythm
    • Complex animations (data visualization, 3D transforms): Should have narrative quality
  3. Animation Performance: Only use transform and opacity; avoid triggering layout and paint
  4. Reduced Motion: prefers-reduced-motion adaptation rules

Step 3: Gesture and Operation Intents [Core]

Define intents and constraints for gesture operations across platforms; specific thresholds are determined by UI Skill based on platform specifications and visual_direction:

  1. Tap/Press:
    • Touch targets should meet platform accessibility standards (iOS/Android/Web each have specifications)
    • Long-press operations need haptic or visual feedback
    • Double-tap operations need a reasonable time window
  2. Swipe/Drag:
    • Swipe operations should have reasonable trigger sensitivity (avoid accidental triggers)
    • Swipes should have inertia and deceleration effects
    • Edge swipes must preserve system gestures
  3. Pinch/Rotate:
    • Zoom range should have reasonable upper and lower limits
    • Rotation operations should have snap assist
  4. Keyboard Operations:
    • Tab order and focus management rules
    • Keyboard shortcut mapping table
    • Enter/Space activation rules

Step 4: Feedback Mechanism Specification [Core]

Define feedback standards for user operations:

  1. Immediate Feedback:
    • After user operation, immediately perceive that the system has received it
    • Button pressed state, link hover state
    • Input field focus state, toggle switch state
  2. Progress Feedback:
    • Long operations need to provide progress awareness
    • Loading states need visual placeholders to avoid page jumps
    • Quantifiable operations like upload/download need progress indicators
  3. Result Feedback (after operation completion):
    • Success: Operation results must be clearly fed back to users; success state must be distinguishable
    • Warning: Must attract user attention but not block operations; users must be able to actively confirm or wait for auto-dismissal
    • Error: Error state must be clearly distinguishable from normal state; users must be able to quickly identify and understand the error cause
    • Information: Must provide supplementary explanation without interfering with the main flow
  4. No Feedback Scenarios: Explicitly list operations that don't need feedback and the reasons

Step 5: Exception State Interactions [Core]

Define interaction handling for exception scenarios:

  1. Network Error: Must clearly inform users that the network is unavailable, provide retry opportunity and locally available content
  2. Empty Data: Must avoid blank pages, provide ways to guide users to generate content
  3. Insufficient Permissions: Must explain permission restriction reasons, provide ways to apply or alternative operations
  4. Data Overflow: Must reasonably display truncated content, provide ways to view complete content
  5. Concurrent Conflicts: Must detect and inform of conflicts, provide user decision paths

Step 6: Accessibility Interaction Specification [Core]

Ensure interactions meet accessibility standards:

  1. WCAG 2.1 AA Compliance:
    • Perceivable: Text alternatives, time-based media alternatives, adaptability, distinguishability
    • Operable: Keyboard operable, sufficient time, seizure safety, navigability
    • Understandable: Readability, predictability, input assistance
    • Robust: Compatible with assistive technologies
  2. Focus Management: Focus trap (Modal), focus restoration (after closing Modal), focus order
  3. ARIA Labels: Role (role), state (aria-state), property (aria-property) usage specifications
  4. Screen Readers: Read-aloud text and read-aloud order for key interactions

Step 7: Report Assembly [Core]

Assemble the above content into a complete interaction design specification document.

Output Depth Grading

Depth LevelOutput ScopeDescription
quickinteraction specifications and state designCore conclusions + minimum viable deliverable
standardFull deliverables (default)Complete output including all Steps
deepFull spec + state machine full coverage + motion design specs + accessibility interaction designFull deliverables + extended analysis + deep simulation

Output

Output Files

FilePathDescription
Interaction Design Specificationoutput/pm-design/interaction-spec/interaction-spec.mdHuman-readable complete specification
Structured Dataoutput/pm-design/interaction-spec/interaction-spec.jsonMachine-consumable structured data

Markdown Report Structure

markdown
# Interaction Design Specification: {Product Name}

**Output Validation Rules**: See Output Validation Rules section below

## 1. Interaction State Machine
- State enumeration and definitions
- State transition table
- State priority rules
- State persistence rules

## 2. Animation and Transition Intents
- Transition intents (natural and smooth/deceleration feel/acceleration feel/crisp and decisive)
- Animation duration intents (immediately perceptible/quickly complete/rhythmic/narrative)
- Performance constraints
- Reduced motion adaptation

## 3. Gesture and Operation Intents
- Tap/press intents
- Swipe/drag intents
- Pinch/rotate intents
- Keyboard operation specifications

## 4. Feedback Mechanism Specification
- Immediate feedback
- Progress feedback
- Result feedback (success/warning/error/information)
- No feedback scenarios

## 5. Exception State Interactions
- Network error
- Empty data
- Insufficient permissions
- Data overflow
- Concurrent conflicts

## 6. Accessibility Interaction Specification
- WCAG 2.1 AA compliance check
- Focus management rules
- ARIA label specifications
- Screen reader adaptation

## 7. Interaction Specification Index
- Component x State cross-reference table
- Animation x Scenario cross-reference table

JSON Structure

json
{
  "product_name": "",
  "report_date": "",
  "state_machines": {
    "states": [],
    "transitions": [
      {
        "from": "",
        "to": "",
        "trigger": "",
        "transition_intent": "",
        "completeness_check": ""
      }
    ],
    "priority_rules": [],
    "persistence_rules": []
  },
  "animation": {
    "transition_intents": [],
    "duration_intents": [],
    "performance_constraints": [],
    "reduced_motion": {}
  },
  "gestures": {
    "tap_press_intents": {},
    "swipe_drag_intents": {},
    "pinch_rotate_intents": {},
    "keyboard": {}
  },
  "feedback": {
    "immediate": [
      {
        "trigger": "",
        "intent": "",
        "completeness_check": ""
      }
    ],
    "progress": [
      {
        "trigger": "",
        "intent": "",
        "completeness_check": ""
      }
    ],
    "result": [
      {
        "trigger": "",
        "intent": "",
        "completeness_check": ""
      }
    ],
    "no_feedback_scenarios": []
  },
  "error_states": {
    "network_error": {
      "intent": "",
      "completeness_check": ""
    },
    "empty_state": {
      "intent": "",
      "completeness_check": ""
    },
    "permission_denied": {
      "intent": "",
      "completeness_check": ""
    },
    "data_overflow": {
      "intent": "",
      "completeness_check": ""
    },
    "concurrent_conflict": {
      "intent": "",
      "completeness_check": ""
    }
  },
  "accessibility": {
    "wcag_compliance": [],
    "focus_management": [],
    "aria_specifications": [],
    "screen_reader": []
  }
}

Quality Checks

P0 Checks (must pass for quick/standard/deep)

  • State machine complete (All 8 basic states covered)
  • Animation performance compliant (Only uses transform/opacity)

P1 Checks (must pass for standard/deep)

  • Accessibility compliant (WCAG 2.1 AA fully covered)
  • Feedback fully covered (Every user operation has corresponding feedback)

P2 Checks (must pass for deep only)

  • Extended analysis complete (deep simulation and roadmap generated)
  • Decision records complete (key decisions have rationale and alternatives)

Output Validation Rules

Field PathTypeRequiredDescription
product_namestringYesProduct name
report_datestringYesReport date (ISO8601)
state_machinesobjectYesInteraction state machine
state_machines.statesarrayYesState enumeration, at least 8
state_machines.transitionsarrayYesState transition table, each item includes from/to/trigger/transition_intent/completeness_check
state_machines.priority_rulesarrayYesState priority rules
animationobjectYesAnimation and transition intents
animation.transition_intentsarrayYesTransition intent list
animation.duration_intentsarrayYesAnimation duration intent list
gesturesobjectYesGesture and operation intents
feedbackobjectYesFeedback mechanism specification
feedback.immediatearrayYesImmediate feedback list, each item includes trigger/intent/completeness_check
feedback.resultarrayYesResult feedback list, each item includes trigger/intent/completeness_check
error_statesobjectYesException state interactions
accessibilityobjectYesAccessibility interaction specification
accessibility.wcag_compliancearrayYesWCAG compliance check items

Decision Rules

  • When both user flow and prototype specification are complete, generate full interaction specification (state machine + animation + gestures + feedback + accessibility)
  • When only user flow is available, generate interaction specification framework; animation and gesture specifications marked "Pending prototype validation"
  • When platform differences exist (iOS/Android/Web), define platform-specific interaction specifications separately
  • Decision points requiring human confirmation: Animation style preferences, accessibility compliance level (AA/AAA), gesture conflict resolution strategy

Degradation Strategy

  • When user flow is missing: Derive interaction flow from prototype; state machine may be less complete
  • When prototype specification is missing: Generate interaction specification framework based on user flow; component interaction specs pending prototype validation
  • When design handoff document is missing: Interaction specification uses independent numbering; subsequent alignment with handoff document needed
  • When data is unavailable: Generate generic interaction specification template; all specific values marked "Pending product confirmation"

Upstream Change Response

Upstream Change Impact

Upstream ChangeImpact ScopeResponse Strategy
User flow change (path/branch modification)Interaction state machine, feedback mechanismsMark affected state transitions, suggest human confirmation on whether to update interaction specification
Prototype specification change (component/interaction modification)Gesture operations, feedback mechanisms, exception statesMark affected interaction definitions, suggest human confirmation on whether to update
Design handoff document change (token/component adjustment)Token references in animation specificationsMark affected token references, suggest human confirmation on whether to update
Brand guidelines changeAnimation style, easing functionsMark affected animation definitions, suggest human confirmation on whether to adjust style

Downstream Notification Mechanism

Interaction Specification Change TypeNotification ScopeNotification Method
State machine changedesign-handoff-specMark state machine change, trigger handoff document update
Animation specification changedesign-handoff-specMark animation change, trigger handoff document interaction rule update
Gesture specification changedesign-handoff-specMark gesture change, trigger handoff document update
Accessibility specification changedesign-handoff-specMark accessibility change, trigger handoff document update

Alignment with prd.json Data Contract

This Skill's Output Fieldprd.json Corresponding FieldAlignment Rule
state_machines[].nameprd.json.pages[].nameState machine name corresponds to PRD page name
state_machines[].states[]prd.json.pages[].states[]State machine states must cover the 5 special states defined in PRD (empty/loading/error/partial/permission)
state_machines[].states[].triggersprd.json.pages[].states[].triggersState trigger conditions must be consistent with PRD definitions

Heefeg gestallte Froen

Wat mécht de KI-Skill Interaction Spec?

Use when translating user flows and prototype designs into interaction design specifications. Generates interaction spec documents including state machines, animation specifications, gesture operations, feedback mechanisms, accessibility interactions, and exception state handling. Keywords: interaction design specification, interaction spec, state machine, animation specification, gesture operations, interaction feedback, accessibility interaction, motion design specification.

Firwat Interaction Spec op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Interaction Spec besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Interaction Spec an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/interaction-spec an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Interaction Spec benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Interaction Spec benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Interaction Spec domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Interaction Spec gratis?

Jo. De Skill gëtt vum LuckyOneTwoThree ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇