wiki-query
Skill21 starsChanged 5 months agoMITView on GitHub
Answer questions by searching the compiled Obsidian wiki. Use this skill when the user asks a question about their knowledge base, wants to find information across their wiki, asks "what do I know about X", "find everything related to Y", or wants synthesized answers with citations from their wiki pages. Also use when the user wants to explore connections between topics in their wiki. Works from any project. Includes an index-only fast mode triggered by "quick answer", "just scan", "don't read the pages", "fast lookup" — returns answers from page summaries and frontmatter without reading page bodies.
- Reads credentials
25 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- juanitourquiza/shipframetheir own version, first seen Oct 1, 2026
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- nathanaday/atlas-obsidiantheir own version, first seen Sep 28, 2026
- dexio-wiki/llm-wiki-skillstheir own version, first seen Sep 28, 2026
- shimo4228/claude-harnesstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use wiki-review, defuddle and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
justvinhhereSkillwiki-review
Use when the user runs /review, says "show pending changes", "what's uncommitted", or wants an audit of uncommitted wiki edits before they land in history. Narrates uncommitted changes, flags structural issues scoped to those changes, and commits them with a conventional subject. Fully automatic.
Also in 4 projects that use this
joeseesunSkilldefuddle
Extract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.
Also in 4 projects that use this
javatarzSkillwiki
Access and manage the local GitHub Wiki clone. Use this skill when you need to read wiki content (architecture, design docs, guides), update wiki documentation, check wiki status, or push wiki changes. The wiki contains high-level system design and architectural documentation.
Also in 3 projects that use this
KKodiacSkillobsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
Also in 3 projects that use this
ZanderRussSkillobsidian-markdown
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- chobizzy/llm-wiki★ 223% same
Wrote their own version · 24
- AgriciDaniel/claude-obsidian★ 15ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- kfchou/wiki-skills★ 187same name
- bozhouDev/bozhou-skills★ 78same name
- vanillaflava/llm-wiki-skills★ 69same name
- cookyman74/llmwiki-harness★ 34same name
- CarbeneAI/Forge★ 9same name
- crabin/llm-wiki★ 9same name
- Xipher-Labs/walter-os★ 8same name
- shivchander/green-clawed★ 4same name
14 more not listed
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 repository19 other files it gives its agents.
- claude-history-ingestSkill
- codex-history-ingestSkill
- cross-linkerSkill
- data-ingestSkill
- graph-colorizeSkill
- ingest-urlSkill
- llm-wikiSkill
- tag-taxonomySkill
- wiki-captureSkill
- wiki-dashboardSkill
- wiki-exportSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-rebuildSkill
- wiki-researchSkill
- wiki-setupSkill
- wiki-statusSkill
- wiki-synthesizeSkill
- wiki-updateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 11 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If $OBSIDIAN_VAULT_PATH/hot.md exists, read it first — it gives you instant context on recent activity.
- Very specific: line 20
Read $OBSIDIAN_VAULT_PATH/index.md to understand the wiki's scope and structure
- Distinctive: line 26
If the user's query includes phrases like "public only", "user-facing", "no internal content", "as a user would see it", or "exclude …
- Very specific: line 57
Context guard: Read _system/hot.md at most ONCE per session.
- Distinctive: line 71
If score < 40% or zero results → switch to Path B.
- Distinctive: line 83
Only use if a candidate note is unusually long (>300 lines).
- Very specific: line 93
Follow at most 1 hop of [[wikilinks]] if the answer explicitly requires a linked page
- Very specific: line 94
If still empty → broad Grep across all notes/.
- Distinctive: line 95
If the section grep gives a clear answer, go straight to Step 5.
- Distinctive: line 99
Only when Levels 1+2 (Steps 2–3) don't answer the question:
- Very specific: line 102
Follow at most one hop of [[wikilinks]] if cross-references needed
- Distinctive: line 103
Check "Open Questions" sections for known gaps
- Very specific: line 104
If still short → Level 4: broad Grep across all notes/.
- Distinctive: line 111
If the wiki has contradictions, present both sides
- Distinctive: line 112
If the wiki doesn't cover something, say so explicitly
- Distinctive: line 131
Only trigger when ALL conditions for that variant are met.
- Distinctive: line 133
If the user says yes:
- Very specific: line 134
Create notes/[slug].md with category: insight (or concept/reference for 6a/6c)
- Very specific: line 175
Update _system/index.md and _system/hot.md per your wiki's index-maintenance rules
- Distinctive: line 178
If the user says no — drop it completely.
“Common” is measured: kept by at least 6 in 10 of the 21 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
Wiki Query — Knowledge Retrieval
You are answering questions against a compiled Obsidian wiki, not raw source documents. The wiki contains pre-synthesized, cross-referenced knowledge.
Before You Start
- Resolve the vault path (precedence, highest first): the
OBSIDIAN_VAULT_PATHenvironment variable if set, else a.envin the current working directory (vault-scoped), else~/.obsidian-wiki/config(global default). - If
$OBSIDIAN_VAULT_PATH/hot.mdexists, read it first — it gives you instant context on recent activity. If the user's question is about something ingested recently, hot.md may answer it before you even openindex.md. - Read
$OBSIDIAN_VAULT_PATH/index.mdto understand the wiki's scope and structure
Visibility Filter (optional)
By default, all pages are returned regardless of visibility tags. This preserves existing behavior — nothing changes unless the user asks for it.
If the user's query includes phrases like "public only", "user-facing", "no internal content", "as a user would see it", or "exclude internal", activate filtered mode:
- Build a blocked tag set:
{visibility/internal, visibility/pii} - In the Index Pass (Step 2), skip any candidate whose frontmatter tags contain a blocked tag
- In Section/Full Read passes (Steps 3–4), do not read or cite any blocked page
- Synthesize the answer only from allowed pages — do not mention that excluded pages exist
Pages with no visibility/ tag, or tagged visibility/public, are always included.
In filtered mode, note the filter in the Step 6 log entry: mode=filtered.
Retrieval Protocol
Follow the Retrieval Primitives table in llm-wiki/SKILL.md. Reading is the dominant cost of this skill — use the cheapest primitive that answers the question and escalate only when it can't. Never jump straight to full-page reads.
Step 1: Understand the Question
Classify the query type:
- Factual lookup — "What is X?" → Find the relevant page(s)
- Relationship query — "How does X relate to Y?" → Find both pages and their cross-references
- Synthesis query — "What's the current thinking on X?" → Find all pages that touch X, synthesize
- Gap query — "What don't I know about X?" → Find what's missing, check open questions sections
Also decide the mode:
- Index-only mode — triggered by "quick answer", "just scan", "don't read the pages", "fast lookup". Stops at Step 3. Answers from frontmatter +
index.mdonly. - Normal mode — the full tiered pipeline below.
Retrieval Strategy
Two paths, chosen by query type. No sequential escalation — pick the right tool once.
Context guard: Read _system/hot.md at most ONCE per session.
Fallback (if qmd not installed): Grep "<term>" _system/index.md max 2 calls, then read candidates.
Step 2: Retrieval
Path A — Simple/factual (specific concept, person, tool name):
qmd search "<2-3 key terms>" -c "$QMD_WIKI_COLLECTION"BM25 keyword match. If top result score ≥ 40% → take top 2 candidates, go to Step 4 (Read).
If score < 40% or zero results → switch to Path B.
Path B — Conceptual/synthesis (relationship between ideas, "how does X apply to Y", multi-topic questions):
qmd query "<full question>" -c "$QMD_WIKI_COLLECTION"Hybrid BM25 + vector + LLM rerank. Take top 3 candidates → go to Step 4 (Read).
Index-only mode (triggered by "quick answer", "just scan"): use Path A only, answer from returned snippets without reading pages. Label: (index-only). Skip to Step 5.
Step 3: Section Grep (optional — skip for compiled wiki notes)
Only use if a candidate note is unusually long (>300 lines). Pull the relevant section:
Grep -A 10 -B 2 "<query-term>" <candidate-file>For normal-sized notes, skip this — just Read the full note in Step 4.
Step 4: Read Candidates
- Path A: Read top 2 notes in full
- Path B: Read top 3 notes in full
- Follow at most 1 hop of
[[wikilinks]]if the answer explicitly requires a linked page - If still empty → broad
Grepacross all notes/. Tell the user: "escalated to full vault scan." - If the section grep gives a clear answer, go straight to Step 5.
Step 4: Full Read (expensive — last resort)
Only when Levels 1+2 (Steps 2–3) don't answer the question:
Readthe top 3 candidates in full (Level 3)- Follow at most one hop of
[[wikilinks]]if cross-references needed - Check "Open Questions" sections for known gaps
- If still short → Level 4: broad
Grepacross all notes/. Tell the user: "escalated to full vault scan."
Step 5: Synthesize an Answer
Compose your answer from wiki content:
- Cite specific wiki pages using
[[page-name]]notation - Note which step the answer came from ("found in summary" vs "grepped section" vs "full page read") — helps the user understand confidence
- If the wiki has contradictions, present both sides
- If the wiki doesn't cover something, say so explicitly
- Suggest which sources might fill the gap
Step 6: Insight Offer (optional)
Three variants — trigger at most one per query, in priority order:
6a. Gap offer — wiki had nothing on the topic (zero candidate pages from Steps 2–4):
Nothing in the wiki on this yet — want me to create a stub?
- Yes → create
notes/[slug].mdwithcategory: concept(or entity/reference as fits), body = short skeleton from query context. Update index + hot. - No → drop it.
6b. Synthesis offer — wiki had content, answer synthesized from 2+ distinct notes, contains a genuinely new angle:
This synthesis seems worth saving to the wiki — want me to create it now?
6c. Archive offer — wiki had partial content but the bulk of the answer came from general knowledge (not wiki pages), answer is substantive (>3 sentences):
The wiki only partly covers this — want me to save the full answer?
Only trigger when ALL conditions for that variant are met. Never show more than one offer per query.
If the user says yes:
- Create
notes/[slug].mdwithcategory: insight(orconcept/referencefor 6a/6c) - Use this template:
---
title: [descriptive title of the insight]
category: insight
tags: [2-3 tags from _system/tags.md]
sources: []
summary: [≤200 chars, one-line distillation]
created: [today]
updated: [today]
---
# [title]
> [the core insight in one sentence]
## Synthesis
[the synthesized answer, cleaned up]
## Source Pages
- [[notes/page-a]]
- [[notes/page-b]]
## How To Apply
**When to use:**
**How to do it:**
**Pitfalls:**
## Related
- [[notes/page-a]]
- [[notes/page-b]]- Update
_system/index.mdand_system/hot.mdper your wiki's index-maintenance rules - Tell the user: "Saved as [[notes/slug]]"
If the user says no — drop it completely. No todo, no mention again.
Step 7: Log the Query
Append to log.md:
- [TIMESTAMP] QUERY query="the user's question" result_pages=N mode=normal|index_only|filtered escalated=true|false insight_offered=true|false insight_saved=true|falseAnswer Format
Structure answers like this:
Based on the wiki:
[Your synthesized answer with [[wikilinks]] to source pages]
Pages consulted: [[page-a]], [[page-b]], [[page-c]]
Gaps: [What the wiki doesn't cover that might be relevant]
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.

