smithery/adelfree2023-dev

apex_sovereign_state

Manages cart and user state using Zustand with hydration, persistence, and Redis synchronization.

Installation

$ npx skills add smithery/adelfree2023-dev --skill apex-sovereign-state

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/adelfree2023-dev.

npx skills add smithery/adelfree2023-dev

Browse all from smithery/adelfree2023-dev

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,345 B
  • docs SUMMARY.md 125 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

🐻 State Management Logic (v2.0)

Focus: State Management Logic (17).


🏗️ State Logic Protocols

  • Clean Architecture for Zustand: All state stores must be partitioned by domain (Cart, Auth, UI). Stores must be strictly typed and favor immutable updates.
  • Hydration & Persistence: Implementation of Two-Phase Hydration to prevent SSR-Client mismatches. Mandatory persistence to LocalStorage with version-controlled migrations.
  • Redis Synchronization: Cross-device synchronization logic triggered on state change with debounced background sync to avoid platform saturation.

🚀 Root Solutions (State)

  • Derived Selectors: Use memoized selectors to prevent unnecessary re-renders in complex React trees.
  • Optimistic UI: Mandatory implementation of optimistic updates for high-frequency actions (e.g., adding items to cart), with rollback logic on API failure.
  • State-to-API Sync: Clean decoupling between UI state updates and API persistence calls using middleware or store actions.

⚖️ Integrity Rule

Never put raw server data in global client state. Use React Query for server-side cache and Zustand only for purely client-managed state.