About store-data-structures
A reference guide to data structures used in Zustand stores, covering list/detail types, maps, reducers, and shared type sources. It also describes view and projection conventions for domains read through local-replica.
Key features
- 01List and detail type guidance
- 02Map data structure guidance
- 03Reducer structure reference
- 04Shared type source guidance
- 05local-replica view conventions
Use cases
- 01Reviewing Zustand store structures
- 02Designing list and detail state types
- 03Organizing replica-backed data views
- 04Locating a domain's projection.ts
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ lobehub/ lobehub --skill store-data-structuresAfter installing, type/store-data-structuresin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEStore Data Structures
Read Zustand data structures for
list/detail types, maps, reducers and shared type sources. The zustand skill
is the automatic entry for store work.
A domain whose reads go through local-replica keeps its data in the same
id-keyed <domain>Map views, plus one <domain>Replica bookkeeping field per
view; its resources live in a sibling projection.ts. See
replica-backed server data.