本 skill 是当你作为编排器 profile(整个工作就是路由)时的深入手册。
当以下任一为真时创建看板任务:
如果这些都*不*适用——这是一个小型一次性推理任务——改用 delegate_task 或直接回答用户。
你的职位描述说"路由,不要执行"。执行该规则的约束:
| Profile | 职责 | 典型工作区 |
|---|---|---|
researcher | 阅读来源、收集事实、撰写发现 | scratch |
analyst | 综合、排名、去重。消费多个 researcher 输出 | scratch |
writer | 以用户的声音起草文字 | scratch 或 dir: |
reviewer | 阅读输出、留下发现、把关审批 | scratch |
backend-eng | 编写服务器端代码 | worktree |
frontend-eng | 编写客户端代码 | worktree |
ops | 运行脚本、管理服务、处理部署 | dir: |
pm | 编写规格、验收标准 | scratch |
如果目标模糊,提出澄清问题。问很便宜;派发错误的舰队很昂贵。
创建任何东西之前,大声草绘图表。例如"分析是否应迁移到 Postgres":
T1 researcher research: Postgres cost vs current
T2 researcher research: Postgres performance vs current
T3 analyst synthesize migration recommendation parents: T1, T2
T4 writer draft decision memo parents: T3
t1 = kanban_create(
title="research: Postgres cost vs current",
assignee="researcher",
body="Compare estimated infrastructure costs over a 3-year window.",
)["task_id"]
t2 = kanban_create(
title="research: Postgres performance vs current",
assignee="researcher",
body="Compare query latency, throughput at our expected data volume.",
)["task_id"]
t3 = kanban_create(
title="synthesize migration recommendation",
assignee="analyst",
body="Read the findings from T1 (cost) and T2 (performance).",
parents=[t1, t2],
)["task_id"]
t4 = kanban_create(
title="draft decision memo",
assignee="writer",
body="Turn the analyst's recommendation into a 2-page memo for the CTO.",
parents=[t3],
)["task_id"]
parents=[...] 控制提升——子任务保持在 todo 直到每个父任务达到 done。
kanban_complete(
summary="decomposed into T1-T4: 2 researchers parallel, 1 analyst, 1 writer",
metadata={"task_graph": {...}},
)
扇出 + 扇入(研究 → 综合):N 个 researcher 任务无父任务,一个 analyst 任务以它们全部为父任务。
带关卡的流水线:pm → backend-eng → reviewer。每个阶段的 parents=[previous_task]。
同 profile 队列:50 个任务,全部分配给 translator,彼此无依赖。Dispatcher 序列化处理。
人工参与:任何任务可以 kanban_block() 等待输入。Dispatcher 在 /unblock 后重新派发。
重新分配 vs. 新任务。如果 reviewer 用"需要更改"阻塞,创建一个从 reviewer 任务链接的新任务——不要用严厉的目光重新运行同一个任务。
租户继承。如果你的环境中设置了 HERMES_TENANT,在每个 kanban_create 调用上传递 tenant=os.environ.get("HERMES_TENANT")。
评论区