/prometheus-react-skills:entity-graph-realtimefrom prometheus-react-skills
Add realtime synchronization to an existing @prometheus-ags/prometheus-entity-management setup: detect the push source (WebSocket, Supabase Realtime, Convex, GraphQL subscriptions, Flint Realtime Fabric, ElectricSQL+PGlite), configure RealtimeManager, normalize inbound traffic to ChangeSet/EntityChange, tune the 16ms coalescing window or flushInterval 0, and wire channel subscriptions with correct cleanup and list invalidation.
Ships in prometheus-react-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Extend graph-backed apps with live updates that land in the same Zustand entity graph as REST/GraphQL fetches. Adapters speak RealtimeAdapter; RealtimeManager batches writes, coalesces per (type, id), and applies upsertEntity / removeEntity / invalidateLists on flush—never duplicate that logic in UI code.
| Route | Focus |
|---|---|
/entity-realtime-setup | getRealtimeManager, ManagerOptions, register adapter(s), app lifecycle, cleanup |
/entity-realtime-channel | New or updated ChannelConfig, normalize on register, SubscriptionConfig, replay semantics |
/entity-realtime-local-first | createElectricAdapter, ElectricTableConfig, useLocalFirst, usePGliteQuery, sync boundaries |
Each route maps to prometheus-entity-skills/entity-graph-realtime/skills/<name>/SKILL.md.
prompts/specify.md — Source, auth, payload samples, ordering, latency, affectedListKeys, lifecycle.prompts/plan.md — Adapter choice, channel topology, flush policy, SSR/client split, failure modes.prompts/execute.md — Adapter module + bootstrap hook/provider; no direct graph writes from adapters.prompts/reflect.md — Verify flush behavior, unsubscribe on logout/HMR, typecheck.prompts/persist.md — State file + runbook for env vars and testing.bash prometheus-entity-skills/entity-graph-realtime/scripts/detect-orchestrators.sh
| Area | Exports |
|---|---|
| Manager | RealtimeManager, getRealtimeManager, resetRealtimeManager, ManagerOptions, forceFlush |
| Types | RealtimeAdapter, SyncAdapter, ChangeSet, EntityChange, ChangeOperation, ChannelConfig, SubscriptionConfig, AdapterStatus |
| Network adapters | createWebSocketAdapter, createSupabaseRealtimeAdapter, createConvexAdapter, createGraphQLSubscriptionAdapter, createFlintAdapter, publishFlintMutation |
| Local-first | createElectricAdapter, useLocalFirst, usePGliteQuery, ElectricAdapterOptions, ElectricTableConfig |
references/adapter-catalog.md — Factory options and registration patternreferences/coalescing-guide.md — 16ms window, merge rules, flushInterval: 0, forceFlush../_shared/references/flint-portable-contracts.md — Flint auth, tenant, key, JWKS, live-source, and Forge boundariesCLAUDE.md, AGENTS.mdComponents still read through useEntity, useEntityList, useEntityView, useEntityCRUD—not the store. Realtime only feeds the graph via the manager; it does not change the Components → Hooks → Stores rule for app code.
AGENTS.md (opens in a new tab)CLAUDE.md (opens in a new tab)agents/adapter-selector.md (opens in a new tab)agents/channel-configurator.md (opens in a new tab)hooks/hooks.json (opens in a new tab)prompts/execute.md (opens in a new tab)prompts/persist.md (opens in a new tab)prompts/plan.md (opens in a new tab)prompts/reflect.md (opens in a new tab)prompts/specify.md (opens in a new tab)references/adapter-catalog.md (opens in a new tab)references/coalescing-guide.md (opens in a new tab)scripts/detect-orchestrators.sh (opens in a new tab)scripts/state-init.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-react-skills28 skills in this plugin
/entity-auditSlash command /entity-audit — run full codebase audit against @prometheus-ags/prometheus-entity-management CLAUDE.md rules: component/store boundaries, hook I/O, registerSchema coverage, JSDoc on public hooks, and realtime/list patterns. Produces a severitized report using references/audit-checklist.md.
/entity-crud-formBuild EntityFormSheet and EntityDetailSheet configurations from FieldDescriptor arrays: field types, enum options, readonly/create/edit flags, custom editControl/render, and wiring to useEntityCRUD buffers and actions.
/entity-Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026