18 lines
975 B
Markdown
Executable File
18 lines
975 B
Markdown
Executable File
---
|
||
description: 把当前对话的洞察回写为 questions/ 知识页
|
||
argument-hint: [可选:一句话点题]
|
||
---
|
||
|
||
把当前对话中有价值的问答/洞察沉淀成一页知识。`$ARGUMENTS` 是可选点题。
|
||
|
||
前置:`question` 是预留 type(`meta/kb-contract.yaml` 中 `active: false`)。若尚未激活:
|
||
1. 提示用户"首次回写需激活 question type",征得同意后把契约里 `question` 改成 `active: true` 并 `mkdir -p questions/`。
|
||
|
||
执行:
|
||
1. 读 `meta/kb-contract.yaml` 确认 question 字段要求。
|
||
2. 提炼本轮对话的问题 + 结论,写到 `questions/<slug>.md`:
|
||
- frontmatter:`type: question`、`title`、`status`(草稿→seed)、`created`/`ingested`=今天、`related: [[...]]` 连到依据页。
|
||
- 正文:问题 / 结论 / 依据(挂 source_link)。
|
||
3. 跑 `python3 tools/kb-lint-fm.py questions/` 确认 exit 0。
|
||
4. 简报路径。绝不把无据推测写成知识——只沉淀有出处的结论。
|