Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Zustand State Management

Sets up Zustand 5 stores in React with saved state, middleware and fixes for the common v5 render loop crash.

Claude's review

7/10 Good Zustand 5 guide with useShallow, middleware order, persist migrations and per-request stores.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Zustand is a small state-management library for React: a store is a hook, components subscribe to slices of it with selectors, and no context provider is needed. Use when a user asks to "add a Zustand store", "share state between components without Redux", "persist state to localStorage", "fix Maximum update depth exceeded after upgrading to Zustand v5", "use Zustand with Next.js", or wants the persist, devtools, immer or subscribeWithSelector middleware. Covers the v5 API: typed stores, useShallow, middleware order, access outside React, and per-request stores.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: zustand
description: >-
  Zustand is a small state-management library for React: a store is a hook,
  components subscribe to slices of it with selectors, and no context provider
  is needed. Use when a user asks to "add a Zustand store", "share state
  between components without Redux", "persist state to localStorage", "fix
  Maximum update depth exceeded after upgrading to Zustand v5", "use Zustand
  with Next.js", or wants the persist, devtools, immer or subscribeWithSelector
  middleware. Covers the v5 API: typed stores, useShallow, middleware order,
  access outside React, and per-request stores.
license: Apache-2.0
compatibility: "Zustand 5.x: React 18 or newer, TypeScript 4.5 or newer. The vanilla store (zustand/vanilla) runs without React."
metadata:
  author: terminal-skills
  version: 1.1.0
  category: development
  repository: https://github.com/pmndrs/zustand
  tags: "react, state-management, hooks, typescript, store"
---

# Zustand — Minimal React State Management

## Overview

Zustand keeps application state in a store created with `create()`. The store is a React hook: a component calls it with a selector and re-renders only when the selected value changes. There is no provider to wrap the app in, actions live next to the state they change, and the same store can be read and written from non-React code. Middleware adds persistence, Redux DevTools, Immer-style updates and selector subscriptions.

This skill targets Zustand 5 (current release line 5.0.x). Version 5 dropped default exports, removed the equality-function argument from `create`, and requires selectors to return stable references.

## Instructions

### Install

```bash
npm install zustand
npm install immer   # only if you use zustand/middleware/immer; it is an optional peer dependency
```

### Create a store

...

From TerminalSkills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Port code to Rust

    Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.

    by morganlinton 2.2k
    8/101 credit
  • Checked

    ComfyUI custom node UI

    Adds widgets, sidebar tabs, commands and dialogs to ComfyUI custom nodes, so your node feels built in.

    by jtydhr88 325
    7/101 credit
  • Checked

    Scrolling menu upgrade

    Finds outdated react-horizontal-scrolling-menu code and rewrites it for version 8 so the menu works again.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Scroll Menu Testing and SSR

    Gets react-horizontal-scrolling-menu working in Next.js and tested in Jest and Playwright without flicker.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Conform React Forms

    Builds React forms with Conform and Zod that validate on the server and still work before JavaScript loads.

    by TerminalSkills 221
    7/101 credit
  • Checked

    Next.js 16 App Builder

    Builds Next.js 16 apps the current way, with Server Components, Server Actions, caching and the new proxy file.

    by TerminalSkills 221
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added