1实现原理 · 为什么它能做到
它是一个‘续接编排器’,本体零脚本零文件操作:全部能力来自 SKILL.md 的流程纪律,第一步强制先调同仓的 daymade-claude-code:read-claude-code-history 拿‘verified read receipt’,未拿到前禁止任何项目改动。
Invoke `daymade-claude-code:read-claude-code-history` for the exact Session. Ask that Skill for a chronological evidence briefing, not separate “last user” and “last assistant” buckets.
read receipt 有固定内容清单(Session ID/项目、来源与时间覆盖、compaction 边界、每条保留的人类请求、end reason、未决调用、动过的文件、显式缺口),缺口可能含目标时要求用 reader 的 full mode 重读;身份/血统不明即停。
If identity, ancestry, or authorship is unresolved, stop; continuing from a guessed Session is worse than asking for the missing evidence.
第二步把证据压缩成 7 字段‘续接契约’表(原始业务目标/当前显式请求/已完成/未完成/用户纠错/可用资产/下一步直接动作),每字段都要求独立证据,‘继续’这类提示词本身不算规格。
| Next direct action | One action whose success visibly reduces the unfulfilled business result |
第三步与现实对齐:读目标项目当前 AGENTS.md/CLAUDE.md 与权威状态(历史指令可能过期),核对 cwd/分支/工作树,验证历史里的写入/提交/后台任务是否真的落地——transcript 记录的是尝试。
A transcript records attempts as well as successes.
执行门禁是目标缩减测试:每次改向先问‘If this succeeds, which original unfulfilled result becomes smaller?’,答不上来的分支记成提案返回主线;并明令禁用 claude --resume/--continue。
Before changing direction, ask mechanically: “If this succeeds, which original unfulfilled result becomes smaller?”
收尾按契约汇报:Recovered goal / Executed / Now complete / Remaining / Not repeated,且禁止在只完成上下文提取或流程步骤时说‘continued successfully’。
Do not say “continued successfully” when only context extraction or a process step completed; the business result is the completion unit.
2核心能力
3外部依赖
| 类型 | 依赖 |
|---|---|
| cli | claude(宿主 CLI,明确禁止 --resume/--continue) |
| skill | read-claude-code-history(同仓兄弟技能,读本地会话历史) |
4风险提醒 风险提醒:蓝色 · 知晓即可
- 强依赖兄弟 reader 技能 — 证据质量完全取决于 read-claude-code-history 的解析正确性;reader 出错则契约重建建立在错误历史上
- 历史内容含敏感数据 — 会把过去完整会话(可能含密钥/机密)重新读入上下文;在共享/审计环境下需注意
- 无法机械自证‘完成’ — 业务结果完成与否最终靠 agent 判断 + 用户确认,SKILL 只能约束流程不能保证判断正确
- 历史注入文本风险 — 旧会话若被污染(用户曾粘贴不可信指令),重读时可能影响当前 agent;SKILL 以契约为准部分缓解,非完全免疫
5第二遍独立确认
- [ok] 无脚本/无网络/无凭证 — 目录仅 SKILL.md;内容不含任何命令执行或网络指令
- [ok] 引用的兄弟技能存在 — read-claude-code-history / continue-codex-work 均在 daymade-claude-code/ 下有 SKILL.md
- [ok] read receipt 门禁是真实前置(非可选) — Step 1 标题 Obtain a verified read receipt;Do not act until the receipt states
- [ok] 功能声明 vs 能力相符(不夸大) — 宣称‘continues work only after history read and reconciled’——SKILL 全文严格围绕该承诺,无越界声称
- [ok] 本技能不自己解析历史 — 解析/搜索全部委托 read-claude-code-history(含 full mode 重读),与目录内无代码事实一致
6结论
8c7c7550b0a7ecaf…d5c4678cb5