vault-query
Skill18 starsChanged 12 days agoApache-2.0View on GitHub
Searches, traverses, and synthesizes answers from the local OKF v0.2 knowledge vault and optional shared pattern repositories, writing durable cross-cutting analyses to wiki/synthesis/. Use when the user invokes /vault-query or /query, asks what the vault says about a topic, or wants to synthesize across compiled wiki notes. Don't use for ingesting new raw files into the vault (use ingest) or correcting stale claims across notes (use vault-correct).
5 other projects use a version of this.
Adopted by
Most recently taken up by
- synthetic-recon/atlas-obsidian-vaulttheir own version, first seen Nov 15, 2026
- bohanyt/hermes-custom-skillstheir own version, first seen Oct 25, 2026
- Lucioway/way-stacktheir own version, first seen Aug 31, 2026
- quietdaemon/starter-skillstheir own version, first seen Jun 6, 2026
- Howie126313/obsidian-vault-kittheir own version, first seen Apr 13, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Howie126313/obsidian-vault-kit★ 3same name
- synthetic-recon/atlas-obsidian-vault★ 2same name
- bohanyt/hermes-custom-skills★ 1same name
- quietdaemon/starter-skills★ 1same name
- Lucioway/way-stack★ 0same 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 repository10 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- distill-sessionSkill
- ingestSkill
- knowledge-compilerSkill
- vault-correctSkill
- vault-graphSkill
- vault-lintSkill
- vault-pullSkill
- vault-shareSkill
- wikiskillSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Follow these 4 mandatory steps:
- Very specific: line 56
Run the pure-stdlib Okapi BM25 ranking engine (title 3.0x, aliases 2.5x, tags 2.0x, headings 1.5x, body 1.0x, zero .sqlite/index files …
- Very specific: line 65
Before creating a new synthesis or concept note, run the pre-ingest duplicate check (create_safety: exists | probable | unknown):
- Very specific: line 75
Read the anchor note(s) using view_file.
- Very specific: line 76
Follow outgoing [[wikilinks]] to related concepts, entities, and sources.
- Distinctive: line 77
Check reciprocal links to ensure comprehensive bidirectional context.
- Distinctive: line 83
CLI Visual Invariant: When rendering architectures or process flows, output clean ASCII/Unicode text box diagrams directly in the terminal …
- Distinctive: line 86
If the query produces non-trivial cross-cutting analysis, customer comparisons, or novel architectural synthesis:
- Very specific: line 87
Create a permanent synthesis note at: ${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/synthesis/<Topic_Name>.md
- Very specific: line 107
Add the new synthesis note into ${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/index.md under ## 📑 Synthesis & Research Analyses.
- Distinctive: line 116
Reciprocal Integrity: If writing a new synthesis note that references note A and note B, add reciprocal backlinks to note A and note B.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🔍 Vault Query & Compounding Synthesis Skill (/vault-query)
This skill enables agents across any working directory to systematically explore, traverse, and synthesize accumulated intelligence from the central Knowledge Compiler Obsidian Vault ($OBSIDIAN_VAULT_PATH, defaults to ~/ObsidianVault) and compound novel insights back into the persistent wiki following the Open Knowledge Format (OKF v0.2).
🚀 Triggers & Commands
/vault-query <topic_or_question>or/query <topic_or_question>- Natural language requests:
- "What does our vault say about AcmeCorp's ERP modernization?"
- "Search vault for FedRAMP high voice synthesis architectures"
- "Consult vault for Google ADK vs LangGraph tradeoffs"
- "Synthesize our accumulated patterns on agent governance and identity"
⚡ Execution Workflow
┌─────────────────────────────────────────────────────────────────────────────┐
│ VAULT QUERY EXECUTION PIPELINE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ [Step 1: Anchor Discovery] │
│ Read ObsidianVault/index.md or grep_search in wiki/ to find entry nodes │
│ │ │
│ ▼ │
│ [Step 2: Associative Graph Traversal] │
│ Follow [[wikilinks]] across wiki/entities/, wiki/concepts/, wiki/sources/ │
│ │ │
│ ▼ │
│ [Step 3: Grounded Answer Synthesis] │
│ Generate cited response with wikilinks & terminal ASCII diagrams │
│ │ │
│ ▼ │
│ [Step 4: Compounding Knowledge Writeback] │
│ If analysis is non-trivial, compile durable note to wiki/synthesis/<Topic> │
│ Update index.md and log.md │
│ │
└─────────────────────────────────────────────────────────────────────────────┘Follow these 4 mandatory steps:
1. Anchor Discovery & Federated Retrieval
- Consult
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/purpose.mdto align the query context with active projects, architectural pillars, and open investigative theses. - Open the master catalog at
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/index.mdand, if present,${OKF_PATTERNS_PATH:-~/shared-okf-patterns}/index.md. - Stateless Multi-Field Okapi BM25 Retrieval (
vault_query.py): Run the pure-stdlib Okapi BM25 ranking engine (title3.0x,aliases2.5x,tags2.0x,headings1.5x,body1.0x, zero.sqlite/index files written to the vault) to locate top-ranked anchor notes:python3 <plugin_dir>/scripts/vault_query.py "<query>" --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --json- To include the shared sanitized pattern repository (
$OKF_PATTERNS_PATH) with automatic outbound DLP query scrubbing, pass--federated:python3 <plugin_dir>/scripts/vault_query.py "<query>" --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --federated --json - By default,
raw/is excluded (wiki/only). When explicitly searching uncompiled raw intake (--include-raw), raw matches are down-weighted (0.7x) and wrapped in<untrusted-snippet source="raw/...">...</untrusted-snippet>. - Before creating a new synthesis or concept note, run the pre-ingest duplicate check (
create_safety:exists|probable|unknown):python3 <plugin_dir>/scripts/vault_query.py "<candidate_title_or_topic>" --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --check-duplicate --json
- To include the shared sanitized pattern repository (
- Locate primary entry points across:
wiki/entities/: Organization profiles, platforms, tools, people.wiki/concepts/: Architecture blueprints, security patterns, algorithms, frameworks.wiki/sources/: Distilled meeting notes, whitepapers, lecture decks.
2. Associative Graph Traversal (Progressive Disclosure)
- Read the anchor note(s) using
view_file. - Follow outgoing
[[wikilinks]]to related concepts, entities, and sources. - Check reciprocal links to ensure comprehensive bidirectional context.
- Extract key facts, metrics, decision rationales, and customer constraints.
3. Grounded Answer Synthesis
- Structure the response with clear headings, bullet points, and comparison tables.
- Clickable Links: Link all referenced entities and concepts using
[[Target|Alias]]or[Target](file:///path/to/ObsidianVault/wiki/...). - CLI Visual Invariant: When rendering architectures or process flows, output clean ASCII/Unicode text box diagrams directly in the terminal chat.
4. Compounding Synthesis Writeback (Karpathy Compiler Invariant)
If the query produces non-trivial cross-cutting analysis, customer comparisons, or novel architectural synthesis:
- Create a permanent synthesis note at:
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/synthesis/<Topic_Name>.md - Include standard OKF v0.2 frontmatter:
Omit--- title: "Synthesis Title" type: synthesis created: YYYY-MM-DD updated: YYYY-MM-DD tags: - domain/topic status: stable sources: - id: source-slug resource: "wiki/sources/..." generated: { by: knowledge-compiler/gemini-pro, at: YYYY-MM-DDTHH:MM:SSZ } aliases: [] ---verified:on agent-authored notes until explicit human review (vault-lint --approve-human <note>). - Add the new synthesis note into
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/index.mdunder## 📑 Synthesis & Research Analyses. - Append an entry to
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/log.md:## [YYYY-MM-DD] query | <Topic Name>
🛡️ Critical Invariants
- Table Invariant: Inside markdown tables, never escape pipe characters in wikilinks (always use
[[Target|Alias]], never[[Target\|Alias]]). - Reciprocal Integrity: If writing a new synthesis note that references note A and note B, add reciprocal backlinks to note A and note B.
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.

