What problem does it solve?
This Skill helps you avoid common Zustand performance and correctness pitfalls that cause unnecessary React re-renders, broken state synchronization, and hard-to-maintain store APIs.
Core Features & Use Cases
- Store architecture guidance: structure stores around feature domains, split monolith stores into small ones, and keep actions colocated with the state they mutate.
- Selector and render performance rules: always use selectors, prefer atomic selectors, stabilize return references (or use shallow strategies), and memoize expensive derived computations.
- Correct middleware and SSR/hydration practices: apply devtools/persist/immer in the right order, use persist version migration patterns, and guard or defer browser-only logic in SSR/Next.js.
Quick Start
Use the zustand Skill to review or refactor a React/Zustand store by applying the rule set to selector usage, action naming, update patterns, and SSR/hydration safety.