Query the wiki knowledge base and optionally save results. Use when the user asks a question about topics covered in the wiki, wants to search the knowledge base, asks "what do we know about X", or wants to generate a report from wiki content. Also trigger when the user wants to save a conversation insight as a wiki article.
Answer questions by navigating the wiki's hierarchical indexes, reading relevant articles, and synthesizing an answer with citations.
The wiki is located in an Obsidian vault at ~/vault
Handle queries directly (no subagent needed — queries are conversational and benefit from back-and-forth with the user).
Read wiki/_master-index.md to identify which topics are relevant to the question. Then read those topics' index files to find specific articles. Read the articles that are most likely to contain the answer.
Don't read everything — be targeted. The index hierarchy exists to avoid full scans.
Combine information from the articles into a coherent answer. Always cite sources using so the user can drill into the underlying articles.
[[wikilinks]]If the answer requires information from multiple topics, explicitly note which articles contributed to each part of the synthesis.
If the wiki doesn't have enough information to fully answer the question, say so clearly — identify what's covered and what's missing. Suggest whether the gap could be filled by:
After answering, if the synthesis produced something valuable (a comparison, an analysis, a connection between topics that wasn't previously documented), offer to save it. There are two options:
As a wiki article — if the answer represents durable knowledge that will be useful in future queries. Save it in the appropriate topic folder following the standard article format. Use only canonical tags from CLAUDE.md — do not invent new tags. Update the topic index and master index.
As an output file — if the answer is more situational (a one-off comparison, a report for a specific purpose). Save to output/YYYY-MM-DD-descriptive-name.md with frontmatter:
---