An OpenClaw-compatible AgentSkill for working with the official Obsidian 1.12+ CLI (obsidian).
This skill is built for retrieval-first agent workflows against a running Obsidian desktop app. It is especially useful for OpenClaw, Claude Code, and similar agent systems that want to query a live Obsidian vault transparently, without making vector import the default path.
There are older community tools such as obsidian-cli / NotesMD, and they are still useful in some setups. But Obsidian 1.12 introduced an official CLI exposed by the desktop app itself.
This skill focuses on that official path and encourages a workflow like:
search -> search:context -> read -> backlinks / links / properties
That makes retrieval:
- more transparent
- easier to verify
- closer to what a human sees inside Obsidian
- often cheaper in token cost than broad note dumping or first-pass vectorization
The skill is centered around these commands:
searchsearch:contextreadoutlinebacklinkslinkstagspropertiestasksunresolved
It defaults to a read-first posture and documents safer boundaries around write-capable commands such as append, delete, command, and eval.
obsidian-official-cli/— skill sourcedist/obsidian-official-cli.skill— packaged skill artifactREADME.zh-CN.md— Chinese README
- Obsidian Desktop 1.12+
- Obsidian Command line interface enabled in:
Settings -> General -> Command line interface
- A working
obsidiancommand
On macOS, using a login shell may help ensure PATH includes:
/Applications/Obsidian.app/Contents/MacOS
obsidian search query="PLC" limit=10 format=json
obsidian search:context query="PLC" limit=10 format=jsonobsidian read path="文档发布/2026-03-08_边缘AI推理安全与网关防护.md"obsidian backlinks file="Central note" format=json counts
obsidian links file="Central note"obsidian tags counts format=json
obsidian properties counts format=json
obsidian unresolved totalUse the packaged file in:
dist/obsidian-official-cli.skill
Copy:
obsidian-official-cli/
into your OpenClaw skills directory.
This skill intentionally does not replace older community obsidian-cli / NotesMD workflows. It is a parallel skill for environments where the official obsidian CLI is already available and preferred.
It also intentionally favors:
- small, explainable retrieval steps
- structured output (
format=json) when possible - narrow reads over whole-vault ingestion
- validated
- packaged
- tested against a real Obsidian vault using the official CLI
MIT