Obsidian-RAG: Instructions file for Claude Code

CLAUDE.md

Obsidian-RAG CLAUDE.md is an instructions file for Claude Code from daje0601/Obsidian-RAG. It costs 396 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for maintaining a knowledge base in Obsidian, a note-taking app that stores linked Markdown files. It defines folders for source material, compiled articles, query results, and indexes.

In plain words
What is it for?
Use it when compiling raw research into wiki articles, answering questions from the vault, or auditing the knowledge base.
Why use it?
It keeps notes organized and makes sure new material is classified, cross-linked, and added to the relevant indexes instead of becoming isolated files.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is daje0601/Obsidian-RAG's own configuration. It tells Claude Code how to work on Obsidian-RAG itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Obsidian-RAG configures →

Reuse

Borrowing it

Nothing to install: this file belongs to daje0601/Obsidian-RAG. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/daje0601/Obsidian-RAG/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/daje0601/Obsidian-RAG

Made for: Claude Code.

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-RAG CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/daje0601/obsidian-rag/claude-md"><img src="https://agentmods.dev/badge/instructions/daje0601/obsidian-rag/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 396 This file is loaded in full into every session.
When invoked 396 The same file — it is already loaded in full.
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.00396 $0.00396
Opus 5.5 $0.00158 $0.00158
Sonnet 5.5 $0.00079 $0.00079
Haiku 4.5 $0.00040 $0.00040

Measured 2mo ago against content hash 7b49a523369c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Obsidian-RAG CLAUDE.md 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 2mo 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.

CLAUDE.md · 43 lines

What it actually says

Knowledge Base — Vault Conventions

Vault Structure

  • raw/ — Source material, clipped articles, research (input zone)
  • wiki/ — LLM-compiled knowledge base (you maintain this)
  • output/ — Query results and generated reports

Wiki System

You are the librarian of the wiki/ folder. You write and maintain everything in it.

Structure

  • wiki/_master-index.md is the entry point — lists every topic with a one-line description.
  • Each topic gets its own subfolder with its own _index.md listing all articles.

Compiling

When I say "compile" or dump new material in raw/:

  1. Read each raw file
  2. Decide which topic it belongs to (or create a new topic folder)
  3. Write a wiki article with key takeaways and [[wiki links]] to related concepts
  4. Update that topic's _index.md
  5. Update wiki/_master-index.md
  6. If a raw file spans multiple topics, create articles in both and cross-link

Querying

When answering questions against the knowledge base:

  1. Read wiki/_master-index.md first to find the right topic
  2. Read that topic's _index.md to find relevant articles
  3. Read the specific articles
  4. Synthesize the answer

Auditing

When I say "audit" or "lint", review the wiki for:

  • Inconsistent or contradictory information
  • Missing cross-links between related concepts
  • Gaps in coverage
  • Suggest improvements, but don't make changes without confirmation

Conventions

  • Always use [[wiki links]] when referencing other notes
  • File names: lowercase with hyphens (e.g., ai-agent-overview.md)
  • Keep articles concise — bullet points over paragraphs
  • Always include a ## Key Takeaways section in wiki articles
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. 2mo ago First seen · 43 lines · 396 tokens per session scan A 7b49a523369c

Subscribe to this mod's changes

Obsidian-RAG CLAUDE.md is an instructions file published in the GitHub repository daje0601/Obsidian-RAG (24 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 396 tokens to every session, about $0.0016 per session on Opus 5.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.

Related

Obsidian-RAG CLAUDE.md compared with instructions from other repositories

Obsidian-RAG CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Obsidian-RAG CLAUDE.mddaje0601/Obsidian-RAGInstructions file247mo agoApache-2.0A396Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode