跳到正文
Skillpedia
写作394k · #69

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/obsidian/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.
  • obsidian registered 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: *.canvas JSON.
  • 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-cli unless 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能