Skip to content
yonatangross avatar

Zustand Patterns

Zustand 5.x state management reference covering slices, middleware, Immer, persistence, and selectors with TypeScript.

CCM score
60 of 100
skills.sh installs
1.5K
GitHub stars
312
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers store creation, slices, middleware composition, selector optimization, and persistence with schema migrations
  • Documents 7 core patterns with TypeScript examples, plus anti-patterns such as destructuring the whole store and storing server state
  • Delivers OrchestKit-specific rules on top of upstream Zustand docs, including the v5 version floor and secret handling
  • Designed for React projects choosing Zustand over Redux, with TanStack Query guidance for server state

Install

$ npx -y skills add yonatangross/orchestkit --skill zustand-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/yonatangross/orchestkit
Category
Frontend & UI Code
First seen
Jun 3, 2026

More from yonatangross/orchestkit

All 55

Similar to Zustand Patterns

More Frontend & UI Code