agentleFS
casper7995casper7995/ai-agent-solution-architect/skills/agent-team-orchestration/SKILL.md

agent-team-orchestration

Skill1 starsChanged 9 months agoMITView on GitHub

Use when a task has 3+ independent workstreams, cross-layer changes, or multi-angle research that would benefit from parallel sub-agents with coordinated quality gates

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. vsriram11/wealthtrajectory★ 8same name
    2. GPTtang/skill-atlas★ 4same name
    3. edisonzerolam/openclaw-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If poor fit: explain why, suggest the better approach, and stop.

    line 57
  2. Distinctive:

    Only override model when the task specifically benefits from it

    line 77
  3. Distinctive:

    Before dispatching, present and wait for user confirmation:

    line 81
  4. Very specific:

    /deslop runs at every gate: After the code reviewer finishes, the lead runs /deslop on all files modified since the last gate to catch …

    line 106
  5. Distinctive:

    After each major implementation milestone (e.g., "backend API complete", "frontend wired up")

    line 108
  6. Distinctive:

    Before any merge, commit, or PR creation

    line 109
  7. Distinctive:

    When switching from one workstream to another

    line 110
  8. Distinctive:

    Create fix tasks and complete them before moving past the gate

    line 115
  9. Very specific:

    Run final /deslop across all modified files

    line 141
  10. Distinctive:

    Never dispatch two sub-agents to edit the same file — break ownership clearly

    line 148
  11. Distinctive:

    If unsure whether a task needs parallel agents, it probably doesn't

    line 150

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Team Orchestration

Overview

Evaluate whether parallel sub-agents fit the task, design workstreams, execute with quality gates.

Core principle: Sub-agents add coordination overhead and token cost. Only use them when parallelism genuinely saves time over single-session work.

When to Use

digraph fitness {
    "Task received" [shape=diamond];
    "3+ independent workstreams?" [shape=diamond];
    "Cross-layer changes?" [shape=diamond];
    "Multi-angle research?" [shape=diamond];
    "Use agent team" [shape=box];
    "Single session is better" [shape=box];

    "Task received" -> "3+ independent workstreams?";
    "3+ independent workstreams?" -> "Use agent team" [label="yes"];
    "3+ independent workstreams?" -> "Cross-layer changes?" [label="no"];
    "Cross-layer changes?" -> "Use agent team" [label="yes"];
    "Cross-layer changes?" -> "Multi-angle research?" [label="no"];
    "Multi-angle research?" -> "Use agent team" [label="yes"];
    "Multi-angle research?" -> "Single session is better" [label="no"];
}

Good fit:

  • 3+ independent workstreams that can run in parallel
  • Cross-layer changes (frontend + backend + tests)
  • Research/review tasks with multiple angles
  • Debugging with competing hypotheses
  • Large refactors where different modules can be owned by different agents

Poor fit — single session instead:

  • Sequential tasks with many dependencies
  • Changes to a single file or tightly coupled files
  • Simple bug fixes or small features
  • Coordination overhead exceeds the benefit

Step 1: Evaluate Fit

Make the decision explicit before proceeding:

TEAM ASSESSMENT: [Good fit / Marginal / Poor fit]
Reason: [1-2 sentences]

If poor fit: explain why, suggest the better approach, and stop.

Step 2: Design Workstreams

Roles

RoleWhen to Include
code-reviewerAlways. Reviews at every quality gate. Use a code-review-focused agent (e.g., a general-purpose agent with reviewer instructions, or a dedicated code-reviewer agent type if your setup includes one).
implementerWriting new code or modifying existing code
researcherExploring codebase, investigating approaches, reading docs
testerWriting tests, validating behavior
plannerComplex design decisions, system-wide implications

For implementer/researcher/tester/planner, use the default general-purpose subagent type.

Model Selection

  • fast: Mechanical tasks — file searches, pattern matching, formatting checks, simple validations
  • inherit (default): Standard implementation, code review, testing, research
  • Only override model when the task specifically benefits from it

Present the Plan

Before dispatching, present and wait for user confirmation:

PROPOSED WORKSTREAMS:
- Lead (me): Coordination, task management, synthesis
- code-reviewer: Reviews at quality gates
- [role]: [purpose]

TASK BREAKDOWN:
1. [task] -> assigned to [role]
2. [task] -> assigned to [role]

QUALITY GATES:
- Gate 1: After [milestone] -> code-reviewer + /deslop
- Gate 2: After [milestone] -> code-reviewer + /deslop
- Final: Before merge/completion -> full review + /deslop

Step 3: Quality Gates

Quality gates are mandatory checkpoints where work pauses for review.

Gate Rules

  1. Code reviewer runs at every gate. Dispatch a code-review agent with all changes since last gate. It checks for bugs, style violations, CLAUDE.md compliance, and correctness.
  2. /deslop runs at every gate. After the code reviewer finishes, the lead runs /deslop on all files modified since the last gate to catch AI-generated slop patterns.
  3. Gate placement:
    • After each major implementation milestone (e.g., "backend API complete", "frontend wired up")
    • Before any merge, commit, or PR creation
    • When switching from one workstream to another
    • Minimum: one mid-point gate and one final gate
  4. Gate failures block progress.
    • Critical/High issues must be fixed before proceeding
    • Medium issues should be fixed unless the user explicitly defers them
    • Create fix tasks and complete them before moving past the gate

Gate Flow

[Sub-agent completes milestone]
    -> Lead pauses new dispatches
    -> Dispatch code-reviewer with file list + diff context
    -> Run /deslop on all files modified since last gate
    -> If issues found: create fix tasks, complete them, re-dispatch reviewer
    -> If clean: proceed to next phase

Step 4: Execute

  1. Create todos with all tasks, including quality gate tasks as explicit items
  2. Dispatch sub-agents — one call per role/task
    • Pass ALL necessary context in the prompt (sub-agents are one-shot — they start fresh with no access to this conversation)
    • Include: relevant file contents, git diff, requirements, constraints, expected output format
    • Dispatch independent workstreams in a single message (parallel execution)
    • Dispatch dependent workstreams sequentially after prior results
  3. Synthesize results — review each sub-agent's output before dispatching the next wave
  4. Enforce gates — dispatch code-reviewer at every gate checkpoint

Step 5: Wrap Up

  1. Run final /deslop across all modified files
  2. Dispatch a final code-reviewer for holistic review of all changes
  3. Present summary: what was accomplished, deferred issues, next steps

Reminders

  • Sub-agents have no access to this conversation — give them rich context in prompts
  • Never dispatch two sub-agents to edit the same file — break ownership clearly
  • Code-reviewer should NOT get implementation tasks — keep it independent
  • If unsure whether a task needs parallel agents, it probably doesn't
  • Pass file contents directly in prompts — don't rely on sub-agents finding files

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.