跳到正文
Skillpedia
智能体29k · #9778

coordinate

它能做什么

它组建一支小型智能体团队,其中调查员只能读取,一名写入者在自己的工作树中工作。负责人分配任务、检查结果并交付最终答案。适合受益于并行调查的复杂目标。

适用场景

  • ✓当目标足够大,可以拆分为多个并行调查时。
  • ✓当你希望独立的队友在做决定之前相互核对证据时。
  • ✓当需要修改代码,并希望由一名写入者与调查员分开工作时。

技能链接

https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/coordinate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/coordinate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请组织一支小团队查明我们登录速度慢的原因,等我们就原因达成一致后,由一名队友应用修复。”

每周 5 个新技能,1 分钟读完。

工作原理

负责人创建共享的任务列表,启动只读调查员,并在证据相互冲突时发送后续问题。只有一名写入者会在调查完成后,于单独的工作树中修改代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Coordinate Qwen Code Teammates

Act as the team leader. Decompose the goal, keep task ownership clear, reconcile disagreements, and deliver the final result.

Build one bounded team

When team_create is available:

  1. Create one team and one self-contained task per current investigation workstream. Do not queue an implementation task while read-only teammates are idle because tasks are auto-assigned.
  2. Spawn named investigation teammates with read_only: true — one per workstream, and prefer three at most. Never exceed the team's configured cap, which team_create reports; spawning past it fails outright. Do not pass model; use the session-default model unless the selected agent definition explicitly overrides it.
  3. Assign tasks and let teammates collaborate through send_message and the shared task list. Send targeted follow-ups when evidence conflicts, a task needs clarification, or a result is incomplete.
  4. Accept or reject each result based on its evidence. Reassign rejected work instead of silently using it.

Read-only teammates have a positive execution allowlist. They cannot use shell, edit or write files, save memory, create schedules, invoke arbitrary deferred tools, or spawn agents. This is enforced by the runtime, not only by this prompt.

Pin the only writer to a worktree

When the goal requires code changes:

  1. Finish the parallel investigation first.
  2. Call request_shutdown for each investigation teammate. Once shutdown is pending, they are excluded from automatic task assignment.
  3. Call enter_worktree once and keep the returned path.
  4. Create the implementation task, then spawn exactly one named writer with subagent_type: "general-purpose" and working_dir: <path>. Do not set read_only for this teammate.
  5. Give the writer the accepted investigation evidence and require all changes to stay inside the worktree.
  6. Review and verify the worktree result. The leader alone decides whether and how to integrate it into the current branch.
  7. Do not remove the worktree until accepted changes have been integrated or deliberately discarded.

If the checkout is not a Git repository or worktree creation fails, keep all teammates read-only and let the leader make the final change in the current checkout.

After synthesis, call request_shutdown for each still-active teammate, then delete the team.

The existing Agent View tabs show teammate conversations, messages, status, and approvals. Do not create another roster, session manager, or terminal UI.

If the Agent Team tools are unavailable, say that experimental.agentTeam must be enabled and Qwen Code restarted. Ordinary subagents are an acceptable fallback for parallel research, but describe them accurately: they report only to the leader and cannot collaborate as a team.

Keep coordination bounded

  • Use one teammate for a narrow task. Past roughly three, the leader spends more of its turn reconciling reports than doing the work, so add a fourth only when the workstreams are genuinely independent — and never past the configured cap.
  • Give every task an objective, scope, completion condition, and required evidence.
  • Default every teammate to read_only: true; add one worktree writer only when implementation is required.
  • Do not use Arena: it is for competing solutions to the same task, not collaboration on different tasks.
  • Do not claim that in-process teammates are independent PTY sessions or heterogeneous CLIs.
  • Finish implementation before running the smallest relevant verification once.

Return the outcome, material evidence or disagreements, changes made by the leader, verification, and remaining risks.

常见问题

调查员可以修改文件吗?

不可以。只读队友不能使用 shell、编辑或写入文件,也不能启动其他智能体。

我最多可以有多少个队友?

上限由团队工具报告,通常最多为三名调查员。

负责人会接受每一个结果吗?

不会。每个结果都会与其证据进行核对,不合格的工作会被重新分配。

详情

作者的原始描述

Coordinate a small team of Qwen Code teammates with enforced read-only workers, an optional worktree-pinned writer, shared tasks, peer messages, and existing Agent View tabs. Invoke explicitly with /coordinate.

repo: QwenLM/qwen-code

热度

GitHub 星标
29k
排名
#9778
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能