Obsidian 笔记库管理
obsidian
使用官方 obsidian CLI 操作 Obsidian 知识库(vault):读取/搜索/创建/编辑笔记、任务、链接、属性和插件。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 39w
- Forks
- 8.3w
01 前言 Front Matter
- name
- obsidian
- homepage
- https://obsidian.md/cli
- metadata
- { "openclaw": { "emoji": "?", "requires": { "bins": [ "obsidian" ] } } }
- description
- Work with Obsidian vaults using the official obsidian CLI: read/search/create/edit notes, tasks, links, properties, plugins.
03 SKILL.md 正文
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.
04 同仓库更多 Skills
creative-project
Design or revise branding, visual identities, logos, posters, illustrations, and social-media assets using project artwork or image references. Inspect the existing visual language, choose references, and iterate on named candidates.
ios-e2e
iOS app on the simulator - build, run, pair with an isolated Gateway, drive the UI, screenshots, logs and crashes, focused tests, and end-to-end proof.
labs-graduation
Move a feature out of Control UI Labs, either on by default or still off by default. Use when asked to promote, graduate or ship a Labs feature.
Lobster 自动化工作流编排
lobster
暂无简介
X 平台 CLI 操作
xurl
xurl CLI 工具,用于经过身份验证的 X(原 Twitter)发帖、回复、读取/搜索、私信(DM)、媒体上传、关注者管理、认证状态查看,或原始 v2 API 调用。
天气查询与预报
weather
使用 web_fetch 获取当前天气和天气预报,在涉及地点、降雨、温度、出行规划等场景时回退到通过 curl 调用 wttr.in。