obsidian
What it does
This skill lets an agent work with an Obsidian notes folder through the official command line tool. It is for people who keep their notes and links in Obsidian.
When to use it
- ✓When you want to search or read notes in your Obsidian vault.
- ✓When you want to see the backlinks or outline of a note.
- ✓When you want the agent to write or update notes in your vault.
Skill link
https://github.com/steipete/agent-scripts/blob/main/skills/obsidian/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Find all my notes that mention the marketing plan and list the links pointing to each one.”
5 new skills a week. 1 minute to read.
How it works
The agent runs the Obsidian command line tool from the vault folder to search, read, and list links. It checks that the command line is enabled in Obsidian before relying on it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Obsidian
Use this for local Obsidian vault work. An Obsidian vault is a normal folder of Markdown files plus .obsidian/ config.
Sources
- App config:
~/Library/Application Support/obsidian/obsidian.json - Default vault name:
obsidian - Usual local vault path:
~/obsidian - Official CLI:
obsidian - Vault commands resolve the vault from cwd; run them from
~/obsidian.
First Checks
command -v obsidian
obsidian version
obsidian vaults
cd ~/obsidian
obsidian commands filter=search:
Global commands like version and vaults work outside a vault. Vault-content
commands may print Vault not found. outside ~/obsidian. Use obsidian commands, not obsidian help, for CLI discovery.
If obsidian says CLI is disabled:
- Prefer asking the user to enable Settings -> General -> Advanced -> Command line interface.
- If you already confirmed the app config shape,
~/Library/Application Support/obsidian/obsidian.jsonuses"cli": true. - Restart Obsidian after changing app-level CLI config.
Read Workflow
Prefer official CLI for Obsidian-aware lookups:
cd ~/obsidian
obsidian search query="OpenClaw" format=json
obsidian search:context query="OpenClaw" limit=20 format=json
obsidian read path="Folder/Note.md"
obsidian file path="Folder/Note.md"
obsidian outline path="Folder/Note.md" format=json
obsidian backlinks path="Folder/Note.md" format=json
obsidian links path="Folder/Note.md"
obsidian properties path="Folder/Note.md" format=json
Use direct filesystem reads when you already know the path and need exact bytes:
sed -n '1,220p' "$HOME/obsidian/Folder/Note.md"
rg -n "term" "$HOME/obsidian"
Report which source you used when freshness or vault choice matters.
Write Workflow
Choose the narrowest write path:
- New note:
obsidian create path="Folder/Note.md" content="...". - Append/prepend daily notes:
obsidian daily:append content="...". - Simple note edits: use
apply_patchon the Markdown file. - Rename/move notes: prefer
obsidian move path="Old.md" to="Folder/New.md"so links can update. - Opening UI after a write: add
openonly when useful or requested.
Common commands:
cd ~/obsidian
obsidian create path="Notes/New.md" content="# New\n\nBody"
obsidian append path="Notes/New.md" content="More text"
obsidian move path="Notes/New.md" to="Archive/New.md"
obsidian daily:path
obsidian daily:read
obsidian daily:append content="- Follow-up item"
For multi-line content, prefer editing the .md file with apply_patch once the path is known. Avoid fragile shell quoting for long prose.
Bases, Canvas, Plugins
Use CLI discovery first:
cd ~/obsidian
obsidian bases
obsidian base:views path="Projects.base"
obsidian base:query path="Projects.base" view="Active" format=json
obsidian plugins format=json
obsidian plugins:enabled format=json
obsidian commands filter=workspace:
For .canvas, .base, and .json files, read/edit as structured data when possible. Keep formatting stable and validate JSON after edits.
Safety
- Do not bulk rewrite the vault. Use targeted paths and review diffs.
- Do not edit
.obsidian/unless the user asks or the task is explicitly settings/plugin work. - Do not delete notes unless explicitly asked; prefer trash over permanent delete.
- Do not create hidden dot-folder notes through the Obsidian URI/CLI path.
- Preserve frontmatter and wikilinks unless the task is to refactor them.
- If multiple vaults exist, do not guess; use
obsidian vaultsandobsidian.json.
FAQ
What is a vault?
A normal folder of Markdown files plus a hidden folder with Obsidian's settings.
Do I need the Obsidian command line turned on?
Yes. The skill says it must be enabled in Obsidian's advanced settings.
Where does the agent run the commands?
From inside the vault folder, because vault commands read the vault from the current folder.
Details
Original description by the author
Obsidian vault: search/read/write notes, backlinks, Bases, Canvas.
repo: steipete/agent-scripts
Popularity
- GitHub stars
- 7.4k
- Ranking position
- #13239
- License
- MIT
- Updated
- 10/30/2026
Comments
- …
More skills from this repository
beeper
7.4kHelps your agent search your local Beeper chat history to find messages and work out which chat or contact a vague hint refers to.
cloudflare-registrar
7.4kHelps your agent check Cloudflare Registrar domain prices and availability, and register or list domains with a confirmation step.
codexbar
7.4kHelps your agent check how much usage you have left on AI services such as Codex, Claude, and Kimi, including limits, credits, and reset times.
create-cli
7.4kHelps your agent design a command line tool's commands, flags, help text, output, and errors so it works for both people and scripts.
Similar skills
knowledge-capture
394kTeaches your agent to save decisions, preferences, and key facts to your Knowledge vault as short notes with source attribution.
knowledge-claim-consolidation
394kHelps your agent tidy a Knowledge vault by merging duplicate claims, moving them to the right subject pages, and retiring outdated ones.
knowledge-correct
394kLets your agent fix or withdraw a specific saved Knowledge claim or page at your request, keeping a record of what changed.