一键导入
spawn-agent
// Spawn a customized CC subagent with full MCP tool access. Used by SOPs that declare execution: subagent.
// Spawn a customized CC subagent with full MCP tool access. Used by SOPs that declare execution: subagent.
| name | spawn-agent |
| description | Spawn a customized CC subagent with full MCP tool access. Used by SOPs that declare execution: subagent. |
When an SOP declares execution: subagent in its frontmatter, this skill governs how main CC creates and invokes that subagent.
| Dimension | Default |
|---|---|
| Model | opus |
| Tools | all (subagent inherits main CC's full MCP access) |
| Output | markdown |
When you encounter an SOP with execution: subagent:
Read the file specified in the SOP's prompt frontmatter field (relative to the SOP directory).
Take the SOP's input parameters and format as:
[FIELD_NAME]:
[value]
[FIELD_NAME]:
[value]
Each field on its own line, separated by blank lines. Field names in UPPER_CASE.
Agent({
description: "[SOP name] — [brief task description]",
prompt: "[prompt.md content]\n\n---\n\n[formatted user message]",
model: "[opus, unless SOP overrides]"
})
The subagent's prompt combines:
---)The Agent tool result IS the SOP output. Pass it back to the calling tactic/strategy as-is. No parsing, no transformation.
If the SOP frontmatter contains override fields:
model: sonnet → use model: "sonnet" in Agent calltools: [alphaxiv, ss] → add tool restriction note to the promptWhen a tactic needs multiple subagents (e.g., debate with Critic + Defender), spawn them as parallel Agent tool calls in a single message. The Agent tool natively supports this.