yonatangross avatar

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-code

Installs 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
1mindrally avatarfront-end-developermindrally/skillsSenior Front-End Developer expertise in ReactJS, NextJS, JavaScript, TypeScript, HTML, CSS, and modern UI/UX frameworks1.3Kskills.sh installs
2mindrally avatarredux-toolkitmindrally/skillsComprehensive Redux Toolkit best practices for React and Next.js applications with TypeScript.1.3Kskills.sh installs
3vtex avatarvtex-io-storefront-reactvtex/skillsApply when building VTEX IO storefront components under react/ for Store Framework experiences. Covers storefront component structure, css-handles, storefront c1.2Kskills.sh installs
4jezweb avatarzustand-state-managementjezweb/claude-skillsBuild type-safe global state in React with Zustand. Supports TypeScript, persist middleware, devtools, slices pattern, and Next.js SSR with hydration handling. 1.2Kskills.sh installs
5manutej avatarjest-react-testingmanutej/luxor-claude-marketplaceComprehensive React component testing with Jest and React Testing Library covering configuration, mocking strategies, async testing patterns, hooks testing, and1.2Kskills.sh installs
6pedronauck avatarmotion-reactpedronauck/skillsBuild React animations with Motion (formerly Framer Motion) - gestures (drag, hover, tap), scroll effects, spring physics, layout animations, SVG, exit animatio1.2Kskills.sh installs