Reorganizing at Scale
First-round titles tend to be abstract, and the first directory structure is rarely ideal. Plan to restructure once the first round is approved: the Agent can then survey what already exists and propose a more readable, direct structure. That proposal is better than anything possible during planning, because the content is there to look at. Apply it, then observe for another round. Reorganizing is a series of revisions, far cheaper than producing again.
Survey the approved knowledge and propose a more direct directory and title
structure. Show me the before/after, then revise once I confirm.Pick the lightest change
flowchart TB
q{"What needs to change?"} -->|menu titles, order, grouping| map["Adjust the knowledge map<br/>no prose rewritten"]
q -->|a page's location| move["Move the page<br/>same identity, links updated"]
q -->|content boundaries| split["Split or merge<br/>new and revised pages"]
split --> retire["Retire obsolete pages<br/>after destinations are approved"]| Change | What to ask the Agent | What stays |
|---|---|---|
| Rename a directory, reorder, regroup, place a page in a second location | "Rename the Operations menu to Runbooks and put Alerts first." | Article identity, URL and prose |
| Move a page to another path | "Move the deployment page under Source Graph." | Identity and section IDs; links from other pages are updated on approval |
| Split one page, or merge several | "Split the setup page into install and configure; merge the two FAQ pages." | Useful detail, until its destination is approved |
| Keep a group in packages but out of the site menus | "Hide the Internal Notes directory from the website; keep it in the package." | Article identity, URL and package placement |
| Remove pages now covered elsewhere | "Retire the old guide; point readers to the current guide." | Sources and shared assets |
Knowledge-map adjustments
The knowledge map controls the website navigation and the LLM Docs organization together. Ask in conversation to move a topic, rename a directory, change the order or organize the same articles for another reader task. This works during production or after it, without capturing sources again. After delivery, a change that only touches the map is recorded as a patch version and built straight away; production is not resumed. Each entry keeps a stable key, so a renamed menu needs no new article and moving a menu entry does not change the article URL.
A directory can also be hidden: it and everything under it stay out of the website menus and the "All articles" list, while its pages still count as placed and remain in knowledge packages and LLM Docs. Use it for material that Agents need but site readers do not browse, and link to it from an entry article; see Documentation Sites.
Prefer, in this order: revise an existing article, add a page to a matching category, add a coherent child category. A top-level addition, rename or removal is shown to you as a before/after tree and needs your explicit approval.
Splits and merges
The Agent reads the affected pages and current sources before deciding what to keep, deepen, split, merge or retire. Destination content is approved first; only then are the original page and the links pointing to it revised. Useful conditions, steps and explanations must have a destination before anything is removed. Leaving a page out in review only rejects that draft; it does not retire the approved article.
Retiring pages
Ask the Agent to retire the pages, and say which page replaces each one and why. The Agent first shows you what the retirement will do: which pages go, which menu entries will point to the replacement or disappear, which other pages need their links changed and which translations will be removed. Once you have approved it, the Agent applies it without asking again.
How it is applied depends on whether a review is still open:
- No review open. The retirement is a step of its own, confirmed in the conversation rather than in a review report. The pages and their navigation entries are removed together, links from other pages point at the replacement, and the Agent can roll the retirement back if you change your mind.
- A review is still open. The retirement joins that batch. Pages whose links must change are added to the batch, the review report shows the planned result, and nothing is deleted until you approve the batch; the retirement is then applied together with the revised pages. The replacement can be a page written in the same batch.
Links into a specific paragraph of a split page are repaired first, because Context cannot infer where a paragraph went. Sources and shared assets are never deleted.
Pages with continuing value, such as documentation for an older version, normally stay. A shorter new text or a changed menu is not a reason to retire.
Make the new structure stick
Before you publish, check that each page sits under its main reader task, titles match bodies, siblings are ordered deliberately and no directory is empty or an accidental duplicate. Ask the Agent to record the lasting intent of each category briefly in the AGENTS.md of the knowledge workspace, so later updates place new pages the same way.
大规模重组
第一轮的标题往往偏抽象,最初的目录结构也很少是理想的。请计划在第一轮获得批准后进行一次重组:此时 Agent 可以梳理已有内容,提出一个更易读、更直接的结构。这个方案会优于规划阶段能做到的任何方案,因为内容已经摆在那里。落实之后,再观察一轮。重组是一系列修订,成本远低于重新生产。
请梳理已批准的知识,提出更直接的目录和标题结构。
先给我看调整前后的对比,等我确认后再修订。选择最轻量的变更
flowchart TB
q{"需要改变什么?"} -->|"菜单标题、顺序、分组"| map["调整知识地图<br/>不重写正文"]
q -->|"页面位置"| move["移动页面<br/>身份不变,链接同步更新"]
q -->|"内容边界"| split["拆分或合并<br/>新增页面和修订页面"]
split --> retire["下线过时页面<br/>在目标页面批准之后"]| 变更 | 对 Agent 说什么 | 保持不变的内容 |
|---|---|---|
| 重命名目录、调整顺序、重新分组、把页面放到第二个位置 | “把 Operations 菜单改名为 Runbooks,并把 Alerts 放在最前面。” | 文章身份、URL 和正文 |
| 把页面移动到其他路径 | “把部署页面移到 Source Graph 下面。” | 身份和章节 ID;其他页面指向它的链接在批准时更新 |
| 拆分一个页面,或合并多个页面 | “把安装配置页拆成安装和配置两页;合并两个 FAQ 页面。” | 有用的细节,直到其目标位置获得批准 |
| 让某个分组留在知识包中但不出现在网站菜单 | “把 Internal Notes 目录从网站上隐藏,但保留在知识包里。” | 文章身份、URL 和在知识包中的位置 |
| 删除已在别处覆盖的页面 | “下线旧指南;让读者转到当前指南。” | 来源和共享资源 |
知识地图调整
知识地图同时控制网站导航和 LLM Docs 的组织方式。在对话中提出即可:移动某个主题、重命名目录、调整顺序,或为另一种读者任务重新组织同一批文章。这在生产过程中或之后都可以进行,无需重新采集来源。交付之后,只改动知识地图的变更会直接记录为补丁版本并构建,不会恢复生产。每个条目都有一个稳定的键,因此重命名菜单不需要新文章,移动菜单条目也不会改变文章 URL。
目录也可以设为隐藏:它及其下的所有内容都不出现在网站菜单和“全部文章”列表中,但其页面仍算作已放置,并保留在知识包和 LLM Docs 中。适用于 Agent 需要、网站读者不会去浏览的材料,并从一篇入口文章链接过去;参见文档站。
优先顺序如下:修订现有文章,把页面加入匹配的分类,新增一个内容连贯的子分类。顶层的新增、重命名或删除会以变更前后的目录树展示给你,并需要你明确批准。
拆分与合并
Agent 会先阅读受影响的页面和当前来源,再决定哪些保留、深化、拆分、合并或下线。目标内容先获得批准;之后才会修订原页面及指向它的链接。有用的条件、步骤和解释在删除任何内容之前都必须有去处。在审核中略去某个页面只会拒绝该草稿,并不会下线已批准的文章。
下线页面
请 Agent 下线这些页面,并说明每个页面由哪个页面替代以及原因。Agent 会先向你展示这次下线会带来什么:哪些页面会被移除,哪些菜单项会改指向替代页面或被删除,哪些其他页面需要修改链接,以及哪些译文会被移除。你批准之后,Agent 会直接执行,不再询问。
具体怎么执行,取决于当前是否有进行中的审核:
- 没有进行中的审核。 下线是一个独立步骤,在对话中确认,而不是在审核报告中确认。页面及其导航条目会一并删除,其他页面的链接改指向替代页面;如果你改变主意,Agent 也可以回滚这次下线。
- 有审核正在进行。 下线并入这个批次。需要修改链接的页面会加入批次,审核报告会展示计划结果;在你批准这个批次之前不会删除任何内容,批准后下线会与修订的页面一起生效。替代页面可以是同一批次中新写的页面。
指向被拆分页面中某个具体段落的链接会先行修复,因为 Context 无法推断某个段落去了哪里。来源和共享资源永远不会被删除。
具有持续价值的页面,例如旧版本的文档,通常会保留。新文本更短或菜单有变化,都不是下线的理由。
让新结构保持下去
发布前,请检查每个页面都位于其主要读者任务之下、标题与正文相符、同级页面的顺序经过斟酌,且没有空目录或意外重复的目录。请 Agent 在知识工作区的 AGENTS.md 中简要记录每个分类的长期意图,以便后续更新以同样的方式放置新页面。