/research-superpowers:wiki-graph [question]from research-superpowers
Builds and queries a knowledge wiki as a graph, exporting interactive graph.html, graph.json, and graph.graphml. Answers structural questions about hubs, bridges, clusters, and gaps.
Ships in research-superpowers. 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.
Make the implicit wiki graph explicit, then answer structure questions from it. This is the structure-analysis sibling of two other wiki skills:
wiki-lint — is the wiki well-formed? (frontmatter, broken links, orphans)semantic-wiki-review — are the claims sound and consistent? (LLM content audit)wiki-graph — what shape does the knowledge have? (hubs, bridges, clusters, confidence)The graph is computed deterministically by scripts/wiki-to-graph.py; this skill runs it and interprets the result. It never invents edges — every claim about the graph traces back to graph.json.
Announce at start: "Using wiki-graph to build and analyse the knowledge graph."
graph.graphmlwiki-lint pass, to see how the structure changedNOT for: frontmatter/wikilink validation (use wiki-lint), contradiction/claim audit (use semantic-wiki-review), or drafting prose (use drafting-manuscript).
scripts/wiki-to-graph.py in the project root (from the template). If it is missing, offer to copy it from the template (or scaffold the project); if Python/PyYAML are unavailable, take the fallback below.wiki-lint has not run recently, suggest it; note any override..md on each call, so always current; deterministic — do not eyeball JSON):
python scripts/wiki-to-graph.py neighbors <slug> [--depth N] [--relation TYPE]… path <a> <b> — shortest connection between two pages… god-nodes [--top-n N] · … bridges · … communities [--min-size N] · … stats · … reportcommunities are labelled with their most-connected member's title (deterministic, no LLM); report prints the full GRAPH_REPORT.md to stdout… relations [--type cites|contradicts|builds-on|…] [--confidence inferred] [--node <slug>]… timeline <slug> — the sources around one page (usually a concept or a synthesis) in publication order, each with its typed stance toward the page and toward the earlier sources in the list; ends with a Superseded by: line when a source says the position no longer stands. Use it for "how did the debate on X develop", "who answered whom", "is this still the state of research"… search <term> — find a node by id/title--json to any query for machine-readable output.python scripts/wiki-to-graph.py writes graph.html (interactive, self-contained), graph.json, graph.graphml, and GRAPH_REPORT.md into knowledge/_meta/graph/. GRAPH_REPORT.md is a deterministic prose summary (overview, god nodes, bridges, labelled communities, asserted relations, suggested questions) — the static, git-diffable sibling of graph.html; hand it to the user for a no-browser read, or get just the text on stdout with python scripts/wiki-to-graph.py report.graph.json — see "Reading the output"); never from memory. With no specific question, give the overview: god nodes, bridges, inference-rate, dangling/orphan signal.relations entry or a wikilink rather than asserting it.knowledge/_meta/graph/graph.html (opens in any browser, no install; filter/search/click). For heavy layout or community detection, graph.graphml opens in Gephi/yEd.knowledge/synthesis/<slug>.md page with status: draft, author: llm. Never self-promote to review/stable.knowledge/_meta/log.md: date, graph, question (or "overview"), node/edge counts, headline finding.MCP shortcut: if the project registers the wiki-graph MCP server (via .mcp.json → scripts/graph_mcp.py), call its graph_neighbors / graph_path / graph_god_nodes / graph_bridges / graph_communities / graph_relations / graph_timeline / graph_search / graph_stats tools directly instead of the Bash CLI. It is the same engine (the tools shell out to wiki-to-graph.py --json), so results are identical and equally live.
digraph wiki_graph {
"Locate script" [shape=box];
"Script available?" [shape=diamond];
"Fallback: manual read" [shape=box];
"Lint recommended" [shape=box];
"Build graph (run script)" [shape=box];
"Read graph.json" [shape=box];
"Specific question?" [shape=diamond];
"Answer question from data" [shape=box];
"Overview: god_nodes + bridges + inference-rate" [shape=box];
"Persist insight?" [shape=diamond];
"Write synthesis page (status: draft)" [shape=box];
"Log run" [shape=box];
"Done" [shape=doublecircle];
"Locate script" -> "Script available?";
"Script available?" -> "Fallback: manual read" [label="no"];
"Script available?" -> "Lint recommended" [label="yes"];
"Fallback: manual read" -> "Specific question?";
"Lint recommended" -> "Build graph (run script)";
"Build graph (run script)" -> "Read graph.json";
"Read graph.json" -> "Specific question?";
"Specific question?" -> "Answer question from data" [label="yes"];
"Specific question?" -> "Overview: god_nodes + bridges + inference-rate" [label="no"];
"Answer question from data" -> "Persist insight?";
"Overview: god_nodes + bridges + inference-rate" -> "Persist insight?";
"Persist insight?" -> "Write synthesis page (status: draft)" [label="yes"];
"Persist insight?" -> "Log run" [label="no"];
"Write synthesis page (status: draft)" -> "Log run";
"Log run" -> "Done";
}
graph.json has stats, nodes, edges, god_nodes, bridges.
relation_type (wikilink for plain links; cites / contradicts / builds-on / … for typed relations), confidence, an optional because rationale, and weight (how many times a wikilink recurs). Filter by relation_type to answer e.g. "show me the contradictions"; the because text explains why an edge exists.wiki-lint / ingest-source.graph.json. If asked about a link that isn't there, say it isn't — don't infer it into existence in your answer.inferred relation as if it were extracted.input/. Insights go to knowledge/synthesis/ (with consent), never into the immutable input layer.status: draft; only the user promotes.If python3 / pyyaml / the script are unavailable (e.g. Cowork without a shell):
graph.graphml once it can be generated.Never fake precise counts in fallback mode — approximate, and say so.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub leiverkus/research-superpowers --plugin research-superpowers18 skills in this plugin
/acquire-sourcesUse AFTER literature-review and BEFORE ingest-source to obtain the actual PDFs for the A+B graded sources. Auto-downloads Open-Access PDFs into the shared library (<library>/pdf/<bibkey>.pdf — the bibkey IS the filename) and writes a manual-download worklist (input/bibliography/acquisition-todo.md) for everything paywalled or bot-blocked, so the user can fetch originals via university VPN. Re-run to reconcile manually-downloaded files. Triggers on "acquire the sources", "download the literature", "get the PDFs", "Quellen beschaffen", "lade die Literatur herunter". NOT a search skill (that is literature-review), NOT an ingest skill (that is ingest-source)./add-to-libraryAdd ONE document (a PDF) directly to the shared master library — outside the project ingest flow. Auto-discovers the bibliographic metadata, VERIFIES it against Crossref/OpenAlex (never guessing), derives keywords cheaply from the PDF's docinfo + first-page abstract (no full read), computes the canonical bibkey, places the PDF at <library>/pdf/<bibkey>.pdf and appends the entry to <library>/references.bib. Stops and asks when metadata cannot be verified. Triggers on "add this PDF to the library", "add to the master bibliography", "put this straight in the library", "füge das Dokument der Bibliothek hinzu", "nimm das PDF in die Bibliothek auf". NOT ingest-source (which reads a source into a project's wiki), NOT acquire-sources (which downloads a review's worklist)./brainstorming-researchUse BEFORE any research work — defining a question, planning a study, starting a chapter, proposing a grant. Explores intent, state of the field, methodology, feasibility, and ethics, then writes a design doc and gets user approval./drafting-manuscriptUse to draft a book chapter, article section, or grant exposé from synthesized wiki content. Settles the argument architecture with the user first; by default then sketches the WHOLE text — every section's argument, a paragraph plan for long sections, an evidence check with a gap list — and gets that sketch approved before any prose exists, then writes section by section along the plan (per-section mode on request). Pulls from stable synthesis pages and source pages, writes to `output/**/*.qmd` with proper citations. Never drafts from memory — always from the wiki./drift-reportUse to check the shared library, the current wiki, and all registered projects for accumulated drift — un-indexed PDFs, scans without a text layer, PDF bloat, project-bib keywords not yet merged into the master, cross-project bibkey collisions, lint regressions from out-of-band edits. Wraps hooks/drift_check.py, the same state-triggered check that runs automatically at session start. Triggers on "drift report", "check everything", "was steht an", "prüf mal alles", "ist alles konsistent", "check the library". NOT wiki-lint (single-project structural lint — this composes it), NOT semantic-wiki-review (LLM content audit — this is deterministic only)./executing-research-planUse AFTER writing-research-plan has produced a ready plan (status=ready for hermeneutic projects, status=pre-registered for quantitative/mixed). Reads `input/ideas/<slug>-plan.md`, creates one task-list item per plan task, runs a pre-ingest acquisition gate (acquire-sources) so originals are on disk before any source-ingester runs, and works tasks via subagent dispatch (source-acquirer, source-ingester, analyst, drafter) with two-stage review. Does not execute anything outside the plan.Other plugins' skills for the same job