obsidian-integration

obsidian-integration is a cursor rule for Cursor from beettlle/pi-spine. It costs 15 tokens per session (689 once invoked), scanned A, original, MIT.

Command-line integration for Obsidian, a note-taking application that stores linked Markdown notes in a vault, plus guidance for developing Obsidian plugins and themes.

In plain words
What is it for?
Use it to manage notes, search vaults, append or replace content, inspect files, and work with Obsidian plugins or themes when the application is open.
Why use it?
It gives the agent a defined way to read, search, create, and update vault content without guessing at file targets or commands.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/beettlle/pi-spine/obsidian-integration
Clone the repo
git clone --depth 1 https://github.com/beettlle/pi-spine

Made for: Cursor.

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-integration

README.md
[![agentmods](https://agentmods.dev/badge/rules/beettlle/pi-spine/obsidian-integration.svg)](https://agentmods.dev/rules/beettlle/pi-spine/obsidian-integration)
Your own site
<a href="https://agentmods.dev/rules/beettlle/pi-spine/obsidian-integration"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/obsidian-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 689 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00015 $0.00689
Opus 5 $0.00008 $0.00345
Sonnet 5 $0.00003 $0.00138
Haiku 4.5 $0.00002 $0.00069

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

Security

Grade A, and why

obsidian-integration 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 5d 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.

.cursor/rules/obsidian-integration.mdc · 63 lines

How it starts

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

Obsidian integration

When the user asks to read, create, search, or manage vault content—or develop plugins/themes—use the Obsidian CLI. Requires Obsidian to be open. Authoritative command list: obsidian helpCLI docs.

Upstream skills (install, do not duplicate): obsidian-skills

npx skills add https://github.com/kepano/obsidian-skills

Or copy skills into project .cursor/skills/ per Cursor documentation.

Targeting

Parameter Use
file= Wikilink-style name (no path/extension required)
path= Exact path from vault root, e.g. folder/note.md
vault= First arg to target a vault: obsidian vault="My Vault" search query="x"
silent Flag: do not open files after command
--copy Copy command output to clipboard
total On list commands: return count only

Default target: active file in most recently focused vault.

Common commands

Command Description
obsidian read file="My Note" Read note content
obsidian create name="New" content="# Hi" template="T" silent Create note
obsidian append file="My Note" content="line" Append to note
obsidian search query="term" limit=10 Search vault
obsidian daily:read / daily:append content="- [ ] task" Daily note
obsidian property:set name="status" value="done" file="My Note" Frontmatter property
obsidian backlinks file="My Note" Backlinks
obsidian tasks daily todo Task queries

Multiline CLI content: use \n for newline, \t for tab in content=.

Plugin development loop

  1. obsidian plugin:reload id=my-plugin
  2. obsidian dev:errors — fix and repeat from step 1 if errors
  3. obsidian dev:screenshot path=screenshot.png or obsidian dev:dom selector=".workspace-leaf" text
  4. obsidian dev:console level=error

Also: obsidian eval code="...", obsidian dev:css selector="..." prop=..., obsidian dev:mobile on — see obsidian help.

Read the full file on GitHub · 63 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. 5d ago First seen · 63 lines · 15 tokens per session scan A a6b9d548d5d9

Subscribe to this mod's changes

obsidian-integration is a cursor rule published in the GitHub repository beettlle/pi-spine (3 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 689 once invoked, about $0.0001 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.