mcpField
S
store-data-structures

store-data-structures

github.com/lobehubDevelopment83.6k2.4k installsUpdated today
Repository

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

  1. 01List and detail type guidance
  2. 02Map data structure guidance
  3. 03Reducer structure reference
  4. 04Shared type source guidance
  5. 05local-replica view conventions

Use cases

  1. 01Reviewing Zustand store structures
  2. 02Designing list and detail state types
  3. 03Organizing replica-backed data views
  4. 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-structures

After installing, type/store-data-structuresin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

Store 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.

Comments

Markdown supported