state-integrity-check

Official

Keep server data and UI in perfect sync.

Authorlgerard314
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents the UI from showing stale or divergent data after mutations by ensuring client caches, server state, and real-time updates stay in sync, across tabs and routing boundaries.

Core Features & Use Cases

  • Targeted cache invalidation: invalidate only dependent queries to avoid unnecessary refetches.
  • Optimistic updates with rollback: snapshot, apply optimistic changes, and rollback on error with a final reconcile.
  • Server-truth-first mutations: update server data and reconcile client caches with server response.
  • Explicit Next.js revalidation: call revalidatePath or revalidateTag after mutations to purge stale pages.
  • Cross-tab and WebSocket resilience: broadcast and reconnect logic to ensure edits propagate across tabs and sessions.
  • Inter-skill collaboration: coordinates with prisma-data-access-guard and frontend-implementation-guard to separate concerns.

Quick Start

Audit your mutation flows to ensure cache integrity by applying targeted invalidations, onMutate rollback, server-truth reconciliation, explicit Next.js revalidation, and reliable cross-tab messaging.

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: state-integrity-check
Download link: https://github.com/lgerard314/global-plugin/archive/main.zip#state-integrity-check

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 471,000+ vetted skills library on demand.