From dd34f1771554c924e0ca8a2853ee9bc5283489cc Mon Sep 17 00:00:00 2001 From: lili Date: Thu, 9 Jul 2026 08:48:49 -0700 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6:=20read-context=E8=A1=A5?= =?UTF-8?q?=E5=BD=92=E5=B1=9E=E5=88=A4=E6=8D=AE=E2=80=94=E2=80=94agent=20p?= =?UTF-8?q?rompt=3D=E7=B3=BB=E7=BB=9F=E4=BD=8D=E5=9C=A8=E5=9B=9B=E5=B1=82?= =?UTF-8?q?=E4=B9=8B=E5=89=8D,=E6=8D=A2=E4=BD=9C=E5=93=81=E4=B8=8D?= =?UTF-8?q?=E5=8F=98=E8=BF=9Bprompt/=E9=9A=8F=E4=BD=9C=E5=93=81=E5=8F=98?= =?UTF-8?q?=E8=BF=9BL2/=E9=9A=8F=E5=9B=9E=E5=90=88=E5=8F=98=E8=BF=9BL0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .claude/skills/read-context/SKILL.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.claude/skills/read-context/SKILL.md b/.claude/skills/read-context/SKILL.md index fb1d6ad..9d685c6 100644 --- a/.claude/skills/read-context/SKILL.md +++ b/.claude/skills/read-context/SKILL.md @@ -34,6 +34,7 @@ SoT 对齐:包结构=专题-03 §4.2 **四层上下文**;字段级 aiContext 裁 - **预算序**(谁不许被裁,对齐专题-03 §4.2):L0 必须完整保留;超长先摘要化 L3→L2,再截 L1,永不动 L0; - **拼装序**(物理顺序,按稳定度递减,吃 prompt 前缀缓存):agent 系统 prompt(含 agent 级输出合同,最稳) → **L2 作品事实**(章间缓变) → **L1 近邻正文**(每章变,章内稳定) → **L0 稳定部**=本章细纲+本次输出特化(同章多轮重生成不变) → **L3 授权资料**(文件版按场景选卡每章变;PG 版是检索结果,随查询每回合可能变) → **L0 易变部**=用户本回合意图/修改意见(每回合必变,**绝对尾置**,亦是遵循度最优位)。 - 缓存注记:L3 检索查询尽量从本章细纲构造,意图只在用户点名新参考时追加——使 L3 章内趋稳,同章 n=5 重生成环吃到更长前缀。 + - 归属判据(什么进 agent prompt,什么进层):**换作品也不变**的进 agent 系统 prompt(角色/方法论/agent 级输出合同/红线);**随作品变**的进 L2(文风画像/设定——agent prompt 不得硬编任何作品专属内容,这是「换绑写手不动链」的前提);**随回合变**的进 L0。阶段一物理形态:派发子代理时 agent `.md` 正文=子代理 system prompt,本 skill 的四层包+派发指令=user message;阶段二同构(agent_version.config 的 prompt 进系统位,Context Assembly 进消息体)。 包尾附**裁剪回显**两段:字段级=被 aiContext 挡掉的字段名与原因;来源级=omittedSources(未绑定跳过的库、出场无关未选的卡数,原因对齐 `not_authorized`/`not_relevant`/`token_budget` 枚举)。 5. 回显落盘:`works/<书>/评审/上下文-第NNN章-<用途>.md`(运行噪音,gitignore 已挡,不提交)。