obsidian
它能做什么
它指导 AI 智能体通过 Obsidian 官方命令行处理 Obsidian vault 中的笔记。它适合把知识保存在 Obsidian 中、希望智能体帮忙管理的人。
适用场景
- ✓你想让智能体在 Obsidian vault 中查找或阅读某篇笔记的时候。
- ✓你需要在 Obsidian 中创建或编辑笔记、任务或属性的时候。
- ✓你有多个 Obsidian vault,需要选择正确的一个的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/skills/obsidian/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的 Obsidian vault 中搜索状态为 active 的笔记,并把它们列给我。”
每周 5 个新技能,1 分钟读完。
工作原理
技能使用 obsidian 命令,它需要 Obsidian 应用正在运行,并且已开启其命令行功能。它读取或修改笔记;在更安全的情况下,它也可以直接编辑纯 Markdown 文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Obsidian
Use the official obsidian CLI for Obsidian vault work. Vault files are plain Markdown, so direct file edits are still fine when safer/faster.
Requirements
- Obsidian 1.12.7+ installed.
- Settings -> General -> Command line interface enabled.
obsidianregistered on PATH.- Obsidian app running; the CLI connects to the running app.
Check:
obsidian version
obsidian help
macOS registration creates /usr/local/bin/obsidian pointing at the app-bundled CLI. Linux registration copies the binary to ~/.local/bin/obsidian.
Vault model
- Notes:
*.md. - Config:
.obsidian/; avoid editing unless asked. - Canvases:
*.canvasJSON. - Attachments: vault-configured folder.
- Multiple vaults are common; pass
vault="<name>"when ambiguous.
Obsidian desktop tracks vaults here:
~/Library/Application Support/obsidian/obsidian.json
Command pattern
obsidian <command> [name=value] [flag]
obsidian vault="Notes" search query="meeting notes" format=json
Parameter values with spaces need quotes. Add --copy to copy output where useful.
Common commands
Open/read:
obsidian open file=Recipe
obsidian open path="Inbox/Idea.md" newtab
obsidian read
obsidian read file=Recipe
Search:
obsidian search query="TODO" matches
obsidian search query="status::active" format=json
obsidian search:open query="project notes"
Create/modify:
obsidian create name="New Note"
obsidian create path="Inbox/Idea.md" content="# Idea"
obsidian append file=Note content="New line"
obsidian prepend file=Note content="After frontmatter"
Move/delete:
obsidian move file=Note to=Archive/
obsidian move path="Inbox/Old.md" to="Projects/New.md"
obsidian delete file=Note
Daily/tasks:
obsidian daily
obsidian daily:read
obsidian daily:append content="- [ ] Review inbox"
obsidian tasks all todo
obsidian task file=Note line=8 done
Properties/links:
obsidian tags all counts
obsidian property:read file=Note name=status
obsidian property:set file=Note name=status value=done
obsidian backlinks file=Note
obsidian unresolved verbose counts
Developer/debug:
obsidian plugin:reload my-plugin
obsidian dev:errors
obsidian dev:screenshot file=shot.png
obsidian eval "app.vault.getFiles().length"
Notes
file=<name>uses Obsidian-style file resolution;path=<vault-relative.md>is exact.- Prefer CLI move/delete/property commands for Obsidian-aware updates.
- Prefer direct Markdown edits for bulk text changes after locating the vault path.
- Do not rely on third-party
obsidian-cliunless user explicitly asks for it.
常见问题
Obsidian 必须打开吗?
需要。命令行连接的是正在运行的 Obsidian 应用,因此应用必须是打开的。
如果我有多个 vault 怎么办?
当存在多个 vault 时,你需要在命令中指定名称,以确保使用正确的那个。
它会修改我的设置文件夹吗?
除非你要求,否则技能避免编辑 .obsidian 设置文件夹。
详情
作者的原始描述
Work with Obsidian vaults using the official obsidian CLI: read/search/create/edit notes, tasks, links, properties, plugins.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #69
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。