/prometheus-skill-pack:stage-07-graphfrom prometheus-skill-pack
Deep research Stage 07 — Graph. Builds a knowledge graph in surreal-memory from verified sources and resolved claims. Creates entities for topics, claims, and sources, with typed relations between them. Exports graph.json for the .research package.
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.
Build a structured knowledge graph from the verified, deduplicated, resolved
claim set. Store entities and relations in surreal-memory for cross-session
querying. Export the graph to graph.json in the .research package.
| Field | Type | Description |
|---|---|---|
source_registry | object[] | Verified sources (Stage 04+05) |
resolved_claims | object[] | Resolved claim set from Stage 06 |
credibility_scores | object | {url: score} map |
job_id | string | Used to scope entities in surreal-memory |
| Field | Type | Description |
|---|---|---|
graph_json | object | Full graph: {topics[], claims[], relations[]} (references/schemas/research-graph.schema.json) |
claim_count | int | Claims after content-addressed merging |
relation_count | int | cites and contradicts relations |
entity_ids | object | {name: surreal_memory_id} for citation linking |
Create topic entities — for each resolved claim topic, create a Topic
entity in surreal-memory: create_entity(name=<topic>, entityType="Topic").
Create claim entities — for each resolved claim, create a Claim entity
with observations: [position, confidence, strategy, job_id].
Link claims to sources — create_relation(from=<claim>, to=<source>, relationType="cites")
for each source that supports the claim.
Link contradictions — create_relation(from=<claimA>, to=<claimB>, relationType="contradicts")
for the pre-resolution contradiction pairs.
Link claims to topics — create_relation(from=<claim>, to=<topic>, relationType="addresses").
Export graph — write <package_id>/graph.json with the builder:
bash scripts/build-graph.sh <package_dir> [--critical critical-claims.txt] --out <package_dir>/graph.json
It reads sources/registry.json, sources/credibility.json (labels,
evidence, scores), and contradictions.json, and emits the shape of
references/schemas/research-graph.schema.json: topics[], claims[],
relations[].
claim- + the first 16 hex characters
of sha256("<package_id>:<normalised text>"), where normalisation
lower-cases, collapses whitespace, and strips trailing punctuation. The same
sentence from two chunks or two sources is therefore one claim: its
sources[] are the union and its label is the higher of the copies
(verified > inferred > unverified > blocked) with that copy's
evidence. The ids match the ones detect-contradictions.sh wrote.label (from credibility.json; a claim no source
states is inferred), critical (true for claims listed in
--critical, one text per line, or marked critical in the registry;
Stage 09 may only promote a claim that is already critical here),
confidence (the best source's credibility, capped at 0.5 for
unverified), sources[], contradicts[], and evidence for verified
and blocked labels.cites (claim → source id) and contradicts (claim ↔
claim, one relation per resolved or unresolved pair in
contradictions.json). Topics group the claims of each contradiction
topic, then the remaining claims by source domain.surreal-memory entities (steps 1–5) mirror this file; if surreal-memory is
unavailable the file is the graph. The driver still tolerates the legacy
{nodes, edges} shape from older packages, which derives to unverified
because it carries no labels.
surreal-memory MCP: create_entity, create_relation, read_graph
scripts/build-graph.sh writes graph.json (content-addressed claims, labels, cites and contradicts)
Entity types: ResearchSource, Claim, Topic
Relation types: cites, contradicts, addresses, supports
Entities created:
Topic: "throughput_qps" (id: topic-001)
Claim: "Qdrant sustains 500K QPS" (id: claim-3f2a9c1e0b7d4a55, label: verified, confidence: 0.77)
Claim: "Qdrant sustains 120K QPS" (id: claim-8b1d07e4c2f9a630, label: verified, confidence: 0.61)
ResearchSource: "qdrant.tech/benchmarks" (id: src-001, score: 77)
Relations created:
claim-3f2a9c1e0b7d4a55 → cites → src-001
claim-3f2a9c1e0b7d4a55 → contradicts → claim-8b1d07e4c2f9a630
What 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