Agent skill · Obsidian Skills
/obsidian-cli Manage notes and debug plugins through the Obsidian CLI
This skill teaches the agent to use the obsidian command that ships with the desktop app. It covers parameter and flag syntax, how files and vaults are targeted, everyday commands for reading, creating, searching and editing notes and tasks, and a reload, error-check and screenshot loop for plugin and theme development, along with several quirks that otherwise cause silent failures.
Works with
- Claude Code
- Codex
- npx skills
- Gemini CLI
- OpenCode
When to use it
- You want the agent to search, read or append to notes in your vault
- You need notes renamed or moved without breaking links
- You are developing an Obsidian plugin or theme and want a fast test loop
How it works
- 1Check the CLI
The agent runs obsidian help first, explains how to turn the CLI on if it is missing, and never installs the unrelated npm package of a similar name.
- 2Target the right vault and file
It puts vault= first when needed, uses file= for wikilink-style lookup or path= for exact paths, and asks which vault to use if several exist.
- 3Use app-aware commands
It renames, moves and deletes through the CLI so Obsidian updates links and uses the trash, and prefers create and append over eval.
- 4Read the output
Because the CLI exits with status 0 even on failure, it reads the output before reporting success, and writes long or backslash-heavy content straight to files.
- 5Plugin dev loop
For plugins it turns on console capture, reloads the plugin, checks errors, and verifies with screenshots, DOM queries and console logs.
What it steers the agent away from
- Moving notes with mv and leaving broken links behind
- Permanently deleting files when the trash would do
- Corrupting LaTeX or Windows paths through escape conversion in content=
Install this skill
It installs with the Obsidian Skills pack.
Claude Code (terminal)Update later with claude plugin update obsidian@obsidian-skills.
claude plugin marketplace add obsidianmd/obsidian-skills
claude plugin install obsidian@obsidian-skillsClaude Code (in session)Same plugin, installed from inside a Claude Code session.
/plugin marketplace add obsidianmd/obsidian-skills
/plugin install obsidian@obsidian-skillsCodexAdds the marketplace; finish by picking Obsidian in the Codex or ChatGPT desktop plugin list.
codex plugin marketplace add obsidianmd/obsidian-skillsnpx skillsWorks with any agent the skills CLI supports.
npx skills add https://github.com/obsidianmd/obsidian-skillsnpx skills (SSH)For users with a GitHub SSH key set up.
npx skills add git@github.com:obsidianmd/obsidian-skills.gitGemini CLIInstalls from the latest GitHub release.
gemini extensions install https://github.com/obsidianmd/obsidian-skillsOpenCodeClone the full repo rather than the inner skills folder, then restart OpenCode.
git clone https://github.com/obsidianmd/obsidian-skills.git ~/.opencode/skills/obsidian-skillsCommands come from the author’s README; check it for changes before you run them.
Questions
Does it work on Windows under WSL?
Yes, but the agent must call Obsidian.com from the Windows install folder, since Obsidian.exe exits without printing output.
What if the agent runs in a sandbox?
A sandboxed shell may block the CLI's local socket, which shows up as the same error as Obsidian not running.
More guides from Obsidian Skills
/json-canvasGenerate valid Obsidian canvases from mind maps to flowchartsCreates and edits .canvas files to the JSON Canvas 1.0 spec, with unique IDs, valid edges and sensible node spacing.Read the guide →/obsidian-basesWrite Obsidian Bases views without YAML and formula errorsBuilds .base files with filters, formulas, summaries and table, cards, list, map or kanban views, and fixes common YAML errors.Read the guide →
Also in this pack
/defuddlePulls clean Markdown or metadata from a web page with the Defuddle CLI, stripping navigation and ads.↗/knapRenders notes from Markdown templates and JSON or CSV data with Knap, including one file per row in batch mode.↗/obsidian-headlessSets up and runs Obsidian Sync and Publish from a terminal, server or CI with the ob command, no desktop app needed.↗
Summary by trendhub. The skill itself lives in obsidianmd/obsidian-skills/plugins/obsidian/skills/obsidian-cli by Obsidian (MIT); read the full, current text there.