Install
openclaw skills install agents-efficient-workflowCoordinate multiple agents with minimal token waste by using direct agent-to-agent spawning and file-based handoffs. Use when work should be split across spe...
openclaw skills install agents-efficient-workflowUse the narrowest possible coordination path. 优先使用最窄、最直接的协作链路。
Prefer targeted spawn + local file handoff over broad chat relays. 优先选择 定向 spawn + 本地文件交接,而不是把大量上下文反复塞进聊天窗口。
That means / 这意味着:
Use this pattern when / 在这些情况下使用:
Do not involve unrelated agents. 不要拉入无关 agent。
Prefer sessions_spawn or another direct agent-to-agent path when:
优先使用 sessions_spawn 或其他直接 agent-to-agent 路径,当:
Guideline / 建议:
Before asking another agent to continue, write a markdown handoff file in the shared handoff directory. 在让另一个 agent 接手前,先在共享交接目录写好 Markdown 交接文件。
Default shared directory / 默认共享目录:
~/.openclaw/shared-handoffs/Include only the information the next agent needs / 只写下一个 agent 真正需要的信息:
If the output is substantial, save files plus a short index or summary instead of pasting the full content into chat. 如果产物很多,优先保存文件并附短摘要,不要把全文粘进聊天框。
When handing off through chat, do not resend the whole context if it already exists locally. 如果本地已经有完整上下文,就不要在聊天中再发一遍。
Preferred message shape / 推荐消息结构:
Bad pattern / 不推荐:
Good pattern / 推荐:
Use markdown and make scanning easy. 使用 Markdown,保证能快速扫读。
Recommended sections / 推荐结构:
# Task## Goal## Done## Key context## Remaining work## Risks / caveats## Next agent## Files to readIf needed, read references/handoff-template.md and follow that format.
需要时读取 references/handoff-template.md 并按模板填写。
When both chat and local files exist, prefer the local handoff file for detailed context. 当聊天与本地文件同时存在时,详细上下文以本地交接文件为准。
Use chat for coordination. Use files for durable state. 聊天用于协调;文件用于持久状态。
Direct spawn narrows communication to the agents that matter. File handoffs avoid repeatedly pasting the same context into chat. Together, this cuts unnecessary token usage.
定向 spawn 让沟通只发生在真正相关的 agents 之间。 文件交接避免重复粘贴同一批上下文。 两者结合,可以显著减少无效 token 消耗。
Chat relays often compress or paraphrase details away. A local handoff file preserves the exact state, decisions, and next steps, which reduces omission risk.
聊天转述很容易压缩、概括甚至漏掉细节。 本地交接文件能保留更准确的状态、决策和下一步,降低交接失真。
If work is interrupted, restarted, or transferred later, the next agent can reload the handoff file and continue quickly. 如果工作中断、重开,或稍后再转交,后续 agent 可以直接重新读取交接文件继续推进。
Suggested pattern / 建议格式:
YYYY-MM-DD_HHMM_<from>-to-<to>_<topic>.mdExample / 示例:
2026-03-13_0345_agent-a-to-agent-b_skill-publish.mdIf the next agent may misread scope, state these explicitly in the handoff file:
如果担心下一个 agent 误判范围,就在交接文件里明确写出:
If sensitive data is involved, store only what is necessary and avoid spreading secrets into extra files. 如果涉及敏感信息,只存必要内容,避免把秘密扩散到更多文件里。