frontend-state-dev

Community

Versioned frontend state, kept fast and reliable.

Authorogghst
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines frontend state management for versioned and simple entities by combining TanStack Query for server state with Zustand and Immer for client state, all under strict context isolation.

Core Features & Use Cases

  • Centralizes query keys, CRUD hooks, and time-machine aware patterns to ensure branch/time travel data consistency.
  • Supports versioned data with asOf and merged/isolated modes to prevent cross-branch data leakage.
  • Provides a factory-based approach to create versioned or simple resource hooks and to configure dependent invalidations for EVM metrics.

Quick Start

  • Decide whether the entity is versioned (needs time travel) or simple.
  • Add query keys in the project's queryKeys module.
  • Create CRUD hooks using the appropriate factory function.
  • Configure dependent invalidations to keep metrics in sync.
  • Implement a component that consumes the hooks with proper time-machine context.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: frontend-state-dev
Download link: https://github.com/ogghst/backcast/archive/main.zip#frontend-state-dev

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.