wiki-query
Use this skill when the user asks a knowledge-seeking question in a project that contains a wiki/ directory or index.md file. Do NOT trigger on every message — only when the user is clearly asking about something that might be in their personal knowledge base. Examples of triggering questions: "what do I know about X", "what's in my notes on Y", "summarize what I've learned about Z", "what have I read about X". Examples that should NOT trigger: task requests, code questions, file edits.
Wiki Query
Answer the user's question using their personal wiki.
Step 1: Verify Wiki Exists
Use Glob to check for wiki/ or index.md in the current project. If neither
exists, respond:
No wiki found in this project. Run /wiki-init to set one up.
Then answer the question from your own knowledge if possible, clearly noting you're not drawing from a wiki.
Step 2: Find Relevant Pages
Read index.md to get an overview of what the wiki contains.
Then use Grep to search wiki/ for terms related to the user's question.
Cast a wide net — search for synonyms and related terms.
Step 3: Read Relevant Pages
Read each page that looks relevant to the question. Prioritize:
- Pages whose title directly matches the question topic
- Pages that Grep found contain the query terms
- Insights pages (often contain synthesized conclusions)
Step 4: Synthesize and Answer
Answer the user's question using what you found in the wiki. Format:
- Lead with the direct answer
- Cite sources inline with
[→ wiki/type/page-name.md] - If the wiki doesn't have enough information, say so explicitly: "My wiki doesn't cover this yet — you may want to ingest a source on this topic."
Never fabricate information. If it's not in the wiki, say so.