/obsidian-second-brain:obsidian-visualizefrom obsidian-second-brain
Generates a visual canvas map of your Obsidian vault, showing how notes and knowledge connect. Optionally scopes to a specific note's 2-hop neighborhood and outputs a .canvas file with a centrality summary.
Ships in obsidian-second-brain. Installing the plugin adds it to Claude Code.
Use the obsidian-second-brain skill. Execute /obsidian-visualize $ARGUMENTS:
The optional argument is a scope: an EXACT note title or alias (a project, an entity), or "full" for the entire vault. Default: full vault. A free-form topic phrase will not match - resolve it to a real note title first (e.g. via /obsidian-find).
Read _CLAUDE.md first if it exists in the vault root
Build the graph deterministically with the scanner instead of reading every note into context (a full-vault read is O(read-everything) and burns the budget). Run from the skill root (its absolute path was given at session start as Skill root; substitute it for SKILL_ROOT):
uv run --directory "SKILL_ROOT" scripts/link_graph.py --path "<vault>" [--scope "<topic/project/entity>"]
It returns JSON with nodes (path, title, type, folder, in/out/degree), edges (resolved [[wikilink]] pairs), and stats (node_count, edge_count, orphan_count, dangling_link_count, top_hubs, orphans). Pass --scope with an exact note title/alias (the script keeps that note plus its 2-hop neighborhood); omit it for the full vault. If the result has node_count: 0, the scope did not resolve to a note - find the real title and rerun. Use this JSON as the graph - only open individual notes if you need a label the scan did not provide.
Generate a JSON Canvas file (.canvas) compatible with Obsidian's native canvas viewer:
Structure:
{
"nodes": [
{"id": "1", "type": "file", "file": "wiki/entities/Ada Lovelace.md", "x": 0, "y": 0, "width": 250, "height": 60},
{"id": "2", "type": "file", "file": "wiki/projects/Tide Gateway.md", "x": 300, "y": 0, "width": 250, "height": 60}
],
"edges": [
{"id": "e1", "fromNode": "1", "toNode": "2"}
]
}
Layout rules:
label (JSON Canvas edges have no thickness property)Save to vault root as atlas.canvas (or atlas-{topic}.canvas if scoped)
Also generate a text summary with centrality ranking (use the scanner's stats and per-node degree/in/out directly - do not recompute by hand):
stats.node_count, stats.edge_count), plus the dangling_link_count (wanted notes - links to unwritten notes).stats.top_hubs (already ranked by degree), each with its link count and a one-line "everything flows through this because..." note. A hub qualifies if its degree is at least 3x the median, or it sits in the top 1% of the vault - whichever surfaces fewer.Append to the operation log: if Logs/ exists write **HH:MM** - visualize | Canvas generated - X nodes, Y edges, Z orphans to Logs/YYYY-MM-DD.md; otherwise append ## [YYYY-MM-DD] visualize | Canvas generated - X nodes, Y edges, Z orphans to log.md
The user can open the .canvas file in Obsidian to visually explore their vault's knowledge graph.
AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future Claude preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. The vault is for future-Claude retrieval - not human reading.
Anti-fabrication: Search exhaustively before claiming any note, person, or file is absent - false absence is the most common failure mode - and never invent facts, entities, or dates (mark unknowns as TBD). See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub cirobarone78/brain --plugin obsidian-second-brain45 commands in this plugin
/create-commandFast path (skip the interview when the seed already answers it)Create a new obsidian-second-brain command via interview - zero markdown editing required/idea-discoveryIdea DiscoverySurface 3-5 next-direction candidates by reading ungraduated ideas, open project questions, and orphan research notes - what is worth working on next/notebooklmVault-first source-grounded research via Gemini File Search. One command, no browser. The grounded parallel to /research-deep (which is open-web via Perplexity)./obsidian-architectObsidian ArchitectScan a codebase and write a maintained set of architecture notes into the vault - overview, per-module notes, key decisions. Re-run to refresh without clobbering your edits/obsidian-boardObsidian BoardShow or update a kanban board - flags overdue items, updates from conversation/obsidian-board-hygieneObsidian Board HygieneBulk-triage a kanban board - surface stale items and archive, reschedule, or mark them done in one passOther plugins' commands for the same job