
Zustand Patterns
A solid reference for Zustand 5.x that covers the seven patterns you'll actually use: basic stores, slices, Immer integration, persistence, selectors, async actions, and devtools. The quick reference table is genuinely helpful for deciding between single vs multiple stores, when to reach for Immer, and whether to use useShallow for grabbing multiple values. It correctly steers you away from storing server state in Zustand (that's what TanStack Query is for) and warns against destructuring the entire store, which causes re-renders on every state change. The middleware composition order matters here, and the examples show the right sequence. Good for teams moving from Redux who want less boilerplate without losing TypeScript safety.
- skills.sh installs
- 1.5K
- GitHub stars
- 301
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yonatangross/orchestkit --skill zustand-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Zustand Patterns
Modern state management with Zustand 5.x - lightweight, TypeScript-first, no boilerplate.
Overview
- Global state without Redux complexity
- Shared state across components without prop drilling
- Persisted state with localStorage/sessionStorage
- Computed/derived state with selectors
- State that needs middleware (logging, devtools, persistence)
Upstream coverage (do not restate)
Zustand's own docs are the source for the mechanics. This skill carries only the OrchestKit delta
on top of them, in references/ork-delta.md, the rules/ files, and the checklist.
Sponsors
Details
- Repository
- github.com/yonatangross/orchestkit
- Categories
- Frontend Development, Backend & APIs
- First seen
- Jun 3, 2026
More from yonatangross/orchestkit
All 61- Agent Orchestration1.4K
- Domain Driven Design1.3K
- Memory755
- Security Patterns738
- Langgraph371
- Write Prd336
- Distributed Systems293
- Ascii Visualizer283
- Monitoring Observability269
- Vite Advanced265
- Quality Gates259
- Code Review Playbook254
- Python Backend249
- Accessibility245
- Memory Fabric243
- Multimodal Llm242
- Database Patterns238
- Architecture Patterns236
- Performance232
- Github Operations228
- Remember228
- Doctor227
- React Server Components Framework227
- Web Research Workflow227