← 返回
未分类 中文

Obsidian Vault Integration

Read and write data with an Obsidian vault used as a shared knowledge base. Use when an agent needs to read vault notes (business plan, tasks, milestones, te...
使用作为共享知识库的 Obsidian 库读写数据。当智能体需要读取库笔记(商业计划、任务、里程碑等)时使用。
dmanock
未分类 clawhub v1.0.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 664
下载
💾 15
安装
1
版本
#latest#latest obsidian vault

概述

Obsidian Vault Integration

Integrates OpenClaw agents with an Obsidian vault for shared knowledge management. Supports structured reading of task lists, milestones, team info, and safe writes back to vault files.

Configuration

Set the vault path via environment variable OBSIDIAN_VAULT_PATH. If not set, uses the default path noted in AGENTS.md.

Environment variables used:

  • OBSIDIAN_VAULT_PATH — Path to the Obsidian vault directory (optional, defaults to agent's configured path)

Quick Start

Read tasks from vault

python scripts/vault-read.py <vault-path> --file open-questions.md --format json

Returns JSON array of tasks parsed from checkbox items, with priority (critical/important/nice), status (todo/done), owner, and title.

Add a task to the vault

python scripts/vault-write.py <vault-path> --file open-questions.md --action add-task --title "New task" --priority important --owner Dave

Mark a task done

python scripts/vault-write.py <vault-path> --file open-questions.md --action mark-done --task-id 3

File Discovery

Files are discovered by their frontmatter type: field as the primary method. If a file is moved to a subfolder, it's still found by metadata.

---
type: open-questions
status: active
---

Fallback chain:

  1. Frontmatter type: field (most reliable — survives moves)
  2. Filename pattern matching (e.g., open-questions)
  3. Full-text search (slowest, last resort)

See references/file-formats.md for parsing rules per file type.

Error Handling

CodeMeaningRecovery
-------------------------
ERR_VAULT_NOT_FOUNDVault path doesn't existCheck OBSIDIAN_VAULT_PATH or AGENTS.md
ERR_FILE_NOT_FOUNDRequested file not foundRun discovery to find by metadata
ERR_PARSE_FAILEDMalformed markdownReturn partial data with warning
ERR_CONFLICTFile changed since last readRe-read, resolve manually

Safety

  • All writes are logged to /.vault-audit.log (timestamp, agent, file, action)
  • Timestamp check prevents overwrites when file has changed
  • Solo mode (default): all agents can read/write everything
  • Team mode (v2): per-agent folder permissions

Permissions

Solo mode (default): No config needed. All agents have full read/write access.

Team mode (v2, not yet implemented): Optional permissions block in SKILL.md for folder-level access control per agent.

Scripts

  • vault-read.py — Read and parse vault files into structured JSON
  • vault-write.py — Write updates back to vault files with safety checks

References

  • references/file-formats.md — Parsing rules for each file type

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-30 04:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,332
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,951
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,916