setup-zustand
CommunityEnforce zustand best practices with hooks.
Authormalinskibeniamin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces zustand best practices via a PostToolUse hook to prevent common anti-patterns in store files and improve reliability.
Core Features & Use Cases
- Enforce double-parens create<T>()() to improve middleware type inference.
- Warn against inline object selectors and guide to use useShallow for multi-value selectors to avoid unnecessary re-renders.
- Ban direct localStorage usage in store files; encourage using zustand persist middleware for persistence.
Quick Start
Install and configure the PostToolUse hook, then verify your zustand store files against the rules.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: setup-zustand Download link: https://github.com/malinskibeniamin/skills/archive/main.zip#setup-zustand Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.