# Wiki graph

> Wiki graph is an open-source agent skill for knowledge and memory. Builds and queries a wiki's link graph to find hubs, bridges and weak links. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/leiverkus/research-superpowers/tree/main/skills/wiki-graph
- **Repository:** https://github.com/leiverkus/research-superpowers
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** wiki-graph
- **Collection:** https://github.com/leiverkus/research-superpowers
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-03

## About

This skill turns a research knowledge wiki into an explicit graph of pages and typed relations. A bundled Python script computes the graph from the markdown files on each run and writes an interactive self-contained HTML view, JSON and GraphML exports for Gephi or yEd, and a plain-text graph report.

Beyond building the graph, the agent can run deterministic queries against the live wiki: neighbours of a page, shortest paths between two pages, most-connected pages, bridging entities, communities, typed relation filters, search and summary statistics. Answers are meant to come from the computed output rather than from memory, and edges that are model-asserted are flagged instead of presented as grounded.

It expects a project laid out with a knowledge folder and the wiki-to-graph script, with Python and PyYAML installed. When those are unavailable, the skill falls back to a rough manual read that only approximates link counts. It also includes an optional MCP server mode that exposes the same queries as tools.

## When your agent uses it

> Use to build and query the knowledge wiki as a graph. Exports an interactive self-contained graph.html plus graph.json / graph.graphml (scripts/wiki-to-graph.py), and answers questions against the live wiki with deterministic sub-commands (neighbors, path, god-nodes, bridges, relations, search, stats). Triggers include "build/show me a knowledge graph", "map the wiki", "which entity bridges my sources", "most connected pages", "where are the gaps or weak links", "export to Gephi/yEd". NOT wiki-lint (frontmatter and wikilink validation), NOT semantic-wiki-review (claim audit).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/leiverkus/research-superpowers/tree/HEAD/skills/wiki-graph)
- [License: MIT](https://github.com/leiverkus/research-superpowers/tree/HEAD/skills/wiki-graph)

## Features

- **Interactive graph export:** Writes a self-contained HTML graph plus JSON and GraphML files for browsing or external tools.
- **Hub and bridge detection:** Ranks the most-connected pages and entities that join otherwise separate source clusters.
- **Deterministic graph queries:** Supports neighbour lookup, shortest path, search and filtering by relation type or confidence.
- **Community labelling:** Groups pages into clusters and labels each with its most-connected member.
- **Inference-rate audit:** Reports how many relations are model-asserted rather than grounded in sources.
- **Dangling link reporting:** Flags references to pages that do not exist so they can be fixed in the wiki.
- **Source timeline:** Orders sources around one page by publication to show how a debate developed.

## Good for

- Show me a knowledge graph of my research wiki
- Which entity connects my different sources?
- Find the most connected pages in my notes
- Export my wiki graph to Gephi for layout
- Show the contradictions between my sources
- Where are the gaps or weak links in my literature map?

## Install

### Claude Code

This skill ships in the `research-superpowers` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add leiverkus/research-superpowers
/plugin install research-superpowers@leiverkus-research
```

Or copy only this skill to `~/.claude/skills/wiki-graph`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/wiki-graph &&
cp -R "$tmp/skills/wiki-graph" ~/.claude/skills/wiki-graph &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/wiki-graph` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/wiki-graph` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/wiki-graph &&
cp -R "$tmp/skills/wiki-graph" ~/.agents/skills/wiki-graph &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/wiki-graph` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/wiki-graph` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/wiki-graph &&
cp -R "$tmp/skills/wiki-graph" ~/.cursor/skills/wiki-graph &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/wiki-graph` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/leiverkus/research-superpowers.git --path skills/wiki-graph
```

Or copy the folder to `~/.gemini/skills/wiki-graph` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/wiki-graph`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/wiki-graph &&
cp -R "$tmp/skills/wiki-graph" ~/.copilot/skills/wiki-graph &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/wiki-graph` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git
```

Then copy `research-superpowers/skills/wiki-graph` into your agent's skills folder as `wiki-graph`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Wiki graph need to run?

The wiki-to-graph Python script in the project, with Python and PyYAML available. Without them it falls back to a manual, approximate read.

### Does Wiki graph change my wiki?

It writes graph outputs into the knowledge meta folder and appends to the log. It may create a draft synthesis page, but only with the user's consent, and it never writes to the input layer.

### Does Wiki graph invent connections between pages?

No. It reports only edges present in the computed graph and flags inferred relations rather than presenting them as grounded.

### How is Wiki graph different from wiki-lint?

Linting checks frontmatter and wikilink validity. This skill analyses the shape of the knowledge graph, while claim auditing is handled by a separate skill.

### How do I install Wiki graph in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/wiki-graph to use it in all your projects, or to .claude/skills/wiki-graph in one project. Or install the research-superpowers plugin, which includes it: /plugin marketplace add leiverkus/research-superpowers, then /plugin install research-superpowers@leiverkus-research.

### Does Wiki graph run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Wiki graph?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Wiki graph?

The closest alternatives to Wiki graph are LLM wiki, Mini context graph, Wiki ingest, Graph and Wiki lint.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [LLM wiki](https://ai-powered.com/skills/llm-wiki): LLM wiki is an open-source agent skill for knowledge and memory.
- [Mini context graph](https://ai-powered.com/skills/mini-context-graph): Mini context graph is an open-source agent skill for knowledge and memory.
- [Wiki ingest](https://ai-powered.com/skills/wiki-ingest): Wiki ingest is an open-source agent skill for knowledge and memory.
- [Graph](https://ai-powered.com/skills/graph): Graph is an open-source agent skill for files and documents.
- [Wiki lint](https://ai-powered.com/skills/wiki-lint-leiverkus): Wiki lint is an open-source agent skill for knowledge and memory.
- [Semantic wiki review](https://ai-powered.com/skills/semantic-wiki-review): Semantic wiki review is an open-source agent skill for knowledge and memory.
- [Wiki briefing](https://ai-powered.com/skills/wiki-briefing): Wiki briefing is an open-source agent skill for knowledge and memory.
- [Wiki page writer](https://ai-powered.com/skills/wiki-page-writer): Wiki page writer is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/wiki-graph
