multi-agent-coordination

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Multi-Agent Coordination Skill

多Agent协调Skill

Use this skill to keep work synchronized between Antigravity and Claude Code.
使用本Skill可实现Antigravity与Claude Code之间的工作同步。

When to Use

使用场景

  • Starting a new session (check current handoff state)
  • Completing a task (update status and next steps)
  • Switching agents (write handoff note)
  • Logging significant decisions or actions
  • 开启新会话(检查当前交接状态)
  • 完成任务(更新状态与下一步计划)
  • 切换Agent(编写交接说明)
  • 记录重要决策或操作

Coordination File

协调文件

  • Template (public):
    multi_agent_coord.template.md
  • Working file (local):
    docs/MULTI_AGENT_COORD.md
The working file is gitignored. It contains sensitive task context that should not be public.
  • 模板(公开):
    multi_agent_coord.template.md
  • 工作文件(本地):
    docs/MULTI_AGENT_COORD.md
该工作文件已被git忽略,包含不应公开的敏感任务上下文。

Session Start Protocol

会话启动流程

  1. Read the working coordination file
  2. Check
    git status
    for any conflicts
  3. Note the current handoff state
  4. If another agent was active, acknowledge the handoff
  1. 读取工作协调文件
  2. 执行
    git status
    检查是否存在冲突
  3. 记录当前交接状态
  4. 若之前有其他Agent活跃,确认交接信息

Handoff Protocol

交接流程

When ending a session or switching agents, update the working file:
markdown
undefined
结束会话或切换Agent时,更新工作文件:
markdown
undefined

Current Handoff State

当前交接状态

Last Updated: [YYYY-MM-DD HH:MM TZ] Active Agent: [Your agent name] Status: [What you just completed] Next Steps: [What the next agent should do] Blockers: [Any issues or "None"]
undefined
最后更新时间:[YYYY-MM-DD HH:MM 时区] 活跃Agent:[你的Agent名称] 状态:[你刚完成的工作内容] 下一步计划:[下一个Agent应执行的操作] 阻塞问题:[存在的问题或“无”]
undefined

Task Queue Management

任务队列管理

Add tasks with priority:
markdown
| Priority | Task | Assigned To | Status |
|----------|------|-------------|--------|
| 1 | [High priority task] | Claude Code | in_progress |
| 2 | [Medium priority task] | Antigravity | pending |
按优先级添加任务:
markdown
| 优先级 | 任务 | 分配对象 | 状态 |
|----------|------|-------------|--------|
| 1 | [高优先级任务] | Claude Code | 进行中 |
| 2 | [中优先级任务] | Antigravity | 待处理 |

Session Logging

会话日志记录

Log significant actions:
markdown
| Date | Agent | Action | Outcome |
|------|-------|--------|---------|
| 2026-01-10 | Claude Code | Refactored auth module | Complete |
记录重要操作:
markdown
| 日期 | Agent | 操作 | 结果 |
|------|-------|--------|---------|
| 2026-01-10 | Claude Code | 重构认证模块 | 已完成 |

Conflict Resolution

冲突解决

If
git status
shows changes from both agents:
  1. Do NOT overwrite the other agent's work
  2. Run
    git stash
    to save your changes
  3. Report the conflict to Rob
  4. Wait for resolution before continuing
git status
显示两个Agent均有修改:
  1. 请勿覆盖其他Agent的工作内容
  2. 执行
    git stash
    保存你的修改
  3. 向Rob报告冲突情况
  4. 等待冲突解决后再继续操作

One Owner Rule

单一所有者规则

Only ONE agent should edit the coordination file per session. If you see recent edits from the other agent, read but don't write until handoff is complete.
每个会话仅允许一个Agent编辑协调文件。若发现其他Agent近期有编辑操作,请先阅读内容,待交接完成后再进行编写。