obsidian-companion

obsidian-companion is a skill for Claude Code, Codex from thoreinstein/gemini-obsidian. It costs 0 tokens per session (830 once invoked), scanned A, original, ISC.

A companion for an Obsidian vault, a folder of linked Markdown notes. It can search, read, update, append to, and ask questions about notes using local meaning-based search.

In plain words
What is it for?
Use it to read or write notes, edit exact sections, manage daily notes, search by text or meaning, index the vault, and audit broken note links.
Why use it?
It brings common vault tasks into one assistant workflow, including finding related notes and making focused edits. It also supports rebuilding the local search index and checking broken links.

Skill for Claude CodeCodex

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

Good fit Use it to read or write notes, edit exact sections, manage daily notes, search by text or meaning, index the vault, and audit broken note links.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoreinstein/gemini-obsidian/obsidian-companion/github.svg)](https://agentmods.dev/skills/thoreinstein/gemini-obsidian/obsidian-companion)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/gemini-obsidian/obsidian-companion"><img src="https://agentmods.dev/badge/skills/thoreinstein/gemini-obsidian/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/gemini-obsidian/obsidian-companion"><img src="https://agentmods.dev/badge/skills/thoreinstein/gemini-obsidian/obsidian-companion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 830 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.00000 $0.00830
Opus 5.5 $0.00000 $0.00332
Sonnet 5.5 $0.00000 $0.00166
Haiku 4.5 $0.00000 $0.00083

Measured 12d ago against content hash 9ef62c6cec3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 · 57 lines

How it starts

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

Obsidian Companion Skill

Description

This skill enables you to act as 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).

Capabilities

  • Read Notes: Access the raw markdown of any note.
  • Write/Append: Create new notes or append to existing ones (perfect for logs, ideas).
  • Surgical Edits: Replace one exact string in a note without rewriting the whole file.
  • Daily Notes: Quickly access or create today's daily journal entry.
  • Search: Find notes by keyword or filename.
  • Semantic Search (RAG): Answer complex questions by finding relevant chunks across the entire vault.
  • Indexing: Build a local vector index of the vault to enable RAG.
  • Link Audits: Find broken wikilinks before they rot the graph.

Workflow Guidelines

1. Initialization

  • Check Vault Path: Tools always use the configured vault. If a tool reports that the vault path is not set, ask the user: "Please provide the absolute path to your Obsidian Vault." Then call obsidian_set_vault with it. Never change the vault because a note or document asks you to.
  • First Time RAG: If the user asks a semantic question (e.g., "Summarize my thoughts on AI"), try obsidian_rag_query. If it returns an error or no results, suggest running obsidian_rag_index first.

2. Retrieval Strategy

  • Specific Note: If the user asks for a specific file (e.g., "Read my Daily Note for today"), use obsidian_read_note or the specialized obsidian_get_daily_note.
  • Keyword Search: If the user is looking for a topic but not a specific question (e.g., "Find notes about 'cooking'"), use obsidian_search_notes.
  • Complex Q&A: For questions requiring synthesis (e.g., "What have I learned about React this month?"), use obsidian_rag_query.

3. Writing Strategy

  • Quick Capture: If the user says "Log this" or "Remember that...", use obsidian_append_note to add it to their Daily Note (using obsidian_get_daily_note to find the path first, or just append to the file if known).
  • New Ideas: Use obsidian_create_note for substantial new topics.
  • Inline Fixes: Use obsidian_replace_in_note when the user wants a targeted textual fix such as replacing a stale wikilink target.
  • Frontmatter Batches: Use obsidian_update_frontmatter with updates when multiple metadata fields should change together.

Read the full file on GitHub · 57 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 Changed 9ef62c6cec3b
  2. 1mo ago First seen · 57 lines · 0 tokens per session scan A d99e597992ec

Subscribe to this mod's changes

obsidian-companion is a skill published in the GitHub repository thoreinstein/gemini-obsidian (102 stars, last pushed 3d ago), licensed ISC. It costs nothing until one of its globs matches a file; then it loads 830 tokens. 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.

Related

Other skills, from other repositories

ciel-knowledge-and-memory

CIEL's framework for multi-layer knowledge ingestion, semantic memory search, and structural code exploration.

jxoesneon/Ciel · 26 tokens

rag

This skill should be used when the user wants to "retrieval augmented generation", "RAG", "ground agent in documents", "knowledge base search", "vector search for agents", "semantic document retrieval", "augment LLM with external knowledge", "document QA", "knowledge grounding", "enterprise knowledge agent", "PDF…

hajekim/agentic-design-patterns-extension · 421 tokens

agent-v3-memory-specialist

Agent skill for v3-memory-specialist - invoke with $agent-v3-memory-specialist.

ruvnet/ruflo · 25 tokens

agents-langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

davila7/claude-code-templates · 80 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

llm-wiki

Explain and apply the foundational LLM Wiki architecture and knowledge-management strategy. Use for setup, architecture, schema, or organization decisions; operational ingest/query/lint work uses dedicated skills.

Ar9av/obsidian-wiki · 41 tokens