react-patterns

Audit React 18/19 component architecture, hooks usage, and UI composition.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/meisijiya/ohMeisijiyaCode --skill react-patterns-meisijiya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/meisijiya/ohMeisijiyaCode/tree/main/skills/react-patterns
Command: npx skills add https://github.com/meisijiya/ohMeisijiyaCode --skill react-patterns-meisijiya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write and review React components with disciplined hooks usage, clear server/client boundaries, and predictable rendering behavior.

Core Features & Use Cases

  • Hooks discipline: Keep effects, subscriptions, and derived values in the right place.
  • Modern React architecture: Apply patterns for Server Components, Client Components, Suspense, error boundaries, and form actions.
  • State and performance decisions: Choose between local state, context, external stores, and memoization only when it is justified.
  • Accessibility-first composition: Build semantic, keyboard-friendly UI structures with proper labels and focus handling.

Quick Start

Use the react-patterns skill to review this React component for hooks discipline, state placement, server-client boundaries, and accessibility issues.

Frequently Asked Questions about react-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review React components for hooks discipline and correct state placement?

To review React components for hooks discipline and state placement, audit effect boundaries, keep derived values correct, and choose between local state, context, or external stores based on justified performance heuristics.

What is the best way to structure Server Components and Client Components in React 18/19?

The best way to structure Server Components and Client Components is to enforce clear server-client boundaries by ensuring serializable server-client props and correctly routing data fetching and Suspense boundaries across your React architecture.

How do I handle Suspense and error boundaries when fetching data in React?

Handling Suspense and error boundaries when fetching data in React requires wrapping asynchronous data fetching operations in Suspense boundaries and pairing them with error boundaries to gracefully manage loading states and rendering failures.

Why does my React component fail accessibility reviews and how can I fix it?

React components fail accessibility reviews when lacking semantic markup; fix this by building keyboard-friendly UI structures with proper labels, correct focus handling, and accessible composition throughout your component architecture.

Can I use this to audit React form actions and custom hooks?

Yes, you can audit React form actions and custom hooks by reviewing render purity, validating effect boundaries, and ensuring your custom hooks follow disciplined patterns for subscriptions and derived state.

When should I not use memoization in my React state management?

You should not use memoization in React state management when performance heuristics do not justify it; instead, rely on predictable rendering behavior and choose local state or context only when clearly needed for your component architecture.