# /wiki-query: Ask your Obsidian vault questions and get cited answers

Source: https://trendhub.net/skills/agricidaniel-claude-obsidian/wiki-query
Skill folder: https://github.com/AgriciDaniel/claude-obsidian/tree/main/skills/wiki-query
Pack: claude-obsidian (https://trendhub.net/skills/agricidaniel-claude-obsidian)
Works with: Claude Code, Codex, OpenCode, Gemini, ZCode, Cursor and Windsurf

wiki-query makes the vault the only evidence for an answer and never changes a file. You choose quick, standard or deep, each with its own read budget. The agent reads the hot cache and index, uses the local BM25 index when it is verified, checks the claim and source ledgers, and cites a wikilink for each material claim.

## When to use it

- You want an answer drawn only from your own notes, not from the model's general knowledge.
- You need to know whether a claim in the vault is accepted, tentative or disputed.
- You want to find which notes cover a topic before writing something new.

## How it works

1. **Pick a depth**: Quick reads the hot cache and index with a 12 KiB budget, while standard and deep allow 48 KiB and 128 KiB and broaden the candidates.
2. **Retrieve candidates**: If the retrieval capability is verified, the agent queries the prebuilt BM25 index read-only, and otherwise falls back to indexes and text search and says so.
3. **Weigh the evidence**: Ledger status decides wording: accepted claims are stated, provisional ones are tentative, contested ones show both sides and stale evidence is flagged.
4. **Answer with citations**: The direct answer comes first, each claim cites the most specific wikilink, and inference is marked apart from vault evidence.

## What it steers the agent away from

- Filling gaps in the vault from model memory.
- Rebuilding caches, logging the query or writing notes during a question.
- Silently picking a winner when sources disagree.

## What it can touch

It reads vault pages and ledgers and may run the bundled retrieval script in read-only mode; it creates, updates and logs nothing.

## Pairs well with

- `/save`
- `/wiki-ingest`
- `/wiki-retrieve`

## Questions

### How do I keep a good answer?

Ask for it to be saved; the answer and citations are passed to the save skill as a separate, reviewed operation.

### Does it need the search index?

No. Without a verified index it uses the vault indexes and plain text search, and reports which fallback it used.
