skills/meta-subagent-orchestration/SKILL.md
Decide whether and how to use authorized sub-agents, then coordinate delegated work while preserving the main agent's context. Use when the user asks for orchestration, parallel agents, delegation, background workers, context isolation, or when another skill needs delegated research, review, implementation, or verification. Owns host-policy checks, delegation packets, non-overlap, report verification, and stop rules. Do not use to bypass tool policy, infer user authorization, or add coordination overhead to simple single-threaded tasks.
npx skillsauth add plimeor/agent-skills meta-subagent-orchestrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to coordinate sub-agents without turning the main agent into a duplicate worker.
The goal is not to maximize the number of sub-agents. The goal is to protect the main agent's context and attention while still completing the user's requested work. Delegate bounded work that can run independently, then integrate the returned evidence.
This skill is tool-neutral. "Sub-agent" may mean a worker, explorer, background agent, forked agent, delegated session, agent thread, or any equivalent capability provided by the current coding or agent tool.
This skill owns reusable sub-agent policy. Other skills may state that independent evidence, review, or verification would be useful, but they should defer authorization checks, delegation packet shape, non-overlap rules, report handling, and stop conditions to this skill.
Multi-agent work has real overhead: duplicated setup context, coordination messages, report synthesis, and more failure modes. Use sub-agents when they buy one of three things:
If none of those apply, prefer a single agent.
Follow the current host and tool policy before applying any orchestration rule in this skill.
spawn, message, resume, or wait operation, classify delegation status as explicitly authorized, host-authorized, or not authorized.The main agent is the orchestrator and integrator.
It owns:
Sub-agents own:
Do not delegate the same task and then redo it locally while the sub-agent is still responsible for it. That defeats the purpose of context isolation and parallelism.
The main agent may verify returned work, but verification starts after the relevant report exists or at an explicit checkpoint. Until then, the main agent works only on non-overlapping tasks or waits.
Use this skill to decide whether to delegate, and to coordinate delegation only when the current host policy permits it. Delegation is worth considering when at least one of these is true:
Strong signals:
Do not use sub-agents when:
If the work needs shared evolving knowledge, use an existing shared artifact with explicit write rules, or ask before creating one.
Choose the lightest coordination pattern that fits.
Treat these as coordination patterns, not permission to create infrastructure. Use existing host features first. Create queues, task boards, state files, or persistent agents only when they are authorized and clearly inside the requested work.
| Situation | Use | |---|---| | Short, focused subtasks with clear outputs | Orchestrator-subagent | | Independent long-running slices that benefit from retained local context | Authorized agent team or persistent worker | | Event-driven pipeline with many possible routes | Existing message bus or queue | | Collaborative research where agents must build on each other's findings | Authorized shared state with write rules | | Quality-critical output with explicit criteria | Generator-verifier |
If using orchestrator-subagent and the same worker needs repeated follow-ups, consider resuming that worker or switching to an agent-team pattern instead of repeatedly spawning fresh agents with duplicated context.
If using shared state, define termination conditions before starting: time budget, max rounds, no-new-findings threshold, or a designated finisher. Without a stop rule, shared-state agents tend to duplicate work or loop.
The current agent is already the orchestrator. Do not create a ledger by default just because this skill is active.
Most tasks only need a brief mental model, a short visible orchestration note, or the tool's existing task list. A separate coordination record is useful only when it prevents confusion that would otherwise cost more context than the record itself.
Use a written coordination record when:
Do not use a written coordination record when:
If a record is needed, keep it compact. Prefer an in-thread note or existing task-list feature unless the user authorized a durable artifact:
Goal:
[Requested outcome.]
Constraints:
[User constraints, boundaries, non-goals.]
Critical path:
[What the main agent owns next.]
Delegations:
- [Agent/task]: scope, ownership, status, dependency, stop condition
Evidence returned:
- [Only decisions, pointers, and key findings; no raw dumps.]
Conflicts or unknowns:
- [Items needing integration or follow-up.]
Next decision:
[The next main-agent decision after reports return.]
Update the record only at delegation and report-return checkpoints. Do not use it as an excuse to copy sub-agent transcripts into the main context.
Before spawning, resuming, or assigning any sub-agent, identify:
Keep the immediate blocker local. Delegate sidecar work only when the main agent can make progress without needing the result immediately.
Split work according to the context each agent needs.
Good partitions:
Bad partitions:
Each sub-agent gets a concrete task packet. Include only the context it needs.
Objective:
[One concrete outcome.]
Context:
[Minimal background, user constraints, relevant decisions.]
Scope:
- Owns: [files/modules/sources/questions]
- May inspect: [paths/sources]
- Must not edit: [paths/sources or "anything outside ownership"]
Tool and permission boundary:
[Read-only / allowed commands / allowed tools / approval requirements.]
Execution rules:
- You are not alone in this workspace.
- Do not revert or overwrite work by others.
- Keep changes minimal and consistent with existing patterns.
- If blocked, report the blocker instead of expanding scope.
- Return distilled findings, not raw transcripts or large file dumps.
Verification:
[Commands, checks, source requirements, or "read-only investigation".]
Return format:
- Summary
- Decision-relevant findings
- Evidence observed
- Source pointers or file paths
- Files changed, if any
- Commands or sources checked
- Risks, conflicts, or unknowns
- Recommended next step
Stop condition:
[What counts as done, plus any time/depth limit.]
For code edits, assign disjoint ownership. If disjoint ownership is impossible, use read-only agents first and keep edits local to the main agent.
For verifier agents, include a rubric. A verifier asked only to "check if this is good" creates the appearance of quality control without useful signal.
After delegating, the main agent must not start doing the same subtask locally while the sub-agent is still running.
Allowed while waiting:
Not allowed while waiting:
Verification is still required, but it happens after the sub-agent returns or at an explicit checkpoint. The orchestrator should verify the returned report, not consume context recreating the entire delegated process in parallel.
If there is no non-overlapping useful work, wait. Waiting is better than polluting the main context with duplicated exploration.
Treat sub-agent output as evidence, not truth.
Check:
Use proportional verification:
If a report is weak, ask for a focused follow-up. Do not silently redo the whole task unless the sub-agent failed and the work is necessary for completion.
Set limits before loops start:
Stall signals:
When stalled, update the ledger, narrow the task, ask one focused follow-up, or take the work local if it is now on the critical path. Do not keep spawning equivalent agents.
Integrate only what satisfies the user's requested work.
Before final response:
Use for codebase orientation, research, or diagnosis.
Require each explorer to return:
Use for implementation only when ownership is clean.
Prefer read-only exploration before parallel edits when ownership is uncertain.
Use when quality risk is high.
The verifier must have a concrete rubric. "Check if this is good" is not enough.
Limit verifier loops. If the generator cannot address the same feedback after the agreed limit, escalate, return the best result with caveats, or ask the user for a decision.
Use when multiple agents need a durable handoff without dumping context into the main conversation.
Watch for these failure modes:
When this skill triggers, keep the visible orchestration note short unless the user asks for a full plan:
Orchestration:
- Delegation status: [explicitly authorized / host-authorized / not authorized, with brief reason]
- Main thread: [critical-path work kept local]
- Delegated: [sub-agent tasks and ownership]
- Non-overlap: [what the main agent will not duplicate while agents run]
- Ledger: [where status/evidence will be tracked, if any]
- Integration: [how reports will be checked and merged]
development
Set up, resume, or repair a compact active execution workbench for long-horizon, multi-session or checkpointed work. Use when a task needs durable handoff, unattended iteration, human gates, auditable evidence, or active-vs-archive routing that keeps a current packet separate from stale historical context. Do not use for one-session tasks, ordinary plans/reviews/audits, one-session bug fixes, direct code edits, or simple docs cleanup; complete those directly.
tools
Decide whether and how to use authorized sub-agents, then coordinate delegated work while preserving the main agent's context. Use when the user asks for orchestration, parallel agents, delegation, background workers, context isolation, or when another skill needs delegated research, review, implementation, or verification. Owns host-policy checks, delegation packets, non-overlap, report verification, and stop rules. Do not use to bypass tool policy, infer user authorization, or add coordination overhead to simple single-threaded tasks.
development
Use before finalizing a non-trivial answer, recommendation, review, or decision to reconsider it and raise its quality, especially when shallow reasoning, context inertia, false framing, overconfidence, unfit analogy transfer, or an obvious-but-missed defect could distort the result. Trigger especially before applying external evidence, familiar frameworks, or comparisons to the user's specific request, and when the user asks to reconsider, double-check, take a second look, or sanity-check an answer.
tools
Route durable rules and context to the right layer — task, project, skill, tooling, hooks, MCP, or global. Use for global rules files (~/.claude/CLAUDE.md, global AGENTS.md), repo-local AGENTS.md/CLAUDE.md, task context packs, hook placement (Codex/Claude Code settings.json), collaboration friction diagnosis, and rule-placement decisions.