React component and hook structure rules plus Zustand state management...
Reusable patterns for scalable React codebases, including Zustand state management.
Use this skill when:
.tsx componentshooks/<area>/useXxx.tsutils/types/.tsx file.hooks/<area>/useXxx.ts).utils/.types/.'use client' for large
subtrees).uiStore, workspaceStore, statusLogStore).useStore((state) => state.specificValue).react-one-component-per-file - One component per file (STRICT)react-client-vs-server - Client vs Server Components (App Router)react-folder-namespacing - Folder namespacing for complex componentsreact-performance - Performance optimization (memo, useCallback)react-accessibility - Accessibility best practicesreact-component-testing - Component tests in __tests__, React Testing Libraryreact-one-hook-per-file - One hook per file (STRICT)react-no-helpers-in-hooks - No helpers inside hooks (STRICT)react-no-types-in-hooks - No types inside hooks (STRICT)react-stable-api - Stable API for hooksreact-side-effects - Side effects in hookszustand-when-to-use - When to use Zustand (modals, global UI state, shared
data)zustand-store-organization - Store organization (one store per domain,
selectors, actions)zustand-modal-pattern - Modal pattern with Zustand (read visibility from
store)zustand-avoiding-prop-drilling - Use Zustand stores instead of prop drillingbusirocket-core-conventions - General file structure and boundariesbusirocket-typescript-standards - TypeScript and type conventionsbusirocket-nextjs - Server vs Client Components (detailed)Read individual rule files for detailed explanations and code examples:
rules/react-one-component-per-file.md
rules/react-one-hook-per-file.md
rules/react-client-vs-server.md
rules/zustand-store-organization.md
rules/zustand-modal-pattern.md
Each rule file contains: