/prometheus-research-skills:stage-07-graphfrom prometheus-research-skills
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-research-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.
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
Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-research-skills11 skills in this plugin
/deep-research10-stage deep research pipeline: Planner → Search → Retrieve → Collect → Verify → Resolve → Graph → Cite → Report → Export. Driven by a stage-contract driver that validates every stage's artifacts, checkpoints each boundary, and resumes. Produces persistent research packages (OKF-aligned knowledge assets) with labelled claims, a provenance sidecar, citations, confidence scores, knowledge graphs, and contradiction tracking. Integrates with surreal-memory, liter-llm, sycophancy-correction, and Feynman learning skills. Supersedes disposable report generation with structured knowledge infrastructure.
/stage-01-plannerDeep research Stage 01 — Planner. Decomposes a research query into structured sub-questions, a search strategy, and a token budget. Produces the research plan that drives all subsequent stages.
/stage-02-searchDeep research Stage 02 — Search. Executes web searches for each sub-question from the research plan. Deduplicates URLs, filters low-quality domains, and produces a ranked source list for Stage 03 retrieval.
/stage-03-retrieveDeep research Stage 03 — Retrieve. Fetches full page content for each source URL from Stage 02 and chunks it into retrievable segments. Handles PDF, HTML, and structured data formats. Outputs content chunks for Stage 04 indexing.
/stage-04-collectDeep research Stage 04 — Collect. Indexes content chunks from Stage 03 into surreal-memory as ResearchSource entities. Extracts key claims per chunk for downstream verification and graph building.
/stage-05-verifyDeep research Stage 05 — Verify. Scores each source for credibility using a 5-dimension rubric. Applies sycophancy-correction bias detection to source framing. Filters low-credibility sources before graph building.
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026