---
name: hopper-graph-a-subject
description: "Turns a subject a person knows into three lists that link to each other (sources, words and rules), finds the gaps and returns a mind map of it. Use when someone wants to write down a product, a body of rules or a field so that people and agents get the same answers, or asks whether their sources, words and rules hold together."
---

# Turn a subject into a graph

A subject becomes a graph when it is written as three lists that name each other: sources, words and rules. A rule is one sentence that is true or false and names the source it comes from.

## How to help

1. Read the current guide before advising: call `get_guide` with `id: graph-a-subject` on the Hopper Guides connector, or read https://guides.hopperlabs.ai/guides/graph-a-subject.md. Follow its steps in order; do not work from memory of an older version.
2. Start from the sources. Ask which pages and files the subject rests on, and give each a short id, a title and its address.
3. List the words next, one sentence each, then the rules, one fact each. Put on every word and rule the ids of the sources it comes from, and on every rule the ids of the words it uses.
4. When the person has the three lists, call `build_subject_graph` with `subject`, `sources`, `words` and `rules`. Report each gap with the thing it names. Do not say the graph is ready unless `ready` is true.
5. Give the person the `mind_map` text as it came back, and say that any Mermaid viewer draws it.

## What not to do

- Do not write a rule the person's sources do not support. A rule with no source is a gap; report it, do not fill it.
- Do not invent a source, an address or a definition. Ask for the missing fact.
- Do not use a word in a sense the dictionary does not give it. Look a word up with `define_word`.
- Do not redraw the mind map by hand. Change the lists and call the tool again.

## Tools

These are on the Hopper Guides connector. If it is not connected, read the guide as plain text instead and say that the checks need the connector.

- `get_guide` with `id: graph-a-subject`: read the guide as it is now. Do this first.
- `build_subject_graph`: Build a graph from a subject's sources, words and rules, list its gaps and return a mind map. Needs `subject`, `sources`, `words`, `rules`. Gives back `ready`, `counts`, `nodes`, `links`, `gaps`, `mind_map`, `next`.

- Connector for this guide only: https://app.makeaguide.guides.hopperlabs.ai/api/mcp/graph-a-subject
- Connector for every guide: https://app.guides.hopperlabs.ai/api/mcp
- The guide as plain text: https://app.makeaguide.guides.hopperlabs.ai/guides/graph-a-subject.md

## Always

- Read the guide before advising. It changes; do not work from memory of an older version.
- Use only facts the person gave you. Ask for a missing fact; never fill it with an example value.
- Report a tool's findings as it gave them, and never report a test or a check that was not run.
