graph
Skill2 starsChanged 4 months agoMITView on GitHub
Build, refresh, and query the MIF-native knowledge graph — the typed substrate of concepts and entities (all urn:mif: ids) linked by MIF relationships and mentions. Use this skill when the user asks about relationships between findings, what connects two concepts or entities, entity overlap, or wants a visual map. Triggers on 'what connects', 'how are these related', 'show graph', 'knowledge graph', 'visualize research', 'rebuild the graph', 'entity overlap', 'shared between'. With --concordance, the same verbs operate on the corpus-wide ontological spine spanning ALL topics (build/validate/query reports/concordance.json) — triggers on 'concordance', 'across topics', 'whole corpus', 'cross-topic', 'ontological spine', 'world view of knowledge'. The graph is derived from MIF entities and relations, never from tags.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- 9Ashwin/let-it-gotheir own version, first seen Sep 28, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Sep 22, 2026
- AraneaDev/knossostheir own version, first seen Sep 15, 2026
- renzrollon/interlocktheir own version, first seen Sep 10, 2026
- factor241/ketos-bottheir own version, first seen Sep 3, 2026
- nikshostudios/uni-claude-skillstheir own version, first seen Aug 31, 2026
Used with
Projects with it also use watch, lint and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hidai25Skillwatch
Start EvalView watch mode to automatically re-run regression checks whenever project files change.
Also in 3 projects that use this
Microsoft AzureSkilllint
Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.
Also in 3 projects that use this
raven-souravSkillingest
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 4 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- smallnest/goal-workflow★ 287same name
- romarayt/raytsystem-public-os★ 150same name
- alirezarezvani/gaios★ 45same name
- drafthq/draft★ 40same name
- renzrollon/interlock★ 17same name
- iwe-org/skills★ 13same name
- AraneaDev/knossos★ 2same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- geronimo-iia/llm-wiki-skills★ 2same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- discoverSkill
- labSkill
- md-fixSkill
- ontology-managerSkill
- publish-blogSkill
- publish-reportSkill
- readmeSkill
- searchSkill
- topicsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Every node id is a urn:mif: identifier.
- Distinctive: line 47
Only when the user explicitly asks to persist the viz, pass an in-repo output path as the second argument:
- Distinctive: line 72
All edges where the node is source or target — its neighborhood:
- Very specific: line 219
If reports/concordance.json is missing, build it first (--concordance --build).
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
graph — the MIF-native knowledge graph
The knowledge graph maps the corpus as a typed substrate. It is built from the MIF findings, not from tag co-occurrence:
- Nodes — one
conceptnode per finding (@id) and oneentitynode per referenced MIFEntityReference(entities[].entity.@id), deduplicated. Every node id is aurn:mif:identifier. - Edges — typed MIF
relationships[](e.g.supports,contradicts,derived-from) carried asvia: "relationship", plusmentionsedges from a finding to each entity it references, carried asvia: "entity".
There is no separate tag-derived recompute path. The acceptance gate
(scripts/assert-graph-mif.sh) proves every node and edge traces to a urn:mif:
id and that the graph uses relationship/entity edges, not bare tag strings.
Build and refresh
bash scripts/build-graph.sh <findings-dir> # -> knowledge-graph.json
bash scripts/assert-graph-mif.sh <knowledge-graph.json> # prove MIF-nativeThe build is a pure projection of the MIF findings — safe to re-run any time a finding is added or changed.
Visualization
Render a standalone, dependency-free HTML view. The HTML is an ephemeral
artifact: with no output path it renders to a mktemp file outside the
project tree and prints the path (build-graph-viz: wrote <path>) — report that
path to the user. Never write it into reports/, which dirties the tree and
blocks copier update.
bash scripts/build-graph-viz.sh <knowledge-graph.json> # -> <mktemp-dir>/knowledge-graph.html (reported)Only when the user explicitly asks to persist the viz, pass an in-repo output path as the second argument:
bash scripts/build-graph-viz.sh <knowledge-graph.json> reports/<topic>/knowledge-graph.htmlQuerying
The graph is small enough to load whole with jq. Use the sample at
reports/_meta/sample-session/knowledge-graph.json when exploring.
--stats (or no arguments)
jq '{ nodes: (.nodes | length), edges: (.edges | length),
by_kind: [ .nodes | group_by(.kind)[] | { kind: .[0].kind, count: length } ],
by_edge_type: [ .edges | group_by(.type)[] | { type: .[0].type, count: length } ] }' \
reports/_meta/sample-session/knowledge-graph.jsonAlso report the most-connected nodes (by degree).
--node <urn:mif:id>
All edges where the node is source or target — its neighborhood:
jq --arg n "NODE_ID" '
{ node: $n,
out: [ .edges[] | select(.source == $n) | { type, target, via } ],
in: [ .edges[] | select(.target == $n) | { type, source: .source, via } ] }' \
reports/_meta/sample-session/knowledge-graph.json--between <id1> <id2>
What links two nodes: direct typed edges either way, and shared neighbors (entities both findings mention, or concepts both relate to):
jq --arg a "ID1" --arg b "ID2" '
{ direct: [ .edges[] | select((.source==$a and .target==$b) or (.source==$b and .target==$a)) ],
shared: ( [ .edges[] | select(.source==$a) | .target ]
- ([ .edges[] | select(.source==$a) | .target ] - [ .edges[] | select(.source==$b) | .target ]) ) }' \
reports/_meta/sample-session/knowledge-graph.json--kind concept|entity
List all nodes of that kind with their degree.
Natural-language questions
Parse the question for concept titles or entity names, match them to node
labels, look up the ids, and traverse. Answer conversationally, resolving each
concept node back to its finding for context.
Prerequisites
knowledge-graph.jsonfor the corpus. If missing:bash scripts/build-graph.sh <findings-dir>.
Examples
/graph --stats
/graph --build reports/_meta/sample-session/findings
/graph --node urn:mif:entity:technology:copier
/graph --between urn:mif:concept:harness:kg-copier-0001 urn:mif:concept:harness:kg-distribution-0003
/graph --kind entity
/graph --viz--concordance — query the cross-topic ontological spine (SPEC §8d)
The concordance is the corpus-wide counterpart of the per-topic graph: one unified,
ontology-typed graph over every topic — concept nodes stamped with their ontology
type + verdict, entities merged across topics by urn:mif: @id, falsified flagged (not
excluded). --concordance makes every verb below operate on reports/concordance.json
instead of a single topic's knowledge-graph.json; the node/edge shape is the same, so
--stats, --node, --between, and --kind work unchanged (plus the richer
verdict / topics / ontology fields). Two extra verbs are concordance-only:
--concordance --build— rebuild the spine over the whole corpus:scripts/build-concordance.sh # -> reports/concordance.json (all topics)--concordance --validate— fail-closed ontology conformance (every nodeentityTypeand relationshiptypemust be ontology-declared for its topic, withfrom/todomains satisfied;gate_m13enforces this):scripts/validate-concordance.sh reports/concordance.json--concordance --stats(or--concordancealone) — corpus-wide rollup, including the spine-specific breakdowns by verdict and topic:jq '{ nodes:(.nodes|length), edges:(.edges|length), by_kind: [ .nodes|group_by(.kind)[] | { kind:.[0].kind, count:length } ], by_verdict: [ .nodes|map(select(.kind=="concept"))|group_by(.verdict)[] | { verdict:(.[0].verdict//"untyped"), count:length } ], by_topic: [ .nodes|map(.topics[])|group_by(.)[] | { topic:.[0], count:length } ] }' \ reports/concordance.json--concordance --node <urn>/--between <id1> <id2>/--kind concept|entity— identical jq to the per-topic verbs above, but againstreports/concordance.json. Because entities are merged by @id, a--nodeneighborhood here spans every topic that references it (.topics), and--betweenreveals cross-topic links.
Three concordance-only query verbs surface the corpus's cross-topic structure (the same
projections scripts/synthesize-corpus.sh writes into reports/_corpus/corpus-map.json, which
/synthesize-corpus turns into the corpus atlas):
--concordance --reuse [<N>]— entities ranked by cross-topic reuse (how many topics reference them) then degree; the corpus's connective tissue. Default N=20.jq --argjson n 20 ' (.edges) as $e | [ .nodes[] | select(.kind=="entity") | .id as $id | { id, label, entityType, topic_count:(.topics|length), degree:([ $e[] | select(.source==$id or .target==$id) ]|length) } ] | sort_by([ (- .topic_count), (- .degree), .id ]) | .[0:$n]' reports/concordance.json--concordance --contradictions— typed relationship edges that signal tension across the corpus (contradicts / refutes / disputes):jq '[ .edges[] | select(.via=="relationship" and ((.type//"")|test("contradict|refut|disput"))) | { source, target, type } ]' reports/concordance.json--concordance --disproven— the full-record view: concept nodes flagged as falsified, kept (not excluded) so you can see what the corpus ruled out alongside what held:jq '[ .nodes[] | select(.kind=="concept" and .flagged==true) | { id, label, topics } ]' \ reports/concordance.json
Coverage gaps → suggest /ontology-review
The build never stops (untyped findings are valid nodes), but a topic with no bound
ontology — or one whose findings carry domain types nothing declares — leaves the
spine under-typed. After a --concordance build or validate, surface these and point the
user at the remedy; do not silently ship an under-typed spine.
Untyped concept nodes (topics that would benefit from a binding) — list the topics with any untyped finding:
jq -r '[ .nodes[] | select(.kind=="concept" and .entityType==null) | .topics[] ] | unique[]' \ reports/concordance.json- Hard conformance failures —
--concordance --validatealready fails closed and its message names the topic and the fix (… not declared by a bound ontology — fix: /ontology-review --topic <id> --enrich).
For each gap, recommend to the user: run /ontology-review --topic <id> --enrich to
bind/enrich that topic's ontology, then rebuild with --concordance --build. (A core-only
topic whose findings are all generically typed or untyped is not a gap — generic typing
is valid; only unresolved domain types are.)
If reports/concordance.json is missing, build it first (--concordance --build). See
docs/explanation/ontological-spine.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

