obsidian-vault-discovery

obsidian-vault-discovery is a skill for Claude Code from jlaska/obsidian-claude-plugins. It costs 30 tokens per session (1,279 once invoked), scanned A, original, MIT.

A skill that finds the location and folder conventions of an Obsidian vault. Obsidian is a note-taking app whose vault is a folder of linked Markdown files.

In plain words
What is it for?
Use it to find the vault root, daily-notes folder, templates, meeting notes, and people directories.
Why use it?
It avoids hard-coding where notes are stored and can work through Obsidian's command-line tool or its settings files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/jlaska/Library/Mobile.

Part of the obsidian-productivity plugin — 10 skills shipped together

Good fit Use it to find the vault root, daily-notes folder, templates, meeting notes, and people directories.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jlaska/obsidian-claude-plugins
Claude Code
/plugin install obsidian-productivity

Made for: Claude Code.

Or install obsidian-productivity, the plugin that ships this one along with the rest of its 10 skills.

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-vault-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery/github.svg)](https://agentmods.dev/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery)
Your own site
<a href="https://agentmods.dev/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery"><img src="https://agentmods.dev/badge/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-vault-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery"><img src="https://agentmods.dev/badge/skills/jlaska/obsidian-claude-plugins/obsidian-vault-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,279 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.
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.00030 $0.01279
Opus 5 $0.00015 $0.00639
Sonnet 5 $0.00006 $0.00256
Haiku 4.5 $0.00003 $0.00128

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

Security

Grade A, and why

obsidian-vault-discovery 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 12d 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.

skills/obsidian-vault-discovery/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian Vault Discovery

This skill discovers configuration from an Obsidian vault. It uses the obsidian-cli (bundled with Obsidian 1.12+) as the primary method, falling back to direct file reads when Obsidian is not running.

When to Use

Invoke this skill (internally) when you need to determine:

  • Vault location and root path
  • Daily notes folder and date format
  • Templates folder location
  • Meeting notes folder (from CLAUDE.md conventions)
  • People directory (from CLAUDE.md conventions)

Discovery Steps

1. Check CLI Availability

obsidian vault info=name

If this command succeeds, Obsidian is running and CLI-based discovery (steps 2–4) will work. If it fails (command not found or Obsidian not running), skip to the Fallback: File-Based Discovery section below.

The obsidian-cli binary is at /Applications/Obsidian.app/Contents/MacOS/obsidian-cli. Ensure /Applications/Obsidian.app/Contents/MacOS is on the PATH, or use the full path.

2. Get Vault Root

obsidian vault info=path

Returns the absolute vault path, e.g.:

/Users/jlaska/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian Vault

3. Read Plugin Configuration via eval

Fetch live plugin settings from the running Obsidian instance:

Daily Notes (core plugin):

obsidian eval "code=JSON.stringify(app.internalPlugins.getPluginById('daily-notes').instance.options)"

Returns:

{"template":"TEMPLATES/Daily Note Template","folder":"DAILY_NOTES","format":"YYYY/MM-MMMM/YYYY-MM-DD dddd"}

Templates (core plugin):

obsidian eval "code=JSON.stringify(app.internalPlugins.getPluginById('templates').instance.options)"

Returns:

{"folder":"TEMPLATES"}

Templater (community plugin — skip if not installed):

obsidian eval "code=JSON.stringify(app.plugins.getPlugin('templater-obsidian')?.settings)"

Returns settings including templates_folder, user_scripts_folder, and folder_templates.

Read the full file on GitHub · 173 lines

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. 12d ago First seen · 173 lines · 30 tokens per session scan A 12b55b360820

Subscribe to this mod's changes

obsidian-vault-discovery is a skill published in the GitHub repository jlaska/obsidian-claude-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,279 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories