zustand

Installation
SKILL.md

Zustand

Guidance for using Zustand (create, stores, middleware, and scaling patterns). No provider required.

Cursor rule

A file-scoped rule is provided at rules/zustand-stores.mdc. Copy it to your project’s .cursor/rules/ to get automatic reminders when editing store files.

When to Apply

  • Adding or refactoring Zustand stores
  • Persisting state (e.g. localStorage)
  • Splitting a large store into slices
  • User asks about Zustand, global state, or store structure

Store Basics

import { create } from 'zustand'
Related skills

More from tianyili/skills

Installs
4
Repository
tianyili/skills
GitHub Stars
1
First Seen
Mar 21, 2026