If your vault has grown past 50 pages and you're tired of Claude reading five irrelevant documents before finding the one paragraph that answers your question, this replaces the old hot→index→drill read order with chunk-level hybrid retrieval. It implements Anthropic's September 2024 Contextual Retrieval paper: contextual prefix generation, BM25 sparse search, and cosine reranking. One-time setup costs about $3.60 per 100 pages with Haiku plus prompt caching, or you can run the fully local tier with synthetic prefixes and Ollama. The smart part is it's opt-in and feature-gated, so wiki-query and autoresearch detect it and upgrade themselves automatically while older skills keep working. If you're running deep research sessions, the quality jump is real.

skills.sh installs
323
GitHub stars
16.3K
last updated
May 28, 2026

Install

$ npx -y skills add agricidaniel/claude-obsidian --skill wiki-retrieve --agent claude-code

Installs into .claude/skills of the current project.

Files

Retrieve relevant passages

This extension derives search data from wiki/ into .vault-meta/. It never changes canonical notes. Always pass the selected vault explicitly.

Resolve the installed product root from this skill's own location, not from the vault or current working directory:

PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
PREFIX="$PRODUCT_ROOT/scripts/contextual-prefix.py"
BM25="$PRODUCT_ROOT/scripts/bm25-index.py"
RETRIEVE="$PRODUCT_ROOT/scripts/retrieve.py"
RERANK="$PRODUCT_ROOT/scripts/rerank.py"
test -f "$PREFIX" && test -f "$BM25" && test -f "$RETRIEVE" && test -f "$RERANK"

Pipeline

  1. contextual-prefix.py splits pages on paragraph boundaries and stores the raw chunk plus a short page-level prefix.
  2. bm25-index.py builds a local, standard-library BM25 index over the contextualized text.
  3. retrieve.py selects BM25 candidates, optionally reranks them, rejects invalid records, deduplicates by page, and returns paths and snippets.
  4. The caller reads the returned pages and performs synthesis; retrieval output is not itself evidence.

Provision locally

Sponsors

Details

Repository
github.com/agricidaniel/claude-obsidian
Categories
Documentation, AI & Agent Building, Data Science & ML, Marketing & SEO, CLI & Terminal, Office & Documents
License
MIT
First seen
Jun 11, 2026

More from agricidaniel/claude-obsidian

All 15
1agricidaniel avatarwiki-modeagricidaniel/claude-obsidianMethodology modes for the Compound Vault. Lets the vault declare an organizational style (LYT / PARA / Zettelkasten / Generic) that wiki-ingest, save, and autor321skills.sh installs
2agricidaniel avatarwiki-cliagricidaniel/claude-obsidianDefault vault-mutation transport for claude-obsidian v1.7+. Wraps the Obsidian CLI (Obsidian 1.12+) as the preferred way to read, write, search, and modify vaul317skills.sh installs
3PicsArt avatargen-ai-explainerPicsArt/gen-ai-skillsCreate a short animated explainer video.316skills.sh installs
4zbruhnke avatarexplain-codezbruhnke/claude-code-starterExplain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.308skills.sh installs
5memtensor avatarmemos-memory-guidememtensor/memosUse the MemOS Local memory system to search and use the user's past conversations. Use this skill whenever the user refers to past chats, their own preferences 302skills.sh installs
6google-labs-code avatarstitch-sdk-readmegoogle-labs-code/stitch-sdkGenerate or update the README for the Stitch SDK. Use the Bookstore Test structure and source the current API from the codebase. Use when the README needs to be301skills.sh installs