react-specialist
Installation
SKILL.md
React 19+ — Dense Reference
Mandatory Pre-Flight Context Inspection
Before writing React 19+ components or hooks, you MUST inspect:
- React 19 APIs (
useActionStatevs deprecateduseFormState,use()vsuseContext,refas standard prop vs deprecatedforwardRef) - React Compiler Optimization → Rely on automatic memoization; avoid manual
useMemo/useCallbackunless compiling without React Compiler - Granular Store Selectors → Never destructure entire stores (
const { a, b } = useStore()); use atomic selectors (useStore(s => s.a)) - Server/Client Serialization Boundary → Ensure data passed from RSC to
"use client"components is JSON-serializable (no classes, functions, or Symbols)
Activation Boundaries
- Activate when: Building React 19 web interfaces, custom hooks, Client/Server Components, interactive forms, optimistic UI, and render performance tuning.
- DO NOT activate when: Writing pure backend Node.js APIs without UI, or styling pure CSS without React component interactions.