Personal Wiki — Query
Answer questions by searching and synthesizing knowledge from the wiki.
Search Strategy
1. Start with the index
Read
to identify relevant pages. Scan all category sections (Sources, Entities, Concepts, Synthesis) for entries related to the question.
2. Search wiki content
If the index doesn't surface enough relevant pages, use grep to search wiki page contents for keywords related to the question.
3. Read relevant pages
Read the wiki pages identified by the index or search. Follow
to pull in related context from linked pages. Read enough pages to give a thorough answer, but don't read the entire wiki.
4. Check raw sources if needed
If the wiki pages don't fully answer the question, check relevant source summaries in
for additional detail. Only go to files in
as a last resort.
5. If the wiki can't answer
The wiki is self-contained. Do not search the web. If the wiki doesn't have enough information to answer the question, say so clearly and suggest what sources the user could add to fill the gap.
Synthesize the Answer
Format
Match the answer format to the question:
- Factual question → direct answer with citations
- Comparison → markdown table with side-by-side analysis
- Exploration / "how does X relate to Y" → narrative with linked concepts
- List/catalog → bulleted list with brief descriptions
- Relationships / structure → Mermaid diagram showing connections
Example Mermaid diagram:
mermaid
graph LR
A[Concept A] --> B[Concept B]
A --> C[Entity C]
B --> D[Concept D]
Use tables and Mermaid diagrams when the question naturally calls for them. Default to plain markdown otherwise.
Citations
Always cite wiki pages using
syntax. Example:
According to [[Source - Article Title]], the key finding was X. This connects to the broader pattern described in [[Concept Name]], which [[Entity Name]] has also explored.
Saving answers to the wiki
Do not offer to save answers. If the user explicitly asks to save a query result to the wiki:
- Create a new page in with proper frontmatter
- Add an entry to under Synthesis
- Append to :
## [YYYY-MM-DD] query | Question summary
Conventions
- Search the wiki first. Only go to raw sources if the wiki doesn't have the answer.
- Never search the web. The wiki is self-contained.
- Cite your sources. Every factual claim should link to the wiki page it came from.
- Only save on explicit request. Do not offer to save query results.
- Use for all internal references. Never use raw file paths.
Related Skills
- — process new sources into wiki pages
- — health-check the wiki for issues
- — discover cross-domain connections
- — generate creative prompts from wiki content