Skill library

Agent skill Web motion

Interaction Design

Add purposeful microinteractions and visual feedback to controls, loading states and transitions.

  • Microinteractions
  • Loading states
  • Feedback

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add wshobson/agents --skill interaction-design --agent claude-code --yes

Check this file in your project.claude/skills/interaction-design/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add wshobson/agents --skill interaction-design

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring a coding assistant with project access, a local preview, test data and the tools needed for the exercise.

View operation manual

What this skill helps with

  • Choose motion that communicates a change in state.
  • Match easing and timing to the kind of interaction.
  • Give buttons and async actions clear, accessible feedback.

Good for

  • Form feedback and loading states
  • Interactive buttons and controls
Exercise
Make a submit action communicate its current state
Inputs
One form action, timing constraints and success or failure behavior
Acceptance
Simulate slow success and failure in a test fixture. Verify repeated activation, keyboard focus, state announcements and reduced-motion behavior. Show what was checked and what still needs real service validation.
Skill name
interaction-design
Repository
wshobson/agents

Give the assistant a target, conditions and an acceptance action

Open-ended request

Review the whole website and fix anything you see.

The prompt does not define a target, test conditions or a verifiable outcome.

A scoped pilot

  1. Make a submit action communicate its current state
  2. One form action, timing constraints and success or failure behavior

Interaction Design operation manual

Make a submit action communicate its current state

One form action, timing constraints and success or failure behavior

  1. Confirm the surface and scope

    One form action, timing constraints and success or failure behavior

    Prompt · Step 1
    Use wshobson’s interaction-design and read the installed SKILL.md. Scope the work to [Target project and local route]. Use [Form route] and follow the Skill’s feedback and accessibility guidance to map idle, pressed, waiting, success and failure. Inspect how the current control signals each state and prevents duplicate activation.
  2. Follow the installed workflow

    Make a submit action communicate its current state

    Prompt · Step 2
    Use wshobson’s interaction-design and read the installed SKILL.md. Scope the work to [Target project and local route]. Implement [Approved interaction] using a small clear state change. Use the project’s current animation approach, with reduced motion and a visible outcome. Preserve keyboard and touch operation and the existing submit guard.
  3. Validate with reproducible steps

    Simulate slow success and failure in a test fixture. Verify repeated activation, keyboard focus, state announcements and reduced-motion behavior. Show what was checked and what still needs real service validation.

    Prompt · Step 3
    Use wshobson’s interaction-design and read the installed SKILL.md. Scope the work to [Target project and local route]. Simulate slow success and failure in a test fixture. Verify repeated activation, keyboard focus, state announcements and reduced-motion behavior. Show what was checked and what still needs real service validation.

Look up a specific workflow question

Tie each result to an actual surface, interaction, or source location.

Identify the right inputsSKILL.md
Command or reference
Make a submit action communicate its current state
Examples
One form action, timing constraints and success or failure behavior
Check real evidenceVerify
Command or reference
Make a submit action communicate its current state
Examples
Simulate slow success and failure in a test fixture. Verify repeated activation, keyboard focus, state announcements and reduced-motion behavior. Show what was checked and what still needs real service validation.

Troubleshooting and FAQ

What can I do with source access alone?

Review the implementation, cite evidence and list the required environment. Leave interaction claims pending where you cannot run them.

How do I confirm the task is complete?

Simulate slow success and failure in a test fixture. Verify repeated activation, keyboard focus, state announcements and reduced-motion behavior. Show what was checked and what still needs real service validation.