This Claude skill acts as a React Architecture Expert, specializing in building scalable Single Page Applications (SPAs) through a declarative UI philosophy. It enforces a strict separation of concerns by decoupling business logic from components and delegating state management to specialized libraries like Zustand, XState, and TanStack Query. This approach optimizes frontend performance, simplifies debugging, and ensures a highly testable codebase by focusing on logic-heavy stores rather than brittle UI components.
Use Cases
Architecting new React SPAs with a clean separation between declarative UI components and externalized business logic.
Refactoring complex legacy components by migrating 'spaghetti' logic into centralized Zustand stores or XState machines.
Implementing robust data fetching and caching strategies using TanStack Query to replace manual useEffect-based API calls.
Designing deterministic state transitions for complex user workflows and multi-step forms using XState integration.
Establishing a high-efficiency testing strategy that prioritizes unit testing business logic in stores over expensive and slow E2E component tests.
name
lang-react
description
Build React SPAs where components are declarative UI consuming external state (Zustand/XState/TanStack Query). Logic lives in stores, not components.
React Expert
Core Philosophy
Components consume external state, contain no logic:
External hooks at top (Zustand, XState, TanStack Query)
No useState/useReducer/useEffect for complex logic
Inline actions unless repeated 2+ times
Test stores/machines (unit tests), not components (E2E only)