Obsidian shared

From fanfan-de/anybox · View interactive version

Obsidian shared is an AI agent skill from the GitHub repository fanfan-de/anybox. Use when setting up, verifying, or troubleshooting the official Obsidian CLI, selecting a vault, checking CLI availability, or handling Obsidian CLI command failures.

How to use this skill

Skill file

Obsidian Shared CLI

Use this skill before more specific Obsidian skills when the request depends on the obsidian command being available, the target vault is ambiguous, or a command fails.

Preconditions

First Checks

Run these from PowerShell when starting a task or diagnosing a failure:

obsidian version
obsidian vault
obsidian vaults verbose
obsidian files total

If obsidian is not recognized, tell the user to enable the command line interface in Obsidian settings and complete the registration prompt.

Vault Selection

If the current shell directory is inside a vault, Obsidian targets that vault. Otherwise it targets the currently active vault.

To force a vault, put vault=<name-or-id> before the command:

obsidian vault="Work Notes" search query="roadmap"
obsidian vault="Work Notes" read path="Projects/Roadmap.md"

Use vaults verbose to discover vault names and paths before choosing a vault.

Parameters

CLI parameters use key=value.

Use file=<name> for wikilink-style file resolution. Use path=<vault-relative-path> when the exact vault-relative path is known. Prefer path for automation because it is less ambiguous.

Use quoted values when a value contains spaces:

obsidian create name="Meeting Notes" content="Hello"

For multiline content, use \n sequences unless a local script safely passes the argument as one string.

Safety Rules

Useful Diagnostics

obsidian help
obsidian help read
obsidian commands filter=obsidian
obsidian dev:errors
obsidian dev:console limit=50
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.