Agent skill

Zustand

by pedronauck in pedronauck/skills

Expert guide for Zustand state management patterns, store organization, and best practices.

No licenceAuto-check passedFrontend & Design

Install Zustand

skills CLI
$ npx skills add pedronauck/skills --skill zustand -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pedronauck/skills zustand --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pedronauck/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/curated/zustand .claude/skills/zustand && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zustand
GitHub stars
634
Token cost
~1.1k tokens
SKILL.md length
330 words
Files
2 (incl. references)
Skills in repo
65
Repo updated
First seen
Licence
None found

At a glance

Expert guide for Zustand state management patterns, store organization, and best practices.

  • Works in 10 steps: Keep stores focused on specific domains → Use TypeScript for full type safety → Leverage middleware for common patterns… → …
  • Implementing client state management with Zustand
  • SKILL.md covers Quick Start, Core Philosophy, Store Organization and Best Practices, plus 2 more sections
  • Calls pnpm

What it does

Zustand is an agent skill from pedronauck/skills. Expert guide for Zustand state management patterns, store organization, and best practices. Use when implementing client state management with Zustand, creating stores, or managing shared UI state across components.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/patterns.md`).

It sits in Frontend & Design, covering State management. It works with Zustand and TypeScript. The repository describes itself as: My personal favorite skills.

When your agent uses it

  • Implementing client state management with Zustand
  • Creating stores
  • Managing shared UI state across components

Example prompts

  • “/zustand”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Keep stores focused on specific domains
  2. Use TypeScript for full type safety
  3. Leverage middleware for common patterns (devtools, persist, immer)
  4. Create selector hooks for performance
  5. Use immer for complex nested state updates
  6. Persist only necessary state - use partialize option
  7. Test stores thoroughly
  8. Handle async operations properly with loading/error states
  9. Implement optimistic updates when appropriate
  10. Document store structure and actions

What it can do on your machine

Read from SKILL.md and the folder at commit 0422940. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zustand loads about 1.1k tokens when it runs, and up to ~6k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 330 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 330 words (~1,089 tokens).

“This skill provides guidelines, patterns, and best practices for working with Zustand in this project.”

— opening of SKILL.md by pedronauck
name
zustand
allowed-tools
Read, Grep, Glob

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/curated/zustand of pedronauck/skills.

  • SKILL.md
  • references/patterns.md

Open the folder on GitHubat commit 0422940

Compare with similar skills

Zustand next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zustand compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zustand this skillpedronauck/skills634—~1.1kAutomated safety check: PassNone
LobeHub Data Fetching Layerslobehub/lobehub83k—~1.8kAutomated safety check: PassCustom licence
Nextjs15 Initbear2u/my-skills932—~2.4kAutomated safety check: PassNone
React ExpertJeffallan/claude-skills12k—~1.4kAutomated safety check: PassMIT
React Flow Node TSmicrosoft/skills3.1k6 repos~502Automated safety check: PassMIT
Zustand Store TSmicrosoft/skills3.1k7 repos~440Automated safety check: PassMIT

Similar skills

  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Nextjs15 Init

    bear2u/my-skills

    A skill your agent uses when user wants to create a new Next.js 15 project (Todo/Blog/Dashboard/E-commerce/Custom domain) with App Router, ShadCN, Zustand, Tanstack Query, and modern Next.js stack

    932 GitHub stars~2.4k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • React Expert

    Jeffallan/claude-skills

    Builds React 19 components in TypeScript with Server Components, useActionState forms, custom hooks and state libraries, checked with tsc and React Testing Library.

    12k GitHub stars~1.4k tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • React Flow Node TS

    microsoft/skills

    Official

    Create React Flow node components with TypeScript types, handles, and Zustand integration.

    3.1k GitHub starsUsed in 6 repos~502 tokens
    Frontend & DesignAuto-check passed
  • Zustand Store TS

    microsoft/skills

    Official

    Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation.

    3.1k GitHub starsUsed in 7 repos~440 tokens
    Frontend & DesignAuto-check passed
  • React Generate Skill

    jiushiwon/wg-skills

    This skill should be used when the user wants to create a standardized React 18 + TypeScript + Vite + Zustand project from scratch.

    114 GitHub stars~2.8k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed

More from pedronauck/skills

All 65 skills in this repo
  • Deep Review

    pedronauck/skills

    Review branch diffs, working trees, or PRs in depth with defect, polish and cross-contract coverage.

    634 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Yc Apply

    pedronauck/skills

    Prepare, review, and package Y Combinator application answers and founder-video notes using the live form and verified founder facts.

    634 GitHub stars~1.3k tokensUpdated 26 days ago
    Auto-check passed
  • Guide technical communication for software developers. An agent skill from pedronauck/skills.

    634 GitHub starsUsed in 3 repos~2.3k tokens
    Auto-check passed
  • Tauri V2

    pedronauck/skills

    Tauri v2+ cross-platform app development with Rust backend. An agent skill from pedronauck/skills.

    634 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • Hormozi Ad Factory

    pedronauck/skills

    Generates 150-750+ ad variations using Alex Hormozi's combinatorial Hook x Meat x CTA framework.

    634 GitHub stars~2.1k tokensUpdated 26 days ago
    Auto-check passed
  • Yt Master

    pedronauck/skills

    Plans and improves YouTube ideas, titles, thumbnail concepts, scripts, retention, channel strategy, and metric-based diagnosis.

    634 GitHub stars~736 tokensUpdated 26 days ago
    Auto-check passed

Questions about Zustand

What does Zustand do?

Expert guide for Zustand state management patterns, store organization, and best practices. Zustand is an agent skill from pedronauck/skills. Expert guide for Zustand state management patterns, store organization, and best practices.

When should I use Zustand?

Zustand fits situations like: implementing client state management with Zustand; creating stores; managing shared UI state across components.

How do I install Zustand in Claude Code?

Run `npx skills add pedronauck/skills --skill zustand -a claude-code`. Or copy the skill folder (skills/curated/zustand in pedronauck/skills) into .claude/skills/zustand in your project. Claude Code loads it when a task matches its description.

How do I install Zustand in Codex?

Run `npx skills add pedronauck/skills --skill zustand -a codex`. Or copy the skill folder (skills/curated/zustand in pedronauck/skills) into .agents/skills/zustand in your project. Codex loads it when a task matches its description.

Can I use Zustand in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pedronauck/skills --skill zustand -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zustand, .gemini/skills/zustand, .github/skills/zustand and .opencode/skills/zustand in your project.

What does Zustand need to run?

Going by SKILL.md and its folder, Zustand needs the command-line tools its instructions call (pnpm). Its frontmatter pre-approves these tools: Read, Grep, Glob.

Does Zustand access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Zustand safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Zustand use?

No licence was found for Zustand or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Zustand use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to Zustand?

Skills that share tags, products or a category with Zustand: LobeHub Data Fetching Layers (lobehub/lobehub, 83k stars), Nextjs15 Init (bear2u/my-skills, 932 stars), React Expert (Jeffallan/claude-skills, 12k stars) and React Flow Node TS (microsoft/skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zustand?

pedronauck (a GitHub user) maintains it in pedronauck/skills, which has 634 GitHub stars. The repository holds 65 skills in this directory. The repository was last updated on September 14, 2026.

Source: pedronauck/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.