graph-builder

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Graph Builder

Graph Builder

Analyze vault link structure and build meaningful connections between notes.
在Obsidian库中分析链接结构,为笔记建立有意义的关联。

Use Cases

使用场景

  1. Analyze — Statistics and insights about vault graph
  2. Find Orphans — Notes without incoming/outgoing links
  3. Suggest Links — AI-powered connection recommendations
  4. Add Links — Batch link creation based on content analysis
  5. Visualize — Export graph data for visualization
  1. 分析 — 关于库图谱的统计数据和洞察
  2. 查找孤立笔记 — 没有入站/出站链接的笔记
  3. 建议关联 — 基于AI的连接推荐
  4. 添加链接 — 基于内容分析批量创建链接
  5. 可视化 — 导出图谱数据用于可视化

Quick Commands

快捷命令

CommandAction
/graph analyze
Full vault analysis with stats
/graph orphans
List unconnected notes
/graph suggest
Get link suggestions
/graph add
Apply suggested links
命令操作
/graph analyze
完整的库分析及统计数据
/graph orphans
列出无关联的笔记
/graph suggest
获取链接建议
/graph add
应用建议的链接

Analysis Output

分析输出

📊 Vault Graph Analysis

Total notes: 247
Total links: 892
Orphan notes: 12
Most connected: [[MEMORY]] (47 links)
Weakest domain: learnings/ (avg 1.2 links/note)

🔗 Suggested connections:
• [[Project A]] ↔ [[Client X]] (mentioned 5x)
• [[Idea B]] → [[MOC/Ideas]] (category match)
📊 库图谱分析

总笔记数: 247
总链接数: 892
孤立笔记数: 12
关联最多的笔记: [[MEMORY]] (47个链接)
关联最弱的领域: learnings/ (平均1.2个链接/笔记)

🔗 建议的关联:
• [[Project A]] ↔ [[Client X]] (提及5次)
• [[Idea B]] → [[MOC/Ideas]] (类别匹配)

Domain Configuration

领域配置

Domains are configured in
references/domains.md
. Default structure:
  • daily/ — Daily journal entries
  • thoughts/ — Processed ideas, reflections, learnings
  • goals/ — Goal cascade files
  • MOC/ — Maps of Content (index pages)
  • projects/ — Project notes
领域在
references/domains.md
中配置。默认结构:
  • daily/ — 每日日志条目
  • thoughts/ — 整理后的想法、反思、学习内容
  • goals/ — 目标层级文件
  • MOC/ — 内容地图(索引页面)
  • projects/ — 项目笔记

Link Building Strategy

链接构建策略

  1. Entity extraction — Find mentions of existing notes
  2. Category mapping — Connect notes to relevant MOCs
  3. Temporal links — Link daily entries to related thoughts
  4. Cross-domain — Bridge domains (project ↔ goal ↔ daily)
  1. 实体提取 — 查找现有笔记的提及内容
  2. 类别映射 — 将笔记关联到相关的MOC
  3. 时间关联 — 将每日条目与相关想法链接
  4. 跨领域关联 — 连接不同领域(项目 ↔ 目标 ↔ 日常)

Scripts

脚本

  • scripts/analyze.py
    — Graph statistics and orphan detection
  • scripts/add_links.py
    — Batch link insertion
  • scripts/analyze.py
    — 图谱统计与孤立笔记检测
  • scripts/add_links.py
    — 批量插入链接

References

参考文档

  • references/domains.md
    — Domain definitions and rules
  • references/frontmatter.md
    — Frontmatter schema for notes
  • references/domains.md
    — 领域定义与规则
  • references/frontmatter.md
    — 笔记的前置元数据 schema

Output Format

输出格式

Reports use plain markdown (for vault notes) or HTML (for Telegram).
For vault: Standard markdown with [[wiki-links]] For Telegram: HTML tags (b, i, code only)
报告使用纯Markdown格式(用于库笔记)或HTML格式(用于Telegram)。
对于库:标准Markdown格式,包含[[wiki-links]] 对于Telegram:仅使用HTML标签(b, i, code)