obsidian-cli

obsidian-cli is a skill for Claude Code, Codex from Lapis0x0/obsidian-yolo. It costs 67 tokens per session (530 once invoked), scanned A, original, MIT.

A set of instructions for using Obsidian's official command-line tool from a terminal. Obsidian is a note-taking application, and its command-line tool can handle note features such as links between notes, properties, daily notes, tasks, and history.

In plain words
What is it for?
Use it for Obsidian backlinks, note properties, daily notes, command-palette actions, plugin reloads, link graphs, tasks, tags, and version history.
Why use it?
It directs the assistant to use Obsidian-specific commands when ordinary file tools cannot work with those note features, while keeping simple file work straightforward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for Obsidian backlinks, note properties, daily notes, command-palette actions, plugin reloads, link graphs, tasks, tags, and version history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lapis0x0/obsidian-yolo/obsidian-cli
About the project

Obsidian YOLO is an AI assistant integrated with Obsidian for chatting, writing, learning, and managing a knowledge base. It is for people who use Obsidian as a workspace for notes and personal knowledge. Catalogue add-ons provide related assistant capabilities.

Lapis0x0/obsidian-yolo · 1,341 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lapis0x0/obsidian-yolo --skill obsidian-cli
Clone the repo
git clone --depth 1 https://github.com/Lapis0x0/obsidian-yolo

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/lapis0x0/obsidian-yolo/obsidian-cli.svg)](https://agentmods.dev/skills/lapis0x0/obsidian-yolo/obsidian-cli)
Your own site
<a href="https://agentmods.dev/skills/lapis0x0/obsidian-yolo/obsidian-cli"><img src="https://agentmods.dev/badge/skills/lapis0x0/obsidian-yolo/obsidian-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.00530
Opus 5 $0.00034 $0.00265
Sonnet 5 $0.00013 $0.00106
Haiku 4.5 $0.00007 $0.00053

Measured 9d ago against content hash c0b6f51a2fd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

obsidian-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/core/skills/builtin/obsidian-cli/SKILL.md · 33 lines

What it actually says

Obsidian CLI

Thin adapter: route to the official CLI executable and let its help command supply command details. Do not duplicate CLI docs here.

When to use

  • User explicitly asks for Obsidian CLI, or needs capabilities that fs_* / js_eval do not cover (Obsidian semantics: backlinks, frontmatter properties, daily notes, command palette, plugin reload, link graph, tasks/tags, file history, etc.).
  • Otherwise prefer native tools (bash, fs_write, fs_edit, …). Do not round-trip through terminal_command for simple vault file work — bash already covers it.

Workflow

  1. Resolve executable (first use in the conversation): prefer the real CLI binary over the app launcher. On macOS, first check /Applications/Obsidian.app/Contents/MacOS/obsidian-cli; if executable, use that absolute path for all later commands. Otherwise use command -v obsidian. If the resolved path is /Applications/Obsidian.app/Contents/MacOS/obsidian, treat it as invalid because it is the app executable.
  2. Probe: run <resolved-cli> version.
  3. Discover: run <resolved-cli> help or <resolved-cli> help <command> — CLI documents parameters; read on demand.
  4. Execute: run <resolved-cli> <subcommand> …. Add format=json when you need structured output to parse.

Rules:

  • Never launch the interactive TUI (do not run the resolved CLI with no subcommand).
  • Do not use /Applications/Obsidian.app/Contents/MacOS/obsidian as the CLI on macOS; that is the app executable, not the preferred CLI binary.
  • Mutating CLI commands may require user approval like any other shell command.
  • Desktop only (terminal_command is not available on mobile).

Probe failure

If <resolved-cli> version fails (command not found or CLI error), tell the user to enable Settings → General → Command line interface, then retry. Do not guess command syntax — use <resolved-cli> help after probe succeeds.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 33 lines · 67 tokens per session scan A c0b6f51a2fd7

Subscribe to this mod's changes

obsidian-cli is a skill published in the GitHub repository Lapis0x0/obsidian-yolo (1,341 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 530 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.