obsidian-companion

obsidian-companion is a skill for Claude Code from thoreinstein/obsidian-rag. It costs 42 tokens per session (689 once invoked), scanned A, original, MIT.

A connection between a coding agent and an Obsidian vault, the folder where your linked notes live. It supports reading, writing, searching, and asking questions across those notes.

In plain words
What is it for?
Use it to find notes, query the vault, create or update notes, manage links, and rebuild the vault's local search index.
Why use it?
It gives the agent a consistent way to work with both individual notes and knowledge spread across the vault.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the obsidian-rag plugin — 13 skills, 2 agents shipped together

Good fit Use it to find notes, query the vault, create or update notes, manage links, and rebuild the vault's local search index.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thoreinstein/obsidian-rag/obsidian-companion
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 thoreinstein/obsidian-rag --skill obsidian-companion
Clone the repo
git clone --depth 1 https://github.com/thoreinstein/obsidian-rag

Made for: Claude Code.

Or install obsidian-rag, the plugin that ships this one along with the rest of its 13 skills, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/obsidian-companion/github.svg)](https://agentmods.dev/skills/thoreinstein/obsidian-rag/obsidian-companion)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/obsidian-rag/obsidian-companion"><img src="https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/obsidian-companion/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-companion

Your own site · 80×15
<a href="https://agentmods.dev/skills/thoreinstein/obsidian-rag/obsidian-companion"><img src="https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/obsidian-companion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 689 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.00042 $0.00689
Opus 5 $0.00021 $0.00345
Sonnet 5 $0.00008 $0.00138
Haiku 4.5 $0.00004 $0.00069

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

Security

Grade A, and why

obsidian-companion 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-companion/SKILL.md · 60 lines

How it starts

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

Obsidian Companion

You are an expert companion for the user's Obsidian Vault. You can read, write, search, and chat with their notes using local RAG (Retrieval Augmented Generation).

Tool Selection

Goal Tool
Read a specific note obsidian_read_note
Find notes by keyword or filename obsidian_search_notes
Answer a question across the vault obsidian_rag_query (semantic search)
List files in a folder obsidian_list_notes
Today's daily note obsidian_get_daily_note
Create a new note obsidian_create_note
Append to a note obsidian_append_note
Log under a daily heading obsidian_append_daily_log
Replace a section body obsidian_replace_section
Insert under a heading obsidian_insert_at_heading
Update frontmatter obsidian_update_frontmatter
Move or rename obsidian_move_note
Find who links to a note obsidian_get_backlinks
Find outgoing links obsidian_get_links
Build/rebuild the index obsidian_rag_index
Set vault path obsidian_set_vault
Replace a specific text string inline obsidian_replace_in_note
Find unresolved wikilinks obsidian_get_broken_links

Initialization

  1. Check that the vault path is configured. If tools return "Vault path is not set", ask the user for their vault path and call obsidian_set_vault.
  2. For semantic questions, try obsidian_rag_query first. If it returns empty results, suggest running /index to build the vector index.

Retrieval Strategy

  • Specific note: User names a file → obsidian_read_note
  • Keyword search: User wants to find notes on a topic → obsidian_search_notes
  • Complex Q&A: User asks a question requiring synthesis → obsidian_rag_query
  • Exploration: User wants to see connections → obsidian_get_links + obsidian_get_backlinks

Writing Strategy

  • Quick capture ("log this", "remember that"): obsidian_append_daily_log under a relevant heading
  • New ideas: obsidian_create_note with appropriate folder path
  • Additions: obsidian_append_note to add to existing content
  • Surgical edits: obsidian_replace_section to rewrite a specific section; obsidian_insert_at_heading to add content at a precise location

Read the full file on GitHub · 60 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 · 60 lines · 42 tokens per session scan A 1cd482e2479a

Subscribe to this mod's changes

obsidian-companion is a skill published in the GitHub repository thoreinstein/obsidian-rag (2 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 689 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

acm-handoff

Use when resuming work from a previous session that reached context threshold, or when a handoff summary exists. Reads handoff state and markdown to restore context, todos, and continue seamlessly.

povvo/claudikins-automatic-context-manager · 43 tokens

whats-up

Fetch recent activity from Autographical — what the user and their AI agents have been working on. Use when starting a session, when the user mentions recent activity, when the user alludes to what they were doing or looking at, or picking up where they left off. Also use when the conversation feels like a topic…

autographical/claude-code-plugins · 75 tokens

acm-config

Use when the user wants to customize Claudikins Automatic Context Manager behavior, configure trigger threshold, snooze duration, summary length, or runs '/acm:config'. Interactively asks questions and saves preferences to config file.

povvo/claudikins-automatic-context-manager · 50 tokens

user-profile

Use to create or update the user's anchor profile — a single private file (/bettersense-work-reflections/profile.md) that captures who the user is, what they do, what context other skills need to know about them. Read automatically by other skills in the bundle when present, so the user doesn't re-explain themselves…

shwetank/bettersense · 131 tokens

career-retro

Use for a periodic (quarterly / annual) career retrospective across the ENTIRE bettersense memory — producing a longitudinal self-assessment with cited growth deltas since the last retro and the honest gaps to work on next. Trigger phrases include "run my career retro", "where am I in my career", "annual…

shwetank/bettersense · 166 tokens

doctor

Use to health-check the user's bettersense memory directory — validate the file layout, catch problems before they cost data, and set up backups. Trigger phrases include "run bettersense doctor", "check my reflection files", "is my bettersense data okay", "something seems off with my stakeholder files", "back up my…

shwetank/bettersense · 0 tokens