coordinate
What it does
It sets up a small team of agents, where investigators only read and one writer works in its own worktree. The leader assigns tasks, checks results and delivers the final answer. It is for complex goals that benefit from parallel investigation.
When to use it
- ✓When a goal is big enough to split into several parallel investigations.
- ✓When you want independent teammates to check each other's evidence before a decision.
- ✓When code changes are needed and you want a single writer kept separate from the investigators.
Skill link
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/coordinate/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Coordinate a small team to find out why our login is slow, then have one teammate apply the fix once we agree on the cause.”
5 new skills a week. 1 minute to read.
How it works
The leader creates a shared task list, starts read-only investigators, and sends follow-ups when evidence conflicts. Only one writer edits code, in a separate worktree, after the investigation is finished.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
- 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 named investigation teammates with
read_only: true— one per workstream, and prefer three at most. Never exceed the team's configured cap, whichteam_createreports; spawning past it fails outright. 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.
- Call
request_shutdownfor each investigation teammate. 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, 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.
FAQ
Can the investigators change files?
No. Read-only teammates cannot use the shell, edit or write files, or spawn other agents.
How many teammates can I have?
Up to a team cap that the team tool reports, with three investigators as the usual maximum.
Does the leader accept every result?
No. Each result is checked against its evidence, and rejected work is reassigned.
Details
Original description by the author
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
Popularity
- GitHub stars
- 29k
- Ranking position
- #9778
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
codegraph
29kHelps your agent analyze an indexed codebase through its call graph, dependencies, dead code, hotspots and semantic search.
qwen-code-claw
29kHelps your agent hand coding tasks to Qwen Code, such as understanding a codebase, fixing bugs, refactoring code or generating a new project.
structured-debugging
29kTeaches your agent a step-by-step way to debug hard bugs: form a hypothesis, add targeted checks, test it and find the real cause before fixing.
tmux-real-user-testing
29kHelps your agent test a terminal app like a real user inside tmux, saving a step-by-step readable log with a screen snapshot of each action.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.