secondsky avatar

Interaction Design

Covers the fundamentals of feedback patterns and state handling with practical React examples for loading skeletons, error messages, and empty states. Includes a helpful timing reference table showing microinteractions should stay under 200ms while entrance animations can stretch to 500ms. The accessibility reminders about prefers-reduced-motion and screen reader announcements are solid. Most useful when you're implementing those in-between moments that make interfaces feel responsive rather than just functional. The CSS shimmer loader is ready to copy-paste, and the guidelines around immediate feedback and keyboard navigation hit the important points without overcomplicated patterns.

skills.sh installs
456
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from secondsky/claude-skills

All 146

Recommended

More Debugging
1traderspost avatarpine-backtestertraderspost/pinescript-agentsImplements comprehensive backtesting and performance metrics. Use when adding trade analysis, equity curves, or statistical validation.456skills.sh installs
2bobmatnyc avatarwordpress-advanced-architecturebobmatnyc/claude-mpm-skillsAdvanced WordPress development with REST API endpoints, WP-CLI commands, performance optimization, and caching strategies for scalable applications.455skills.sh installs
3naodeng avatartest-case-writingnaodeng/awesome-qa-skillsUse this skill when you need to create high-quality test cases with normal, exception, and boundary scenarios; triggers include test case writing and test desig455skills.sh installs
4ythx-101 avatarx-tweet-fetcherythx-101/x-tweet-fetcherFetch tweets, replies, timelines, search results, X Lists, and X Articles from X/Twitter without login or API keys. Single tweets: zero dependencies (FxTwitter)455skills.sh installs
5next-safe-action avatarsafe-action-tanstack-querynext-safe-action/skillsUse when integrating next-safe-action with TanStack Query (React Query) -- mutationOptions(), useMutation, ActionMutationError error handling, type guards, opti453skills.sh installs
6openclaudia avatarcopy-editingopenclaudia/openclaudia-skillsLine-by-line copy editing and improvement for marketing content. Polish existing copy for clarity, conciseness, impact, and conversion. Trigger phrases: "edit m453skills.sh installs