/prometheus-skill-pack:entity-gql-hooksfrom prometheus-skill-pack
Slash command /entity-gql-hooks — produce typed useGQLEntity, useGQLList, useGQLMutation wrappers for concrete GraphQL documents; wire queryKey, getItems, getPagination, sideDescriptors, and invalidateLists for @prometheus-ags/prometheus-entity-management.
Ships in prometheus-skill-pack. 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 has (or will have) GQLClient + descriptors and needs React hook wrappers for specific operations.
For each operation, choose hook:
useGQLEntityuseGQLListuseGQLMutationType parameters
TData: shape of data from the operation (narrow as much as possible).TEntity: normalized entity stored in graph (must extend Record<string, unknown>).List wiring
queryKey: include all filter/sort variables that should isolate list state.getItems: defensive ?? [] for nullable connections.getPagination: map your schema’s page info.Mutations
descriptors when payload includes entities to merge.invalidateLists: pass serializeKey-compatible keys from list hooks, or raw string keys if using graph store’s list invalidation API consistently.refs
useRef for options; wrappers should pass stable client reference.List invalidation after mutations
invalidateLists expects the same string key the list hook uses internally: serializeKey(queryKey) from @prometheus-ags/prometheus-entity-management (see src/engine.ts). Example:import { serializeKey } from "@prometheus-ags/prometheus-entity-management";
const LIST_KEY = ["Post", "list", "dashboard"] as const;
export function usePostsList() {
return useGQLList<PostsData, Post>({
/* ... */
queryKey: [...LIST_KEY],
});
}
export function useUpdatePost() {
return useGQLMutation<UpdateData, Post>({
client: gqlClient,
document: UPDATE_POST,
type: "Post",
descriptors: [postDescriptor],
invalidateLists: [serializeKey([...LIST_KEY])],
});
}
export function usePostSubscription(id: string) {
return useGQLSubscription<SubData>({
client: gqlClient,
wsClient,
document: POST_CHANGED,
variables: { id },
descriptors: [postDescriptor],
enabled: !!id,
});
}
useState alongside graph-backed hooks.sideDescriptors when the query returns multiple entity types that UI reads elsewhere.../prompts/execute.md — code patternssrc/graphql/hooks.tsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026