knowledge-wiki
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKnowledge Wiki
知识维基
Maintain a persistent, structured knowledge base in the directory.
knowledge/在目录中维护一个持久化的结构化知识库。
knowledge/Core Operations
核心操作
1. Ingest — User shares an article, document, or resource
1. 导入 — 用户分享文章、文档或资源
- Read and understand the source material
- Extract key facts, insights, and structured knowledge
- Determine the appropriate subdirectory:
- Read to see existing categories
knowledge/index.md - If a matching category exists, follow that structure
- If not, create a new subdirectory with a clear name
- Read
- Create the knowledge page:
knowledge/<category>/<slug>.md - Update and append to
knowledge/index.mdknowledge/log.md
- 阅读并理解源材料
- 提取关键事实、见解和结构化知识
- 确定合适的子目录:
- 阅读查看现有分类
knowledge/index.md - 若存在匹配分类,遵循该结构
- 若不存在,创建一个名称清晰的新子目录
- 阅读
- 创建知识页面:
knowledge/<category>/<slug>.md - 更新并追加到
knowledge/index.mdknowledge/log.md
2. Synthesize — Conversation produces valuable structured knowledge
2. 合成 — 对话产生有价值的结构化知识
- Create a knowledge page under the appropriate category
- Update related pages with cross-references
- Update and
knowledge/index.mdknowledge/log.md
- 在对应分类下创建知识页面
- 更新相关页面并添加交叉引用
- 更新和
knowledge/index.mdknowledge/log.md
3. Query — User asks about accumulated knowledge
3. 查询 — 用户询问已积累的知识
- Check (already in your context) for relevant pages
knowledge/index.md - Read specific pages with the tool
read - Supplement with if needed
memory_search
- 查看(已在上下文内)寻找相关页面
knowledge/index.md - 使用工具读取特定页面
read - 必要时借助补充信息
memory_search
Page Format
页面格式
markdown
undefinedmarkdown
undefinedPage Title
页面标题
Source: <URL or description of the original material>
Content here. Cross-reference related pages with markdown links:
Related Page
来源:<原始材料的URL或描述>
内容在此处。使用Markdown链接交叉引用相关页面:
相关页面
Key Points
要点
- ...
- ...
Related
相关内容
- Page A — how it relates
- Page B — how it relates
The `> Source:` line records where the knowledge came from (URL, document name, conversation, etc.). Always include it when the material originates from a specific source.
Cross-references build a knowledge graph. When creating or updating a page, link to related pages and update those pages to link back. **Only link to pages that already exist** — if a concept deserves its own page, create it first, then add the link.- 页面A — 关联说明
- 页面B — 关联说明
`> 来源:`行记录知识的来源(URL、文档名称、对话等)。当材料来自特定来源时,务必包含该行。
交叉引用构建知识图谱。创建或更新页面时,链接到相关页面并更新这些页面以反向链接。**仅链接到已存在的页面**——如果某个概念值得拥有独立页面,先创建该页面,再添加链接。Index Format (knowledge/index.md
)
knowledge/index.md索引格式(knowledge/index.md
)
knowledge/index.mdFlat list, one line per page: . Group by category (matching subdirectories). No tables, no emoji.
[Title](path) — one-line summarymarkdown
undefined扁平列表,每页一行:。按分类分组(与子目录匹配)。不使用表格,不使用表情符号。
[标题](路径) — 一行摘要markdown
undefinedKnowledge Index
知识索引
Category A
分类A
- Page Title — one-line summary
- 页面标题 — 一行摘要
Category B
分类B
- Page Title — one-line summary
Category names and structure are flexible — follow whatever organization already exists in the index, or create new categories based on the content.- 页面标题 — 一行摘要
分类名称和结构灵活——遵循索引中已有的组织方式,或根据内容创建新分类。Log Format (knowledge/log.md
)
knowledge/log.md日志格式(knowledge/log.md
)
knowledge/log.mdAppend-only, newest at bottom:
markdown
undefined仅追加,最新内容在底部:
markdown
undefined[YYYY-MM-DD] ingest | Page Title
[YYYY-MM-DD] ingest | 页面标题
[YYYY-MM-DD] synthesize | Page Title
[YYYY-MM-DD] synthesize | 页面标题
undefinedundefinedGuidelines
指南
- File naming: lowercase kebab-case (e.g. )
machine-learning.md - One topic per page: link between pages rather than duplicating
- Update, don't duplicate: if a page exists, update it
- Cross-reference: every page should link to related pages; keep the knowledge graph connected
- Index is mandatory: always update after any change
knowledge/index.md - Be concise: capture essence, not copy entire sources
- Full paths in replies: when referencing knowledge files in conversation replies, use the full path from workspace root (e.g. ), not relative paths. Relative paths are only for cross-references inside knowledge pages themselves.
[Title](knowledge/<category>/<slug>.md) - Cite sources: when answering based on knowledge pages, include links to the relevant pages so the user can explore further.
- 文件命名:小写短横线命名法(例如)
machine-learning.md - 每页一个主题:在页面间建立链接而非重复内容
- 更新而非重复:若页面已存在,直接更新
- 交叉引用:每个页面都应链接到相关页面,保持知识图谱的关联性
- 索引必填:任何更改后务必更新
knowledge/index.md - 简洁性:捕捉核心内容,不要复制整个源材料
- 回复中使用完整路径:在对话回复中引用知识文件时,使用工作区根目录的完整路径(例如),而非相对路径。相对路径仅用于知识页面内部的交叉引用。
[标题](knowledge/<category>/<slug>.md) - 引用来源:基于知识页面作答时,包含相关页面的链接,方便用户进一步探索。