Zustand State
Minimal React and vanilla JavaScript state store with selectors, persistence, and devtools support, without Redux boilerplate.
- CCM score
- 55 of 100
- skills.sh installs
- 261
- GitHub stars
- 91
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers store creation, selector-based subscriptions,
useShallowfor multi-value reads, and access outside React components - Includes a vanilla
createStorepath for non-React code, plus middleware references forpersist,devtools, andimmer - Enforces two merge gates:
persistmust use explicit keys so secrets never reach localStorage, anddevtoolsmust be dev-only or justified - Designed for React apps that need global state without providers or Redux-level ceremony
Install
$ npx -y skills add existential-birds/beagle --skill zustand-state -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Zustand State Management (v5)
Minimal state management — named exports only (v5 removed default exports), React 18/19 compatible, and no global providers required.
Quick Reference
import { create } from 'zustand'
interface BearState {
bears: number
increase: (by: number) => void
}
const useBearStore = create<BearState>()((set) => ({
bears: 0,
increase: (by) => set((state) => ({ bears: state.bears + by })),
}))
// In component - select only what you need
const bears = useBearStore((state) => state.bears)
const increase = useBearStore((state) => state.increase)
State Updates
// Flat updates (auto-merged at one level)
set({ bears: 5 })
set((state) => ({ bears: state.bears + 1 }))
// Nested objects (manual spread required without immer)
set((state) => ({
nested: { ...state.nested, count: state.nested.count + 1 }
}))
// Replace entire state (no merge)
set({ bears: 0 }, true)
Selectors & Performance (v5 useShallow)
Details
- Repository
- github.com/existential-birds/beagle
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What is the zustand-state skill used for?
zustand-state teaches an agent to build state stores with Zustand v5 for React and vanilla TypeScript. It covers curried create<T>() stores, useShallow selectors, persist with partialize, devtools, immer and React Context injection.
How do I install the zustand-state skill?
Run npx -y skills add existential-birds/beagle --skill zustand-state -y in your project. Once installed, zustand-state lets the agent write Zustand stores that avoid infinite selector re-renders.
Does zustand-state handle persisting state to localStorage safely?
zustand-state explains how to persist state with partialize so only explicit keys are written to storage. Its gate asks that persisted JSON never include auth tokens, API keys or other secrets.
Where does zustand-state stand in the Frontend and UI Code category?
zustand-state is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices and web-design-guidelines. It stands apart by focusing on Zustand v5 store patterns, middleware and TypeScript typing.
More from existential-birds/beagle
All 37- Dagre React Flow258
- Adr Writing254
- Swift Code Review253
- Pytest Code Review241
- Sqlalchemy Code Review229
- Pydantic Ai Common Pitfalls221
- Agent Architecture Analysis220
- Pydantic Ai Agent Creation219
- Ai Elements211
- Go Code Review206
- Shadcn Code Review206
- Swift Testing Code Review196
- Deepagents Architecture162
- Langgraph Implementation161
- Pydantic Ai Tool System161
- Pydantic Ai Testing146
- Deepagents Implementation142
- Pydantic Ai Dependency Injection141
- Deepagents Code Review134
- Pydantic Ai Model Integration120
- React Flow1.4K
- Python Code Review968
- Langgraph Code Review890
- Tailwind V4838
Similar to Zustand State
More Frontend & UI Codezustandbobmatnyc/claude-mpm-skills514 installsMinimal hook-based global state for React with no providers and far less boilerplate than Redux.
valtiohairyf/skills792 installsProxy-based state management for React and vanilla JavaScript that optimizes renders through fine-grained subscriptions.
zustand-5prowler-cloud/prowler916 installsZustand 5 store patterns covering stores, selectors, persist, slices, and devtools for client-side state.
react-state-managementwshobson/agents16.5K installsChoose between Redux Toolkit, Zustand, Jotai, and React Query for global and server state in React.
zustand-patternsyonatangross/orchestkit1.5K installsZustand 5.x state management reference covering slices, middleware, Immer, persistence, and selectors with TypeScript.
piniaantfu/skills21K installsType-safe Vue state management library covering store definitions, plugins, composables, testing, SSR, and Nuxt.