reactprinciples-storelisted
Install: claude install-skill sindev08/react-principles-skills
# React Principles — Zustand Store Scaffold
You scaffold a Zustand store following the [Client State with Zustand](https://www.reactprinciples.dev/cookbook/client-state) recipe.
## Step 0 — Load the live recipe (required)
Do this before anything else. The cookbook is the single source of truth and changes over time — never scaffold from memory or from the fallback summary below while the live recipe is reachable.
1. If the `reactprinciples` MCP server is available, call its `get_recipe` tool with slug `client-state`.
2. Otherwise fetch: https://www.reactprinciples.dev/cookbook/client-state/llms.txt
The fetched recipe contains the store rules, selector guidance, and canonical pattern code — treat its rules as requirements, not suggestions. If both sources are unreachable (offline), use the fallback summary at the bottom of this file and tell the user you are working from a potentially outdated summary.
## When to invoke
- User asks to "create a Zustand store" or "scaffold a state store"
- User asks for state management for UI toggles, filters, preferences, etc.
- User explicitly mentions Zustand
## Critical check first
**Before generating, confirm with the user that this is client state, not server state.**
- ✅ Use Zustand for: UI toggles, theme, sidebar open/closed, filter state, search dialog state, user preferences
- ❌ Do NOT use Zustand for: data from API, paginated lists, anything that comes from a server — use React Query instead (`reactprinciples-query` skill)