diff --git a/agent/prompt/workspace.py b/agent/prompt/workspace.py index 99e30a82..60fdd762 100644 --- a/agent/prompt/workspace.py +++ b/agent/prompt/workspace.py @@ -408,6 +408,7 @@ def _get_rule_template() -> str: 知识的核心价值在于**关联**。每个页面都应通过 markdown 链接引用相关页面,构建知识网络: - 提到已有页面的概念时,添加 `[概念名](../category/page.md)` 链接 - 新建页面时,检查是否有已有页面应该反向链接到新页面 +- **只链接已存在的页面**——不要引用尚未创建的页面。如果某个概念值得单独建页,先创建该页面再添加链接 ### 索引维护 diff --git a/skills/knowledge-wiki/SKILL.md b/skills/knowledge-wiki/SKILL.md index d96cf099..b72a2114 100644 --- a/skills/knowledge-wiki/SKILL.md +++ b/skills/knowledge-wiki/SKILL.md @@ -53,7 +53,7 @@ Content here. Cross-reference related pages with markdown links: - [Page B](../category/page-b.md) — how it relates ``` -Cross-references build a knowledge graph. When creating or updating a page, always link to related pages, and update those pages to link back. +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. ## Index Format (`knowledge/index.md`) @@ -76,8 +76,8 @@ Category names and structure are flexible — follow whatever organization alrea Append-only, newest at bottom: ```markdown -## [2026-04-09] ingest | DeepSeek-R1 Deploy Guide -## [2026-04-09] synthesize | Memory System Design Analysis +## [YYYY-MM-DD] ingest | Page Title +## [YYYY-MM-DD] synthesize | Page Title ``` ## Guidelines