Skip to main content
skill CX Codex

micro-interaction-spec — Claude Code skill: what it does

Specifies one micro-interaction end to end: trigger, rules, feedback, loops and modes. Useful when a single interaction goes to engineering.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Owl-Listener/designer-skills --skill micro-interaction-spec -a claude-code
Open on GitHub

What micro-interaction-spec does

The skill walks you through a four-part framework. Trigger first: what starts the interaction — a user action like a click or swipe, a system event, or a condition based on time and threshold. Then rules: the logic and sequence, the branches and conditions. Feedback comes next, covering how the result reaches the user through color, size or position changes, motion, audio, or haptic patterns. Loops and modes close it out: does the interaction repeat, does it change over time, how does the first run differ from later ones.

Output follows one format: name, trigger, rule sequence, feedback per channel, duration and easing, loop behavior, accessibility notes. The skill lists common cases to work from — toggle switches with state animation, pull-to-refresh with progress, like buttons with a celebratory animation, inline form validation, button press depth, swipe actions with threshold feedback, long-press with radial progress.

It advises keeping durations short, 100–500ms for most interactions, giving immediate feedback, and respecting reduced-motion preferences. Test on target devices, because animation that looks fine on your machine can stutter on a phone. If you only need motion craft, reach for animation-principles; for multi-state components, use state-machine.

What it helps with

  • spell out the trigger and rules of one interaction before handing it off
  • map feedback across visual, audio and haptic channels
  • define first-time versus repeat behavior
  • fold reduced-motion and accessibility into the spec
  • set duration and easing for a state animation

Example prompts for the agent

  • Spec the micro-interaction for a theme toggle: trigger, rules, feedback, loops
  • Write a pull-to-refresh spec with progress indication using the skill's format
  • Break a like animation into trigger, rules and feedback, and add reduced-motion

How to install micro-interaction-spec

1Skills CLI (Vercel)

npx skills add Owl-Listener/designer-skills --skill micro-interaction-spec -a claude-code

2Manually: put the files in place

~/.claude/skills/micro-interaction-spec/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/micro-interaction-spec/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about micro-interaction-spec

How do I install micro-interaction-spec in Claude?

Run npx skills add Owl-Listener/designer-skills --skill micro-interaction-spec -a claude-code. The skill lands in ~/.claude/skills/micro-interaction-spec/SKILL.md.

What does micro-interaction-spec do?

It runs one micro-interaction through trigger, rules, feedback and loops with modes, then writes the result as a spec an engineer can follow.

How is it different from animation-principles and state-machine?

animation-principles covers motion craft alone. state-machine is for multi-state components. This skill specifies a single interaction in full.

Source text

SKILL.md · MIT
---
name: micro-interaction-spec
description: Specify one micro-interaction completely — trigger, rules, feedback, loops, and modes. Use when handing a single interaction to engineering. For motion craft alone use `animation-principles`; for multi-state components use `state-machine`.
---
# Micro-Interaction Spec
You are an expert in designing micro-interactions that make interfaces feel alive and intuitive.
## What You Do
You specify micro-interactions using a structured framework covering trigger, rules, feedback, and loops.
## Micro-Interaction Framework
### 1. Trigger
What initiates the interaction: user action (click, hover, swipe), system event (notification, completion), or conditional (time-based, threshold).
### 2. Rules
What happens once triggered: the logic and sequence of the interaction, conditions and branching.
### 3. Feedback
How the user perceives the result: visual change (color, size, position), motion (animation, transition), audio (click, chime), haptic (vibration patterns).
### 4. Loops and Modes
Does the interaction repeat? Does it change over time? First-time vs repeat behavior, progressive disclosure.
## Common Micro-Interactions
- Toggle switches with state animation
- Pull-to-refresh with progress indication
- Like/favorite with celebratory animation
- Form validation with inline feedback
- Button press with depth/scale response
- Swipe actions with threshold feedback
- Long-press with radial progress
## Specification Format
For each micro-interaction: name, trigger, rules (sequence), feedback (visual/audio/haptic), duration/easing, loop behavior, accessibility considerations.
## Best Practices
- Every micro-interaction should have a purpose
- Keep durations short (100-500ms for most)
- Provide immediate feedback for user actions
- Respect reduced-motion preferences
- Test on target devices for performance

© Owl-Listener · MIT · Owl-Listener/designer-skills

Similar skills

Everything for Design →

From the same set111

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor