Skip to content

orchestrator

Type Skill
Plugin awl-general · v0.0.51
Invoke /awl-general:orchestrator
Source plugins/awl-general/skills/orchestrator/SKILL.md

Orchestrate implementation using parallel subagents or agent teams. Use when implementing plans, features, or multi-file changes.

Core Principle: This context window is for orchestration ONLY. Offload ALL work to subagents or team members.

Choose orchestration mode based on task complexity:

Condition Mode
Independent tasks, no cross-talk needed Subagents (parallel Task calls)
Workers need to coordinate or share findings Agent Team (TeamCreate workflow)
< 3 tasks total Subagents (team overhead not worth it)
Cross-layer work (frontend + backend + tests) Agent Team

Default to subagents unless coordination is clearly needed.


Execute stages in order. Parallelize within stages. Use the Task tool to spawn agents — pick the subagent_type that best fits each job from the available agent types (see Task tool description for the full list).

Spawn parallel Task agents per file/component. Write detailed prompts with:

  • Exact file paths to create/modify
  • Full requirements and acceptance criteria
  • Any relevant context (existing patterns, types, interfaces)

Spawn all independent implementation tasks in a single message for maximum parallelism. Wait for all to complete before next stage.

Single agent to verify the build passes. Fix any compilation/type errors before proceeding.

Spawn parallel agents per test scope. Each agent writes tests for one component/module.

Single agent reviews all changes. Address any critical findings.

Single agent verifies plan completeness — checks each plan item against the codebase.

Only if code is complex or reviewer flagged issues.


Use when tasks require inter-agent coordination, cross-layer work, or when the user explicitly requests a team/swarm.

  1. TeamCreate — initialize team with name and description
  2. TaskCreate × N — define ALL work units upfront
    • Write detailed descriptions — teammates read these as their spec
    • Set dependencies with addBlockedBy where needed
  3. Task × N — spawn teammates with team_name parameter
    • Each teammate gets a full context window
    • Use model: "sonnet" for teammates to optimize cost (lead stays on opus)

Each teammate spawned via Task should receive:

You are a teammate on team "{team_name}". Your role: {role}.
Check TaskList for available tasks. Claim unblocked tasks by setting yourself as owner.
When done, mark completed and check TaskList for next work.
Use SendMessage to report findings or ask for help.

The lead (you) monitors progress:

  • Teammates auto-claim tasks from shared TaskList
  • Messages from teammates arrive automatically
  • Assign tasks with TaskUpdate if teammates need direction
  • Use SendMessage for direct coordination
  1. SendMessage({ type: "shutdown_request" }) to each teammate
  2. Wait for all shutdown_response approvals
  3. TeamDelete()

  • Never read/write files directly — delegate to agents/teammates
  • No git operations — never commit, push, or perform any git actions
  • Maximize parallelism — spawn multiple agents when tasks are independent
  • Detailed prompts — include all requirements in the prompt for clarity
  • Report progress — summarize each stage completion to the user
  • Handle failures — if agent fails, spawn replacement with error context
User: "Implement the login feature from the plan"
Orchestrator:
1. Spawn 3 implementation agents in parallel (single message):
- LoginViewModel
- LoginScreen
- AuthRepository
2. Wait for completion
3. Spawn agent to verify build
4. Fix any issues
5. Spawn 2 test agents in parallel
6. Spawn review agent
7. Spawn agent to verify plan completeness
8. Report final status
User: "Use a team to build the checkout feature"
Orchestrator:
1. TeamCreate("checkout-feature")
2. TaskCreate: backend API, frontend UI, integration tests, e2e tests
3. Set dependencies: tests blocked by implementation
4. Spawn 3 teammates: backend-dev, frontend-dev, qa-engineer
5. Monitor progress via automatic messages
6. When all tasks complete: shutdown teammates, TeamDelete
7. Report final status