This is a comprehensive ruleset for writing performant Zustand stores in React, covering 43 rules across 8 categories from store architecture to advanced patterns. Use it when creating new stores, optimizing selector performance, or reviewing state management code. The critical stuff is selector optimization (always use selectors, never subscribe to the entire store) and architecture decisions like splitting into multiple small stores instead of one monolith. The rules are well organized by impact level, so you can focus on what actually prevents re-renders before worrying about TypeScript niceties. Good reference when you're fighting unnecessary re-renders or trying to figure out the right way to structure persistence and SSR hydration.

skills.sh installs
453
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill zustand --agent claude-code

Installs into .claude/skills of the current project.

Files

Community Zustand Best Practices

Comprehensive performance and architecture guide for Zustand state management in React applications. Contains 43 rules across 8 categories, prioritized by impact from critical (store architecture, selector optimization) to incremental (advanced patterns).

When to Apply

Reference these guidelines when:

  • Creating new Zustand stores
  • Optimizing re-render performance with selectors
  • Implementing persistence or middleware
  • Integrating Zustand with SSR/Next.js
  • Reviewing code for state management patterns

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Store ArchitectureCRITICALstore-
2Selector OptimizationCRITICALselect-
3Re-render PreventionHIGHrender-
4State UpdatesMEDIUM-HIGHupdate-
5Middleware ConfigurationMEDIUMmw-
6SSR and HydrationMEDIUMssr-
7TypeScript PatternsLOW-MEDIUMts-
8Advanced PatternsLOWadv-

Quick Reference

1. Store Architecture (CRITICAL)

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend Development, Documentation, Code Review & Quality, Debugging
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1suryavirkapur avatarsolidjssuryavirkapur/skillsSolidJS framework development skill for building reactive web applications with fine-grained reactivity. Use when working with SolidJS projects including: (1) C452skills.sh installs
2davila7 avatarnextjs-supabase-authdavila7/claude-code-templatesExpert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected rou410skills.sh installs
3questfortech-investments avatarreact-vite-expertquestfortech-investments/claude-code-skillsComplete React + Vite expertise for building optimized, scalable applications. Covers project architecture, folder structure, component patterns, performance op405skills.sh installs
4hairyf avatarreact-native-reusableshairyf/skillsAgent skill for React Native Reusables — shadcn-style components for React Native (Expo) with Nativewind/Uniwind, RN Primitives, and CLI-driven scaffolding.387skills.sh installs
5mrgoonie avatarfrontend-dev-guidelinesmrgoonie/claudekit-skillsFrontend development guidelines for React/TypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with fe377skills.sh installs
6bobmatnyc avatarnextjs-corebobmatnyc/claude-mpm-skillsCore Next.js patterns for App Router development including Server Components, Server Actions, route handlers, data fetching, and caching strategies357skills.sh installs