Skip to main content
skill

react-ui-patterns — Claude Code skill: what it does, how to install

Provides practical React interface conventions for handling loading states, empty collections, and network failures. Guides the assistant when building async components.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/react-ui-patterns
Open on GitHub

What react-ui-patterns does

This skill teaches Claude Code strict conventions for asynchronous React interfaces. It stops the agent from flashing spinners whenever cached information already exists on the screen. For predictable layouts, the guidelines demand skeleton placeholders, reserving spinners for button clicks or modal dialogs.

The instructions enforce an explicit error hierarchy alongside mandatory empty views for lists. Silently ignoring errors in catch blocks is forbidden. Crucially, buttons must lock during pending network requests to stop duplicate submissions. The skill also enforces visible user feedback for every triggered mutation.

What it helps with

  • prevent spinner flicker when cached records are present
  • assign skeleton loaders and spinners to appropriate UI contexts
  • disable submit triggers during active mutations
  • design informative empty states for search and collections

Example prompts for the agent

  • Build an order list component with proper skeleton, error fallback, and an empty state
  • Create a profile edit form that disables the submit trigger while pending and alerts on failure
  • Refactor the data loading view so background refetches do not trigger a full spinner

How to install react-ui-patterns

1claude-code-templates

npx claude-code-templates@latest --skill development/react-ui-patterns

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill react-ui-patterns -a claude-code

3Manually: put the files in place

~/.claude/skills/react-ui-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/react-ui-patterns/

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

Questions about react-ui-patterns

How do I install react-ui-patterns in Claude Code?

Run npx claude-code-templates@latest --skill development/react-ui-patterns in your terminal. This imports the skill into your Claude Code setup.

What is react-ui-patterns used for?

It provides guidelines for handling UI states in React, focusing on async fetches, error presentation, and empty views. These conventions help Claude Code write resilient components without flashing spinners or swallowed exceptions.

When does the skill advise using skeletons over spinners?

Skeletons are recommended during initial page loads for layouts with a predictable structure, like cards or lists. Spinners are reserved for modal actions, inline tasks, and button submissions.

Similar skills

All skills for Frontend and UI →

From the same set804

The whole set →

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