spawn-agent
$
npx mdskill add yogsoth-ai/de-anthropocentric-research-engine/spawn-agentWhen an SOP declares `execution: subagent` in its frontmatter, this skill governs how main CC creates and invokes that subagent.
SKILL.md
.github/skills/spawn-agentView on GitHub ↗
---
name: spawn-agent
description: Spawn a customized CC subagent with full MCP tool access. Used by SOPs that declare execution: subagent.
type: sop
layer: sop
---
# Spawn Agent
## Purpose
When an SOP declares `execution: subagent` in its frontmatter, this skill governs how main CC creates and invokes that subagent.
## Default Strategy
| Dimension | Default |
|-----------|---------|
| Model | opus |
| Tools | all (subagent inherits main CC's full MCP access) |
| Output | markdown |
## Execution Protocol
When you encounter an SOP with `execution: subagent`:
### Step 1: Read the prompt
Read the file specified in the SOP's `prompt` frontmatter field (relative to the SOP directory).
### Step 2: Format the user message
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.
### Step 3: Invoke Agent tool
```
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:
1. The prompt.md content (role definition, framework, output structure)
2. A separator (`---`)
3. The formatted input parameters
### Step 4: Return result
The Agent tool result IS the SOP output. Pass it back to the calling tactic/strategy as-is. No parsing, no transformation.
## Override Handling
If the SOP frontmatter contains override fields:
- `model: sonnet` → use `model: "sonnet"` in Agent call
- `tools: [alphaxiv, ss]` → add tool restriction note to the prompt
## Parallel Execution
When 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.
More from yogsoth-ai/de-anthropocentric-research-engine
- abductive-hypothesis-generationStrategy: 面对异常的最佳解释推理
- ablation-brainstormRemove components one by one, observe system changes to reveal hidden dependencies and generate ideas from structural gaps.
- ablation-component-mappingMap system architecture to ablatable units for ablation studies
- ablation-designDesign ablation studies to isolate component contributions in ML systems
- ablation-executionRemove components one by one from a system, record the response/impact of each removal.
- abp-vulnerability-classificationClassify assumptions on 2 axes — load-bearing (how much conclusion depends on it) × vulnerable (how likely to be false). Focuses attention on High-Load × High-Vulnerable quadrant.
- abstraction-extractionExtract abstract principles from concrete domain cases. Strips domain-specific details to reveal transferable mechanisms.
- abstraction-ladderPerform bisociation at multiple abstraction levels
- abstraction-ladderingMove between concrete and abstract framings — 3 levels up (Why?) and 3 levels down (How?) to find the most productive research level.
- abstraction-to-designAbstract biological principle to design principle. Bridge from biology to engineering.