subagents
Shared rules for orchestrating agents that delegate work to subagents. Referenced by orchestrator, bugfix, spec-writer, pr-reviewer, and pr-resolver.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Shared rules for orchestrating agents that delegate work to subagents. Referenced by orchestrator, bugfix, spec-writer, pr-reviewer, and pr-resolver.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Orchestrates standalone or caller-batched bug fixes via implementor and reviewer subagents using TDD. Handles bugs and verified review findings sequentially, tracks them in a dated checklist, and commits each fix without disrupting a surrounding PR-resolution batch.
Resolve GitHub PR review comments from humans and Copilot, including reviews already auto-requested or in progress. Use for verified comment resolution, sequential bugfix batching, one-push CI/Copilot cycles, and SHA-aware waits that avoid stale-event loops.
Shared conventions for Go projects. Copyright boilerplate, code quality, GoConvey testing, architecture, and commands. Referenced by go-implementor, go-reviewer, and workflow skills.
Go TDD implementation workflow. References implementation-principles, go-conventions, testing-principles, and agent-conduct.
Review Go implementations against spec acceptance tests. References implementation-principles, go-conventions, testing-principles, and agent-conduct.
Shared cross-language delivery workflow and guidance for implementing the simplest sufficient solution, maximizing reuse of existing code, and avoiding speculative abstractions, dependencies, and refactors. Use when implementing or reviewing code in any language.
| name | subagents |
| description | Shared rules for orchestrating agents that delegate work to subagents. Referenced by orchestrator, bugfix, spec-writer, pr-reviewer, and pr-resolver. |
Shared conventions for orchestrating skills that launch subagents through the active harness. Read agent-conduct first.
When a skill's instructions say to launch, brief, delegate to, or review with a subagent, that is an explicit instruction to use subagents. Do not decline solely because the user's original message did not say "use subagents"; the user invoked a skill whose documented workflow requires them.
If the active harness exposes a subagent tool, use it. If no subagent tool is available, first use the harness's tool-discovery mechanism if one exists. If subagents still are not available, report that as a blocker to the calling skill instead of doing the delegated work directly.
You orchestrate: decompose work, brief subagents, check results. Delegate
all implementation, spec writing, and reviewing to subagents - do NOT do
that work yourself. You MAY run read-only verification directly (tests,
linters, git diff, git status) to check a subagent's claims before
acting on them, and you MAY edit your own orchestration artifacts
(checklists, blocker files, prompt.md notes). You do not read skill
files yourself either - pass names and paths to subagents.
Use the active harness's vocabulary and constraints.
runSubagent.runSubagent without agentName.agentName: "Explore" or any other read-only agent for work
that must edit files, write specs, or run tests.model to runSubagent; otherwise it picks one for you. Strings
must be exact, format "<Model Name> (<Vendor>)" (vendor usually
copilot).runSubagent once with
model: "__probe__" - the error lists every available model verbatim.
Cache that list.multi_agent_v1.spawn_agent.agent_type: "worker" for implementors, reviewers, spec authors,
proofreaders, phase creators, phase reviewers, PR reviewers, and any
subagent expected to edit files, write artifacts, run tests, or verify work.agent_type: "explorer" for orchestrated writing/review workflows.
It is only appropriate for a clearly read-only codebase question when the
calling skill explicitly allows read-only exploration.model unless the user explicitly asks for a different model or there
is a clear task-specific reason. Codex subagents inherit the parent model by
default.wait_agent when the orchestration step needs the result, send_input
to refine an existing live subagent, and close_agent when a subagent is no
longer needed.Agent tool, passing subagent_type.subagent_type: "general-purpose" (or "claude").
Both carry the full toolset (*), including Edit, Write, and
NotebookEdit, so they can implement, write specs, and run tests/linters.subagent_type: "Explore" or "Plan" for work that must edit
files: those agent types are missing Edit, Write, and NotebookEdit.
(They retain Bash, so a determined agent could still shell-write, but it
lacks the proper editing tools and returns diagnoses, not completed work.)model by default so the subagent inherits the parent model. When you
do set it, use a tier keyword: "opus", "sonnet", "haiku", or
"fable" (not a full model id).Agent calls in a single
response so they run concurrently; the runtime returns each result when it
finishes. Use run_in_background: true for long work you do not need to
block on - you are notified when it completes.Agent result ends with an agentId. To continue that subagent with
its context intact, use SendMessage (to: "<agentId>") if the harness
exposes it. SendMessage is not always available; when it is absent,
start a fresh Agent and summarise progress so far (see Error Handling).ToolSearch to load
its schema before calling it - this is the Claude Code tool-discovery
mechanism.Every subagent launched from an orchestrating skill must be able to edit
files and run tests unless the calling skill explicitly says the task is
read-only. Use the writable/default agent in VS Code (runSubagent without
agentName), a Codex worker (spawn_agent with agent_type: "worker"), or a
Claude Code writable agent (Agent with subagent_type: "general-purpose" or
"claude").
Do NOT use VS Code agentName: "Explore", Codex agent_type: "explorer", or
Claude Code subagent_type: "Explore"/"Plan" for work that must change
files, write specs, run tests, or verify fixes. Read-only agents return
diagnoses but cannot complete the workflow, wasting a full cycle.
Default to your own model (per your system prompt). If the user names one, pick the closest match from the available models; if none is plausible, ask.
Apply the harness-specific rule:
runSubagent: always pass an exact model string; discover strings
with the __probe__ call described above.spawn_agent: omit model by default so the subagent inherits the
parent model; set it only for an explicit user request or a clear
task-specific reason.Agent: omit model by default so the subagent inherits the
parent model; when set, use a tier keyword ("opus", "sonnet",
"haiku", "fable").Identify the tech stack from the codebase and use the matching triplet:
<stack>-conventions, <stack>-implementor, <stack>-reviewer (e.g.
go-conventions, python-implementor). Available stacks are in your system
prompt. Override with any skills named in the task input (phase file
Instructions, caller arguments). For tasks that write or review tests, also
include testing-principles.
Each subagent starts with clean context. Give it:
Pass paths, not skill text.
Brief every subagent to bound its tool calls and shell commands so they
cannot hang indefinitely: wrap potentially long or networked commands
with timeout (or framework-native timeout flags), and prefer
test/lint invocations that fail fast. Subagents must abort and report
rather than wait forever on an unresponsive command.
close_agent promptly when a Codex subagent is
no longer needed, including after its result has been integrated, after the
task is canceled, or after the workflow changes direction. This prevents
later turns from burning time rediscovering a subagent limit.model parameter on VS Code runSubagent; never set Codex
spawn_agent.model or Claude Code Agent.model without an explicit user
request or clear task-specific reason.