Back to skills

zustand-store-ts

development

Generates Zustand stores with TypeScript types, subscribeWithSelector middleware, and a clear split between state interfaces and action interfaces. Covers store creation, selector patterns, and subscr

Setup & Installation

npx skills add https://github.com/microsoft/zustand-store-ts --skill zustand-store-ts
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/zustand-store-ts
View on GitHub

What This Skill Does

Generates Zustand stores with TypeScript types, subscribeWithSelector middleware, and a clear split between state interfaces and action interfaces. Covers store creation, selector patterns, and subscribing to state changes outside React components. Gets the subscribeWithSelector boilerplate and TypeScript interface separation right on the first try, skipping the trial-and-error of getting middleware generics and selector patterns to play well together.

When to use it

  • Working with zustand store ts functionality
  • Implementing zustand store ts features
  • Debugging zustand store ts related issues