/prometheus-react-skills:entity-gql-subscriptionfrom prometheus-react-skills
Slash command /entity-gql-subscription — connect GraphQL subscriptions via graphql-ws (or compatible) to either GQLClient.subscribe/useGQLSubscription with EntityDescriptors, or createGraphQLSubscriptionAdapter + RealtimeManager for coalesced ChangeSet delivery.
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.
None: SKILL.md is the whole skill.
User needs live GraphQL updates integrated with the entity graph.
wsClient implementing:type WsClient = {
subscribe: (
payload: { query: string; variables?: Record<string, unknown> },
sink: { next: (v: { data: T }) => void; error: (e: unknown) => void; complete: () => void }
) => () => void;
};
useGQLSubscription with same descriptors as query/mutation so incoming payloads upsert entities.Pros: Simple; identical normalization to queries.
Cons: No 16ms coalescing; high-frequency events may cause extra renders.
Import createGraphQLSubscriptionAdapter from @prometheus-ags/prometheus-entity-management.
Configure subscriptions: [{ type, document, variables, getPayload }].
getPayload(data) returns GQLPayload | GQLPayload[] | null where each payload has:
type: "created" | "updated" | "deleted" (or default upsert behavior per adapter)node / id as documented in src/adapters/realtime-adapters.tsmanager.register(adapter, [{ type: "Post", ... }]) with channel config per your app.
Pros: Coalesced writes; consistent with WebSocket/Supabase adapters.
Cons: Must map subscription shape manually.
client is recreated or subscription resubscribes when token changes.useGQLSubscription effect cleanup handles local scope; adapter registration should mirror app lifecycle (singleton vs provider).src/graphql/client.ts (subscribe)src/graphql/hooks.ts (useGQLSubscription)src/adapters/realtime-adapters.ts (createGraphQLSubscriptionAdapter)src/adapters/realtime-manager.tsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
28 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-crud-pageScaffold a full CRUD page (list, create, edit, detail, delete) using useEntityCRUD with EntityTable, EntityDetailSheet, and EntityFormSheet. Enforces Components → Hooks → Stores: page composes only; useXxxCRUD hook wraps library CRUD; API module holds fetch/mutations.
/entity-crud-relationsRegister EntitySchema graphs with registerSchema: belongsTo, hasMany, manyToMany, listKeyPrefix alignment, invalidateTargetLists, globalListKeys, and verification that cascadeInvalidation matches list query keys.
/entity-crud-tableBuild EntityTable views with column helpers (textColumn, numberColumn, enumColumn, etc.), SortHeader, selectionColumn, and meta.entityMeta for filters; sync sorting and search with useEntityView via UseEntityViewResult.
/entity-gcSlash command /entity-gc — design application-level eviction for @prometheus-ags/prometheus-entity-management: removeEntity for stale entities, clearPatch for UI overlays, list refresh after bulk delete, route-based cleanup, and policies for long-lived sessions. Notes library has no automatic GC yet.
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-react-skills2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026