| name | sprang-knowledge |
| description | Build an interactive knowledge graph from a folder of markdown notes — Obsidian, Logseq, Dendron, Foam, Zettelkasten, or plain markdown. Use when the user says "/sprang-knowledge", "index my notes", "build graph from notes", or "analyze my Obsidian vault". |
Build an interactive knowledge graph from a folder of markdown notes — Obsidian, Logseq, Dendron, Foam, Zettelkasten, or plain markdown.
Arguments: [path] [--format obsidian|logseq|dendron|foam|zettelkasten|plain] [--language <lang>] [--full]
Analyze markdown notes and produce .sprang/knowledge-graph.json with typed nodes (article/entity/topic/claim/source), wikilink edges, topic clusters, and a guided reading tour.
Quick phases:
- Pre-flight — resolve notes root, detect format (Obsidian/Logseq/Dendron/Foam/Zettelkasten/plain), check
.sprangignore
- Scan notes — find all
.md files, extract titles/wikilinks/tags/frontmatter, build wikilink resolution map
- Analyze notes — read each note in batches of 15, classify type (article/entity/topic/claim/source), write 2-3 sentence summaries, infer edge types from context
- Cluster + layer — group notes into 3-10 topic clusters by tag density and wikilink patterns
- Assemble + save — write
knowledge-graph.json with "kind": "knowledge" + SPRANG_REPORT.md
After completion: dashboard auto-switches to knowledge view mode with KnowledgeInfo sidebar and ReadingPanel.
$ARGUMENTS