knowledge-graph
Knowledge Graph
Turns a repo — or several repos at once — into a browsable graph: every real file is a node, every real cross-reference or import is an edge, and every node opens to that file's actual full content. Nothing in the output is invented; every node and edge traces back to a file that was actually read or a statement that was actually parsed.
This skill embeds everything it produces — the viewer page and both Python
scripts — as complete code blocks below. Write them out verbatim into the
target repo, adapt the two TODO-marked sections in the build_graph.py
starter to that repo's real folders and language, then run it. Nothing here
needs a network fetch or a package install beyond a plain Python 3
interpreter; the viewer itself loads D3 and a Markdown renderer from a CDN
at view time.