index · thoreinstein — Claude Code and Gemini CLI skill: Obsidian RAG indexing
Triggers indexing of an Obsidian vault for semantic search — incremental by default, full rebuild when you ask for force.
ISC ★ 102 updated 2026-10-25
npx skills add thoreinstein/gemini-obsidian --skill index -a claude-codeWhat index does
The index skill covers one step of a RAG setup over an Obsidian vault. Say “index”, “reindex” or “rebuild index” and it calls obsidian_rag_index to embed the notes for semantic search. No arguments means an incremental pass: files that changed get embedded again, the rest stay as they are.
Add “force” or “rebuild from scratch” and the call goes out with force_reindex: true for a full rebuild. Name a single file and its relative path lands in file_path. Afterwards the skill reports the chunk count and whether the run was incremental or full.
One tool does all the work. Without obsidian_rag_index available in the session, the skill has nothing to call.
What it helps with
- embed an Obsidian vault for semantic search
- rebuild the whole RAG index from scratch
- refresh only the notes that changed
- index a single note by relative path
- check how many chunks a run produced
Example prompts for the agent
- Index my Obsidian vault for semantic search.
- Rebuild the index from scratch with
force_reindex: true. - Reindex just one file — pass its relative path in
file_path.
How to install index
1Skills CLI (Vercel)
npx skills add thoreinstein/gemini-obsidian --skill index -a claude-code2Manually: put the files in place
~/.claude/skills/index/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/index/
1Skills CLI (Vercel)
npx skills add thoreinstein/gemini-obsidian --skill index -a codex2Manually: put the files in place
.agents/skills/index/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add thoreinstein/gemini-obsidian --skill index -a cursor2Manually: put the files in place
.cursor/skills/index/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install thoreinstein/gemini-obsidian skills/index2Manually: put the files in place
.github/skills/index/SKILL.md1Skills CLI (Vercel)
npx skills add thoreinstein/gemini-obsidian --skill index -a gemini-cli2Platform CLI
gemini skills install https://github.com/thoreinstein/gemini-obsidian --path skills/indexManually: put the files in place
.devin/skills/index/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about index
How do I install the index skill in Claude Code?
Run npx skills add thoreinstein/gemini-obsidian --skill index -a claude-code. The skill file ends up at ~/.claude/skills/index/SKILL.md.
What does the index skill do?
It triggers indexing of the Obsidian vault for semantic search through the obsidian_rag_index tool.
Can I index a single file instead of the whole vault?
Yes. Put the relative path in file_path and the skill calls obsidian_rag_index for that one file.
Source text
SKILL.md · ISC
--- name: index description: >- Use when the user wants to index their vault for semantic search, rebuild the RAG index, or says "index", "reindex", or "rebuild index". --- # 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.
© thoreinstein · ISC · thoreinstein/gemini-obsidian
Similar skills
All skills for Agent setup: memory, context, orchestration →index by other authors comes first.