Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    adelfree2023-dev

    apex-sovereign-state

    adelfree2023-dev/apex-sovereign-state
    Coding
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

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

    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.

    Recommended Servers
    Svelte
    Svelte
    InstantDB
    InstantDB
    WorkOS
    WorkOS
    Repository
    adelfree2023-dev/55
    Files