vault-graph
Skill39 starsChanged 8 months agoMITView on GitHub
Use when analyzing vault structure, finding orphan notes, discovering missing connections, identifying bridge concepts, or checking vault health from a graph perspective. Triggers on "vault graph", "map vault", "find orphans", "missing links", "vault structure", "knowledge graph".
- Pipes a download into a shell
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- thiagofinch/mega-braintheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- thiagofinch/mega-brain★ 95same name
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 repository13 other files it gives its agents.
- skills/init/scaffold/CLAUDE.mdCLAUDE.md
- book-analyzerSkill
- courseSkill
- deep-researchSkill
- initSkill
- lectureSkill
- paper-discoverSkill
- processSkill
- recallSkill
- researchSkill
- slide-makerSkill
- synthesizeSkill
- youtubeSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Run the Python script first — it handles all graph math deterministically
- Distinctive: line 39
If uv is not installed, provide install command and stop
- Distinctive: line 47
Run the analysis script from the skill directory:
- Very specific: line 71
Read the agent definition from agents/graph-analyst.md in the skill directory.
- Distinctive: line 106
If the user wants to ACT on suggestions (create notes, add links), help them do so using standard vault tools (Edit, write_note, etc.).
- Very specific: line 112
Bash: Run analyze_vault_graph.py script
- Very specific: line 113
Read: Read agent definition from agents/graph-analyst.md
- Distinctive: line 116
Grep/Glob: Follow-up searches if user wants to explore specific findings </Tool_Usage>
- Distinctive: line 122
Run script → JSON with 847 notes, 2341 edges, 43 orphans
- Distinctive: line 131
Run script → 43 orphans identified
- Distinctive: line 141
Should: Run agent to explain what the numbers MEAN </Bad> </Examples>
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<Purpose>
Analyze the vault's wikilink structure as a directed graph. Computes PageRank
(most influential concepts), betweenness centrality (bridge nodes connecting
domains), orphan detection, cluster analysis, and missing-link discovery.
Combines deterministic graph computation (Python/NetworkX) with intelligent
interpretation (agent) to surface actionable insights.
</Purpose><Use_When>
- User asks about vault structure, connections, or health
- User wants to find orphan notes (unlinked, isolated)
- User wants to discover missing connections between notes
- User wants to identify the most important concepts in the vault
- User asks "what should I link?" or "what's disconnected?"
- As part of /health workflow for structural metrics
- User says "map", "graph", "network", "connections", "orphans", "bridges" </Use_When>
<Do_Not_Use_When>
- User wants to search note CONTENT (use Grep/search_notes instead)
- User wants to process a single note (use /process)
- User wants tag analysis without graph structure (use /health) </Do_Not_Use_When>
<Execution_Policy>
- Run the Python script first — it handles all graph math deterministically
- Pipe script output to the graph-analyst agent for interpretation
- Report progress via TodoWrite
- If uv is not installed, provide install command and stop
- Script runs on the full vault — no sampling needed (handles 5000+ notes) </Execution_Policy>
<Steps>Stage 1: RUN GRAPH ANALYSIS
Run the analysis script from the skill directory:
SKILL_DIR="${CLAUDE_SKILL_DIR}"
uv run "$SKILL_DIR/scripts/analyze_vault_graph.py" "." --top 20The script outputs JSON to stdout with:
summary: total notes, edges, orphans, density, clustering coefficienttop_pagerank: most influential notestop_betweenness: bridge concepts connecting clusterstop_in_degree: most referenced notestop_out_degree: most connecting notesorphans: notes with zero links in/outdead_ends: notes referenced but linking nowhereclusters: connected components with dominant typesmissing_links: wikilinks pointing to non-existent notestype_distribution: counts by note typestatus_distribution: counts by processing status
Requires uv installed (brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh). Dependencies auto-install on first run.
Stage 2: INTERPRET WITH AGENT
Read the agent definition from agents/graph-analyst.md in the skill directory.
Launch the analyst agent:
Agent(
subagent_type="general-purpose",
model="sonnet",
run_in_background=false,
prompt="You are Graph Analyst. Follow these instructions exactly:
[INSERT FULL CONTENT OF agents/graph-analyst.md HERE]
VAULT CONTEXT:
- This is a Zettelkasten-style Obsidian vault
- Note types: term (atomic concepts), thought (original synthesis),
paper/post/book (sources), note (explanations), decision-log
- Tags are inline (#topic), not frontmatter
- Cross-domain connections are the vault's highest-value links
GRAPH ANALYSIS RESULTS:
[INSERT JSON OUTPUT FROM STAGE 1 HERE]
Produce your analysis following the Output Format specified above."
)Stage 3: PRESENT RESULTS
Present the agent's analysis to the user. Include:
- The health score and top findings
- Specific bridge concepts and orphans
- Missing notes worth creating
- Suggested new connections
If the user wants to ACT on suggestions (create notes, add links), help them do so using standard vault tools (Edit, write_note, etc.).
</Steps><Tool_Usage>
- Bash: Run analyze_vault_graph.py script
- Read: Read agent definition from agents/graph-analyst.md
- Agent: Delegate interpretation to graph-analyst (sonnet)
- TodoWrite: Report progress at each stage
- Grep/Glob: Follow-up searches if user wants to explore specific findings </Tool_Usage>
<Examples>
<Good>
User: "Show me my vault's knowledge graph health"
1. Run script → JSON with 847 notes, 2341 edges, 43 orphans
2. Agent interprets → "Your ML cluster is dense but isolated from psychology.
[[Reinforcement Learning]] and [[Operant Conditioning]] both describe
reward-based behavior but aren't linked."
3. Present: 5 findings, 8 bridge suggestions, 12 orphans worth connecting
</Good><Good>
User: "Find orphan notes"
1. Run script → 43 orphans identified
2. Agent filters → 15 are legitimately standalone (daily notes, clippings),
28 should be connected
3. Present prioritized list: "[[Loss Aversion]] is a term note with zero
links — should connect to [[Prospect Theory]] and [[Pricing Psychology]]"
</Good><Bad>
User: "Map my vault"
- Dumps raw JSON metrics without interpretation
- Should: Run agent to explain what the numbers MEAN
</Bad>
</Examples><Escalation_And_Stop_Conditions>
- uv not installed: Print install command (
brew install uv), stop - Vault too small (<10 notes): Warn that graph analysis needs mass to be useful
- Script error: Report error, don't proceed to interpretation </Escalation_And_Stop_Conditions>
$ARGUMENTS
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.

