wiki-query

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Wiki Query

维基查询

Ask a question. Read the wiki. Synthesize with citations. Offer to file the answer back.
提出问题。查阅维基。结合引用内容生成答案。主动提出将答案归档。

Pre-condition

前置条件

Find
SCHEMA.md
(search from cwd upward, or
~/wikis/
). If not found, tell the user to run
wiki-init
first. Read it to get wiki root path and cross-reference convention.
查找
SCHEMA.md
文件(从当前工作目录向上搜索,或在
~/wikis/
目录中查找)。如果未找到,请告知用户先运行
wiki-init
。读取该文件以获取维基根目录路径和交叉引用规则。

Process

操作流程

1. Read
wiki/index.md
first

1. 首先读取
wiki/index.md

Scan the full index to identify which pages are likely relevant. Do NOT answer from general knowledge — the wiki is the source of truth here, even if you think you know the answer.
完整扫描索引以确定哪些页面可能相关。请勿凭借常识作答——此处维基是唯一的信息来源,即便你自认为知道答案也需遵循此规则。

2. Read relevant pages

2. 读取相关页面

Read the identified pages in full. Follow one level of
[[slug]]
links if they point to pages that seem relevant to the question.
完整读取已确定的相关页面。如果页面中的
[[slug]]
链接指向与问题相关的页面,可跟进查看一级链接内容。

3. Synthesize the answer

3. 生成答案

Write a response that:
  • Is grounded in the wiki pages you read
  • Cites inline using
    [[slug]]
    for every claim sourced from a specific page
  • Notes agreements and disagreements between pages
  • Flags gaps: "The wiki has no page on X" or "[[page]] doesn't cover Y yet"
  • Suggests follow-up sources to ingest or questions to investigate
Format for the question type:
  • Factual → prose with citations
  • Comparison → table
  • How-it-works → numbered steps
  • What-do-we-know-about-X → structured summary with open questions
撰写回复需满足以下要求:
  • 基于你所阅读的维基页面内容
  • 每个来自特定页面的论断都使用
    [[slug]]
    进行 inline 引用
  • 标注页面之间的一致与分歧之处
  • 指出信息空白:“维基中没有关于X的页面”或“[[page]]尚未涵盖Y内容”
  • 建议后续需要导入的信息来源或需要调查的问题
根据问题类型选择对应格式:
  • 事实类问题 → 带引用的散文式回答
  • 对比类问题 → 表格形式
  • 工作原理类问题 → 编号步骤形式
  • 关于X我们了解什么 → 包含开放性问题的结构化摘要

4. Always offer to save

4. 务必主动提出保存选项

After answering, say:
"Worth saving as
wiki/pages/<suggested-slug>.md
?"
If yes:
  • Write the page with frontmatter:
    tags: [query, analysis]
    ,
    sources: [all cited slugs]
  • Add entry to
    wiki/index.md
    under the correct category (Analyses or similar)
  • Append to
    wiki/log.md
    :
    ## [<today>] query | <question summary>
    Filed as: [[<slug>]]
If no:
  • Append to
    wiki/log.md
    :
    ## [<today>] query | <question summary>
    Not filed.
回答完成后,请告知用户:
"是否需要将此内容保存为
wiki/pages/<suggested-slug>.md
?"
如果用户同意:
  • 创建页面并添加前置元数据:
    tags: [query, analysis]
    sources: [all cited slugs]
  • wiki/index.md
    的对应分类下(如“分析”类)添加条目
  • wiki/log.md
    中追加内容:
    ## [<today>] query | <question summary>
    Filed as: [[<slug>]]
如果用户不同意:
  • wiki/log.md
    中追加内容:
    ## [<today>] query | <question summary>
    Not filed.

Common Mistakes

常见错误

  • Answering from memory — Always read the wiki pages. The wiki may contradict what you think you know, and that contradiction is valuable signal.
  • Skipping the save offer — Good query answers compound the wiki's value. Always offer.
  • No citations — Every factual claim should trace back to a
    [[slug]]
    .
  • 凭记忆作答 — 务必查阅维基页面内容。维基内容可能与你的认知相悖,而这种矛盾是有价值的信号。
  • 未主动提出保存选项 — 优质的查询答案能提升维基的价值。务必主动询问。
  • 未添加引用 — 每个事实性论断都应追溯到对应的
    [[slug]]