This guide helps you manage app state with the Zustand library. It is for anyone building stores in the LobeHub project. You will learn how to organize actions into public, internal, and dispatch types.
Public actions are for UI components. They handle validation and orchestration. Internal actions contain business logic and use an internal_ prefix. Dispatch methods update the store by calling reducers.
Use optimistic updates to make the app feel fast. Add temporary data first, then sync with the backend. Delete operations should not use optimistic updates. Follow the naming rules for state fields like maps and ID arrays.
Global
mkdir -p ~/.claude/skills/zustandProject
mkdir -p .claude/skills/zustandSource Repository
Frontend Designanthropics/skills
Create striking frontend interfaces with bold design and polished code every time
Vercel React Best Practicesvercel-labs/agent-skills
Optimize React and Next.js apps using proven Vercel performance guidelines
Vercel Composition Patternsvercel-labs/agent-skills
Clean React components with composition instead of boolean props
Shadcnshadcn/ui
Manage shadcn UI components easily with CLI commands and clear styling rules
Design Taste Frontendleonxlnx/taste-skill
Enforce premium frontend design with metric-based rules and smart component architecture
Impeccablepbakaus/impeccable
Polish your frontend interfaces with expert design critique and code
Minimalist Uileonxlnx/taste-skill
Build warm minimal web interfaces with editorial typography and flat bento grids
Industrial Brutalist Uileonxlnx/taste-skill
Raw mechanical UIs fusing Swiss print with military terminal aesthetics and high data density