What problem does it solve? Designing Zustand stores for a large React application leads to inconsistent state shapes, tangled actions, and slow list rendering when heavy detail data is mixed into list payloads. This Skill codifies the LobeHub conventions for structuring stores so state stays predictable and performant. ## Core Features & Use Cases - State Shape Guidance: Separates lightweight list-item arrays from id-keyed detail maps with per-item loading states, sourcing types from @lobechat/types instead of database types. - Action Hierarchy & Optimistic Updates: Defines public actions, internal_* business logic, and internal_dispatch* reducer methods, with a standard optimistic update flow for create and update operations. - Class-Based Slice Composition: Migrates plain StateCreator slices to class-based action implementations composed with flattenActions, including multi-class slices and store-access augmentation types. - Use Case: When adding a new benchmark feature, use this Skill to scaffold the slice with a benchmarkList array, a benchmarkDetailMap record, a typed Immer reducer, and selectors following the established naming conventions. ## Quick Start Use the zustand skill to design the state structure and actions for a new store slice with list and detail views.