Skills Prompts Hues

Popular categories

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

  1. 1
    Check 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.

  2. 2
    Target 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.

  3. 3
    Use 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.

  4. 4
    Read 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.

  5. 5
    Plugin 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-skills
Claude Code (in session)Same plugin, installed from inside a Claude Code session.
/plugin marketplace add obsidianmd/obsidian-skills
/plugin install obsidian@obsidian-skills
CodexAdds the marketplace; finish by picking Obsidian in the Codex or ChatGPT desktop plugin list.
codex plugin marketplace add obsidianmd/obsidian-skills
npx skillsWorks with any agent the skills CLI supports.
npx skills add https://github.com/obsidianmd/obsidian-skills
npx skills (SSH)For users with a GitHub SSH key set up.
npx skills add git@github.com:obsidianmd/obsidian-skills.git
Gemini CLIInstalls from the latest GitHub release.
gemini extensions install https://github.com/obsidianmd/obsidian-skills
OpenCodeClone the full repo rather than the inner skills folder, then restart OpenCode.
git clone https://github.com/obsidianmd/obsidian-skills.git ~/.opencode/skills/obsidian-skills

Commands 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

Also in this pack

All 7 skills →

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.