Files
writing-agent/docs/creation-playbook.md
2026-07-10 08:31:27 +08:00

2.4 KiB
Raw Blame History

创作流程指南Creation Playbook

0. 内容在哪

流程定义在 skill 包里orchestrator manifest + workers/*/SKILL.md)。本文只保留概念。

写新包 → skill-design-guide.md → 新建 skills/.../orchestrator.md


1. 定位

Orchestrator 包     能力库 + manifest静态
黑板 tag            一次 Session 的实参(动态)
Book                跨 Session过程、资产、游玩
管什么
运行相位 idle / running / waiting_user — 系统在等什么
业务 stage design(实例化)→ play(运行)→ done
Agent tool loop 内 invoke 哪个 skill
Skill 读哪些 tag、写哪些 tag、上下文怎么拼
Book 长期存储,见 book-storage.md

2. 启动

skill_selection     选 orchestrator 包
intake              启动询问(最小信息)
design stage        agent 按需 invoke instantiate skill
declare ready       进入 play
play stage          用户输入 → agent burst → run skill
done                归档 Book

startupCompleted / instanceReadyagent 声明 + 程序校验「当前 run_skill清单 可运行」,非固定 prerequisite 打勾。


3. Agent 与 Runtime

Agent Runtime
决定 invoke 哪个 skill、何时 ask_user/finish
拼接上下文 只用 read_blackboard 辅助决策 assembleWorkerContext
写黑板 否(边界 tool 驱动 worker 写) 校验 outputTags 后写入

Agent 不指定 inputTags。见 context-assembly.md


4. Tool loop burst

每次用户硬事件后agent 进入 running,在 burst 上限内 多轮 tool碰到边界 tool 或需用户则停。
tool-contracts.mdruntime-state-machine.md


5. 角色卡(一种 Book 形态)

创建过程    designTrace + 对话 → CardBookdesign
创建结果    角色卡.确认稿 等 → CardAsset可导入资产
游玩过程    playTrace + runState → PlayBook
游玩存档    PlaySnapshot

不拆独立 author/play 包;见 book-storage.md §角色卡。


6. 相关文档

文档 关系
architecture.md 总览
skill-design-guide.md 设计方法
context-assembly.md 上下文拼接
tag-blackboard.md 标签