
Description
Coordinate up to three 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.
SKILL.md
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:
- 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.
- Spawn one to three named investigation teammates with
read_only: true. Do not passmodel; use the session-default model unless the selected agent definition explicitly overrides it. - Assign tasks and let teammates collaborate through
send_messageand the shared task list. Send targeted follow-ups when evidence conflicts, a task needs clarification, or a result is incomplete. - 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:
- Finish the parallel investigation first.
- Send each investigation teammate a
shutdown_request. Once shutdown is pending, they are excluded from automatic task assignment. - Call
enter_worktreeonce and keep the returned path. - Create the implementation task, then spawn exactly one named writer with
subagent_type: "general-purpose"andworking_dir: <path>. Do not setread_onlyfor this teammate. - Give the writer the accepted investigation evidence and require all changes to stay inside the worktree.
- Review and verify the worktree result. The leader alone decides whether and how to integrate it into the current branch.
- 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, send each still-active teammate a shutdown_request, 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 and no more than three for this workflow.
- 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.
More skills from the qwen-code repository
View all 11 skillsbatch
execute parallel batch operations on files
Jul 20AutomationConcurrencycua-driver
drive native GUI applications via MCP
Aug 9AccessibilityBrowser AutomationDesktopMCPdataviz
design and validate data visualizations
Jul 16ChartsDashboardsData Visualizationextension-creator
create Qwen Code extensions
Jul 16CodingDocumentationPlugin Developmentloop
run scheduled or self-paced prompt loops
Jul 16AutomationProductivitySchedulingnew-app
build new applications from scratch
Jul 16EngineeringPrototypingWeb Development
More from Qwen
View publisherqc-helper
provide Qwen Code usage and configuration support
qwen-code
Jul 16ConfigurationDocumentationReferencereview
review code for quality and security
qwen-code
Aug 15Code ReviewSecuritysimplify
clean up and simplify code changes
qwen-code
Jul 20Code AnalysisEngineeringPerformancestuck
diagnose and debug stuck Qwen Code sessions
qwen-code
Jul 16DebuggingEngineeringPerformanceopen-computer-use
configure Open Computer Use MCP server
open-computer-use
Jul 16AutomationCLIDesktopMCP