跳到正文
Skillpedia
智能体8.2k · #12530

coordinator-mode

它能做什么

这项技能让你的 AI 扮演协调者。它把大型工作拆成几部分,分配给帮手智能体,再合并它们的结果。适合能从并行工作中受益的复杂项目。

适用场景

  • ✓当任务大到需要拆成单独的调研和搭建步骤时。
  • ✓当你希望多个帮手智能体并行工作,最后得到一个合并结果时。
  • ✓当工作中既有可以同时进行的阅读任务,又有必须按顺序完成的修改任务时。

技能链接

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/coordinator-mode/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请把这次迁移拆成几部分,让帮手分别调研各个领域,然后给我一份合并后的计划。”

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

工作原理

协调者拆分工作,并行执行只读的调研,按安全的顺序进行修改,并在汇报前检查合并后的结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Coordinator Mode — Multi-Agent Orchestration

Distilled from production-proven coordinator patterns. Transforms sequential agent chains into intelligent parallel orchestration.

Overview

The Coordinator is a specialized orchestration mode where you become the conductor — decomposing complex tasks into worker subtasks, dispatching them in parallel where safe, and synthesizing results into cohesive output.

You are NOT a worker. You are the coordinator. Your job is to think, plan, delegate, and synthesize — not to write code directly.


Coordinator Lifecycle

User Request
    ↓
1. DECOMPOSE — Break task into worker subtasks
    ↓
2. CLASSIFY — Mark each subtask: Research | Implementation | Verification
    ↓
3. DISPATCH — Launch workers (parallel for reads, sequential for writes)
    ↓
4. MONITOR — Track worker completion notifications
    ↓
5. SYNTHESIZE — Combine results into unified response
    ↓
6. VERIFY — Ensure completeness before reporting to user

Phase-Based Workflow

Phase Purpose Concurrency Worker Type
Research Gather information, explore codebase ✅ Fully parallel Read-only agents
Synthesis Analyze findings, plan approach ❌ Coordinator only No workers
Implementation Make changes to code/files ⚠️ Sequential per file set Write-capable agents
Verification Test, lint, validate changes ✅ Parallel (independent) Test/security agents

🔴 Rule: NEVER skip the Synthesis phase. Research → direct Implementation = poor results.


Concurrency Rules

Safe to Parallelize

  • ✅ Multiple agents reading different files
  • ✅ Security audit + performance audit (read-only)
  • ✅ Test runner + linter (independent)
  • ✅ Exploring different directories

Must Be Sequential

  • ❌ Two agents writing to the same file
  • ❌ Implementation that depends on another agent's output
  • ❌ Database migration + code that uses the new schema
  • ❌ API change + frontend that consumes the API

Worker Prompt Writing Guide

🔴 The Golden Rule: Never Delegate Understanding

❌ WRONG: "Based on your findings, fix the bug"
❌ WRONG: "Based on the research, implement it"
❌ WRONG: "Look at the code and do what's needed"

✅ RIGHT: "The bug is in src/auth/jwt.ts line 45 — the token expiry
          check uses `<` instead of `<=`, causing off-by-one failures
          at exactly the expiry time. Change line 45 from
          `if (now < expiry)` to `if (now <= expiry)`"

Why: Phrases like "based on your findings" push synthesis onto the worker instead of doing it yourself. Write prompts that prove YOU understood — include file paths, line numbers, what specifically to change.

Writing Effective Worker Prompts

Brief the worker like a smart colleague who just walked into the room:

  1. Explain what you're trying to accomplish and why
  2. Describe what you've already learned or ruled out
  3. Give enough context about the surrounding problem for judgment calls
  4. Be specific about scope: what's in, what's out, what another agent handles
  5. State the output format you expect ("report in under 200 words")

Prompt Templates

Research Worker

Investigate [specific question] in [file/directory scope].
Context: We're trying to [goal] because [reason].
I've already checked [what you checked] and found [what you found].
Report: List [specific deliverable]. Under 200 words.

Implementation Worker

Modify [specific file(s)] to [specific change].
Context: [Why this change is needed].
The current code at [file:line] does [X], change it to [Y].
Constraints: Don't touch [out-of-scope files]. Another agent handles [related area].
Verify: [How the worker should confirm success].

Verification Worker

Verify that [specific change] works correctly.
Run: [specific commands].
Check: [what success looks like].
Report: Pass/fail with details on any failures.

Fork Semantics

When to Fork (vs. Spawn Fresh Agent)

Scenario Action Why
Open-ended research question Fork (omit agent type) Fork inherits context, shorter prompt
Independent parallel research Fork multiple in one message Each fork shares cache
Specialized domain work Spawn (specify agent type) Fresh specialist starts clean
Second opinion on your work Spawn Independent perspective

常见问题

协调者自己会写代码吗?

技能说明,协调者负责规划、分派和合并结果,而不是直接写代码。

什么时候会并行执行任务?

调研和阅读类任务可以并行,而修改同一文件的任务需要依次进行。

小任务也需要它吗?

不需要。它针对复杂任务,只有多个智能体确实带来价值时才有用。

详情

作者的原始描述

Advanced multi-agent orchestration with parallel workers, synthesis protocols, and coordinator lifecycle. Use when complex tasks require multiple agents working in parallel with intelligent result synthesis.

repo: vudovn/ag-kit

热度

GitHub 星标
8.2k
排名
#12530
许可证
MIT
更新时间
2026/10/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能