Skip to content
secondsky avatar

Interaction Design

Reusable UI patterns for loading, error, and empty states, plus motion and accessibility guidance.

CCM score
52 of 100
skills.sh installs
465
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers feedback patterns for microinteractions, transitions, and entrance animations with timing ranges for each
  • Includes CSS and React examples for skeleton loaders, error states with retry, empty states, and live status announcements
  • Enforces prefers-reduced-motion handling, visible focus indicators, and keyboard navigation support in its guidelines
  • Designed for front-end teams building loading, error, and empty states in web interfaces

Install

$ npx -y skills add secondsky/claude-skills --skill interaction-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Interaction Design

Create intuitive user experiences through thoughtful feedback and interaction patterns.

Interaction Patterns

PatternDurationUse Case
Microinteraction100-200msButton press, toggle
Transition200-400msPage change, modal
Entrance300-500msList items appearing

Loading States

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
function LoadingState({ isLoading, children }) {
  if (isLoading) {
    return <div className="skeleton" style={{ height: 200 }} />;
  }
  return children;
}

Error States

function ErrorState({ error, onRetry }) {
  return (
    <div className="error-container" role="alert">
      <Icon name="warning" />
      <h3>Something went wrong</h3>
      <p>{error.message}</p>
      <button onClick={onRetry}>Try Again</button>
    </div>
  );
}

Empty States

Details

Repository
github.com/secondsky/claude-skills
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

Questions

What does the interaction-design skill do?

It creates intuitive user experiences through feedback patterns, microinteractions, and accessible interaction design. It covers loading states, error handling UX, animation guidelines, and touch interactions.

How do I install the interaction-design skill?

Run npx -y skills add secondsky/claude-skills --skill interaction-design -y in your project. Once installed, the agent can build loading states, error states, empty states, and accessible animation patterns.

Where does interaction-design stand in the Frontend and UI Code category?

It is one of the skills in the Frontend and UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, and design-taste-frontend. It focuses on the feedback and interaction side of UI work, such as skeleton loaders and reduced-motion support.

Does interaction-design cover accessibility?

Yes, it includes accessibility guidance such as live regions that announce state changes to screen readers and respecting the prefers-reduced-motion setting. It also recommends keeping focus indicators visible and testing with keyboard navigation.

More from secondsky/claude-skills

All 116

Similar to Interaction Design

More Frontend & UI Code