wiki-query

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Personal Wiki — Query

个人Wiki — 查询

Answer questions by searching and synthesizing knowledge from the wiki.
通过搜索并整合wiki中的知识来回答问题。

Search Strategy

搜索策略

1. Start with the index

1. 从索引开始

Read
wiki/index.md
to identify relevant pages. Scan all category sections (Sources, Entities, Concepts, Synthesis) for entries related to the question.
阅读
wiki/index.md
以识别相关页面。扫描所有分类板块(Sources、Entities、Concepts、Synthesis),查找与问题相关的条目。

2. Search wiki content

2. 搜索wiki内容

If the index doesn't surface enough relevant pages, use grep to search wiki page contents for keywords related to the question.
如果索引未提供足够的相关页面,使用grep搜索wiki页面内容中与问题相关的关键词。

3. Read relevant pages

3. 阅读相关页面

Read the wiki pages identified by the index or search. Follow
[[wikilinks]]
to pull in related context from linked pages. Read enough pages to give a thorough answer, but don't read the entire wiki.
阅读通过索引或搜索找到的wiki页面。跟随
[[wikilinks]]
从关联页面中获取相关上下文。阅读足够的页面以给出全面的答案,但无需通读整个wiki。

4. Check raw sources if needed

4. 必要时查看原始来源

If the wiki pages don't fully answer the question, check relevant source summaries in
wiki/sources/
for additional detail. Only go to files in
raw/
as a last resort.
如果wiki页面无法完全回答问题,查看
wiki/sources/
中的相关来源摘要以获取更多细节。仅在万不得已时才查看
raw/
目录下的文件。

5. If the wiki can't answer

5. 若wiki无法回答

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.
wiki是独立封闭的系统,请勿搜索网络。如果wiki没有足够信息回答问题,请明确告知用户,并建议用户可以添加哪些来源来填补信息空白。

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.
根据问题类型匹配答案格式:
  • 事实类问题 → 附带引用的直接回答
  • 对比类问题 → 包含并列分析的Markdown表格
  • 探索类 / “X与Y有何关联” → 包含关联概念的叙述性内容
  • 列表/目录类 → 带有简要描述的项目符号列表
  • 关系/结构类 → 展示关联的Mermaid图表
示例Mermaid图表:
mermaid
graph LR
  A[Concept A] --> B[Concept B]
  A --> C[Entity C]
  B --> D[Concept D]
当问题适合时使用表格和Mermaid图表,否则默认使用纯Markdown格式。

Citations

引用

Always cite wiki pages using
[[wikilink]]
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.
始终使用
[[wikilink]]
语法引用wiki页面。示例:
根据[[Source - Article Title]],核心发现是X。这与[[Concept Name]]中描述的更广泛模式相关,[[Entity Name]]也对此进行了探索。

Saving answers to the wiki

将答案保存到wiki

Do not offer to save answers. If the user explicitly asks to save a query result to the wiki:
  1. Create a new page in
    wiki/synthesis/
    with proper frontmatter
  2. Add an entry to
    wiki/index.md
    under Synthesis
  3. Append to
    wiki/log.md
    :
    ## [YYYY-MM-DD] query | Question summary
请勿主动提出保存答案。如果用户明确要求将查询结果保存到wiki:
  1. wiki/synthesis/
    目录下创建带有正确前置元数据的新页面
  2. wiki/index.md
    的Synthesis板块下添加条目
  3. wiki/log.md
    中追加内容:
    ## [YYYY-MM-DD] query | 问题摘要

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
    [[wikilinks]]
    for all internal references. Never use raw file paths.
  • 优先搜索wiki。仅当wiki无法回答时才查看原始来源。
  • 绝不搜索网络。wiki是独立封闭的系统。
  • 注明来源。每个事实性声明都应链接至其来源的wiki页面。
  • 仅在明确请求时保存。请勿主动提出保存查询结果。
  • 所有内部引用均使用
    [[wikilinks]]
    ,切勿使用原始文件路径。

Related Skills

相关技能

  • /wiki-ingest
    — process new sources into wiki pages
  • /wiki-lint
    — health-check the wiki for issues
  • /wiki-explore
    — discover cross-domain connections
  • /wiki-spark
    — generate creative prompts from wiki content
  • /wiki-ingest
    — 将新来源处理为wiki页面
  • /wiki-lint
    — 检查wiki的健康状况,排查问题
  • /wiki-explore
    — 发现跨领域关联
  • /wiki-spark
    — 从wiki内容生成创意提示