home / skills / ehtbanton / claudeskillsrepo / zustand-store-generator
This skill generates complete Zustand store files in TypeScript with middleware, enabling ready-to-use state management.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill zustand-store-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: zustand-store-generator
description: Generate Zustand store files with TypeScript and middleware. Triggers on "create zustand store", "generate zustand state", "zustand slice", "state management".
---
# Zustand Store Generator
Generate Zustand stores with TypeScript and persistence.
## Output Requirements
**File Output:** `*.store.ts` store files
**Format:** Valid Zustand store
**Standards:** Zustand 4.x, TypeScript
## When Invoked
Immediately generate a complete Zustand store.
## Example Invocations
**Prompt:** "Create Zustand store for cart"
**Output:** Complete `cart.store.ts` with actions.
This skill generates ready-to-use Zustand stores in TypeScript, including common middleware like persistence and devtools. It produces complete *.store.ts files that follow Zustand 4.x and TypeScript typing standards. The goal is to speed up state management setup with minimal manual edits.
On trigger phrases such as "create zustand store" or "generate zustand state," the skill constructs a full Zustand store file with typed state, actions, and optional middleware wrappers. It can include persistence (localStorage), devtools integration, and modular slice patterns to keep stores maintainable. The output is a single complete .store.ts file ready to drop into a project.
Can the generated store include persistence?
Yes. The skill can add persistence middleware (e.g., localStorage) and scope it to specific keys.
Will the code be typed for TypeScript projects?
Yes. Stores are generated with TypeScript types and action signatures compatible with Zustand 4.x.