index

index is a skill for Claude Code, Codex from thoreinstein/obsidian-rag. It costs 36 tokens per session (181 once invoked), scanned A, a copy of index, MIT.

A command for building or updating the search index of an Obsidian vault. The index lets searches find notes by meaning, not just matching words.

In plain words
What is it for?
Use it to index the whole vault, reindex everything forcefully, or index one specified file.
Why use it?
It makes new or changed notes available to semantic search and can rebuild the index from scratch when needed.

Skill for Claude CodeCodex

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

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 skills/thoreinstein/obsidian-rag/index
Any agent
npx skills add thoreinstein/obsidian-rag --skill index
Clone the repo
git clone --depth 1 https://github.com/thoreinstein/obsidian-rag

Made for: Claude Code, Codex.

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 index

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/index.svg)](https://agentmods.dev/skills/thoreinstein/obsidian-rag/index)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/obsidian-rag/index"><img src="https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/index.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00036 $0.00181
Opus 5 $0.00018 $0.00090
Sonnet 5 $0.00007 $0.00036
Haiku 4.5 $0.00004 $0.00018

Measured 4d ago against content hash 59ee6a426076, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

index 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 4d 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.

Origin

This is a copy

100% identical to index — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/index/SKILL.md · 29 lines

What it actually says

Index Vault

Trigger vault indexing for semantic search (RAG).

Default Action

Call obsidian_rag_index with no special arguments. This runs an incremental index — only changed files are re-embedded.

Force Reindex

If the user says "force" or "rebuild from scratch":

  • Call obsidian_rag_index with force_reindex: true

Single File

If the user specifies a file:

  • Call obsidian_rag_index with file_path set to the relative path

After Indexing

Report the result: how many chunks were indexed, whether it was incremental or full.

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. 4d ago First seen · 29 lines · 36 tokens per session scan A 59ee6a426076

Subscribe to this mod's changes

index is a skill published in the GitHub repository thoreinstein/obsidian-rag (2 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 181 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to index, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

laravel-ai-sdk

Use when integrating AI agents, tool calling, embeddings, structured output, or streaming in Laravel 13 via the laravel/ai package.

fusengine/agents · 35 tokens

laravel-vector-search

Use when implementing semantic/vector search in Laravel 13 with PostgreSQL + pgvector.

fusengine/agents · 22 tokens

query

Use when retrieving from a project knowledge-base/ — multi-channel RAG recall (vector plus lexical plus metadata, RRF-fused) returning locate-pointer cards; multi-round and multi-angle querying allowed. Trigger /ragkit:query, or called by name by workflows like specode. Building or refreshing the index instead uses…

qxbyte/pluginhub · 71 tokens

embed

Use when building or refreshing the RagKit index for a project knowledge-base/ (e.g. after distill added or updated knowledge points). Trigger /ragkit:embed. Querying instead uses ragkit:query; index health uses ragkit:status.

qxbyte/pluginhub · 54 tokens

eval

Use when measuring or tuning RagKit retrieval accuracy — runs the golden evalset, reports recall@k and MRR per bucket. Trigger /ragkit:eval. Run before or after any retrieval-param change to keep a baseline.

qxbyte/pluginhub · 48 tokens

using-ragkit

Overview of the ragkit plugin and how to use it — knowledge-base multi-channel retrieval and its four skills. On Kimi Code this is loaded at session start via the manifest's sessionStart.skill; on hosts with a SessionStart hook the same advisory is injected by the hook instead.

qxbyte/pluginhub · 62 tokens