zustand-store-generator
使用 TypeScript 和中间件生成 Zustand 存储文件。在“创建 zustand 存储”、“生成 zustand 状态”、“zustand 切片”、“状态管理”上触发。
📖 中文导读:使用 TypeScript 和中间件生成 Zustand 存储文件。在“创建 zustand 存储”、“生成 zustand 状态”、“zustand 切片”、“状态管理”上触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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.