obsidian-query
Skill0 starsChanged 5 months agoMITView on GitHub
Specialist skill for answering questions FROM the Obsidian vault — "how does X work", "why did we choose Y", "what do we know about Z", "find the docs about…". It owns the hidden per-project index (a catalog of every note with one-line summaries, in <vault>/.claude-docs/) and run log, reads the index first to locate relevant notes, then synthesizes a cited answer. Valuable answers can be filed back into the vault. Use whenever the user asks a question whose answer should live in the documentation, or asks to find/locate notes.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ddenzu/karpathy-llm-wiki-second-braintheir own version, first seen Nov 8, 2026
- aiqianqian521/obsidian-skillstheir own version, first seen Nov 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ddenzu/karpathy-llm-wiki-second-brain★ 6same name
- aiqianqian521/obsidian-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- obsidian-adrSkill
- obsidian-architectureSkill
- obsidian-doc-prompterSkill
- obsidian-documentationSkill
- obsidian-excalidrawSkill
- obsidian-featureSkill
- obsidian-linkingSkill
- obsidian-maintenanceSkill
- obsidian-taggingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read ../obsidian-documentation/references/conventions.md first (project scope, vault location resolution).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Query Specialist (index-based retrieval)
You turn the vault from write-only documentation into a queryable knowledge base. The pattern (after Karpathy's "LLM Wiki"): keep a compiled index of everything, read the index first, drill into only the relevant notes, answer with citations — no embeddings or RAG infrastructure needed at vault scale.
Read ../obsidian-documentation/references/conventions.md first (project scope, vault location resolution).
The two files you own
Both live in a hidden dot-folder — <vault>/.claude-docs/<Project>/ — so Obsidian never shows them and the vault stays clean for humans. They are machine files: write plain relative paths (from the project folder), not wiki links, since Obsidian doesn't index dot-folders anyway.
<vault>/.claude-docs/<Project>/index.md — content catalog, auto-generated (humans browse MOCs; you read this). One line per note:
---
project: "Atlas"
updated: <date>
---
# Index — Atlas
> Auto-generated by obsidian-query. Do not edit by hand; ask for a rebuild instead.
## Project level
- Architecture/System Overview.md — how the repos fit together · #architecture · upd 2026-06-01
- ADRs/…
## Web App (acme/atlas-web)
- Web App/Features/Refunds/Refunds.md — customer-initiated refunds via Stripe; manual review > $500 · #feature #backend/api · upd 2026-06-10
- …
## API (acme/atlas-api)
- …Group entries by level: project-wide sections first, then one section per repository.
One line = relative path, one-line summary (the retrieval payload — write it to answer "is the answer in here?"), key tags, updated date.
<vault>/.claude-docs/<Project>/log.md — append-only history with a parseable prefix, so grep "^## \[" log.md | tail -5 shows recent activity:
## [2026-06-12] document | Refunds feature
Created Features/Refunds/* (3 notes, 1 diagram); updated Payment Processing, Features MOC.One entry per orchestrator/maintenance/query-filing run. Operations: document, update, maintenance, query-filed, index-rebuild.
Answering a question
- Resolve scope. Which project? (Match the current repo against
config.md'sprojects:list, or take it from the question itself; "across everything" → read each project's index in.claude-docs/.) - Read the project's
index.mdand pick candidate notes by their summary lines. No index yet → offer to build it (below), or fall back to filename + grep search for this one question. - Read the candidates (and follow 1 hop of promising
[[links]]— the graph is part of retrieval). Diagrams: read the owning note's text, not the JSON. - Synthesize the answer in chat: lead with the answer, then supporting detail. Cite every claim with the note it came from:
([[Features/Refunds/Refunds]]). Same grounding rules as everywhere — if the vault doesn't contain the answer, say exactly that and name the closest related notes; never pad gaps with general knowledge without labeling it as such ("not in the vault, but generally…"). - Offer to file valuable answers. If the answer involved real synthesis — a comparison, a cross-feature analysis, a "why" reconstructed from several ADRs — offer to save it as a note (e.g.,
Architecture/Payment vs Subscription Billing.md), routed through the orchestrator so it gets tags/links/index like everything else. Explorations should compound, not evaporate into chat history.
Index maintenance
- Incremental (every documentation run): the orchestrator hands you the run's created/updated/deleted notes — update their index lines and append the Log entry. Keep summaries fresh: a note whose content changed needs its line rewritten, not just its date.
- Rebuild (first use in a project, or on "rebuild the index"): delegate the sweep to the vault-scanner agent (note list + frontmatter + first paragraph each; inline if agents unavailable), then write
index.mdfrom scratch, creating.claude-docs/<Project>/if needed. Also rebuild when spot-checks show the index lying about note contents. - The index is derived data — never the source of truth. When index and vault disagree, the vault wins and the index gets fixed.
When the index isn't enough
At moderate scale (hundreds of notes) index-first works well. If retrieval starts missing things or the index outgrows comfortable reading, suggest the user add a local search tool such as qmd (BM25/vector search over markdown, CLI + MCP); you'd then use it for candidate selection and keep the index for browsing and summaries. Suggest once, don't nag.
Example
"Why do refunds over $500 need manual review?"
→ resolve project via config.md → index.md: Features/Refunds/Refunds.md and ADRs/ADR-0013 - Manual Review for Large Refunds.md look relevant → read both → answer: "Fraud pattern found during the pilot — refunds above $500 were 9× more likely to be fraudulent, so ADR-0013 chose manual review over automated rules ([[ADRs/ADR-0013 - Manual Review for Large Refunds]]); the flow is described in [[Features/Refunds/Refunds]])." → no filing needed (answer already lives in the vault).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

