spawn-agent
Spawn PAI agents via MCP factory tool. Loads identity, injects RAG context, validates spawn chain, and executes via Task(). The bridge between MCP tools and Claude Code's agent spawning.
npx skills add majiayu000/claude-skill-registry --skill spawn-agent-euda1mon1a-autonomous-assignmen-3c814df8 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Spawn Agent Skill > **Purpose:** Spawn PAI agents using MCP factory pattern > **Created:** 2026-01-16 > **Trigger:** `/spawn-agent <agent_name> <mission>` > **Model Tier:** Sonnet (Execution) --- ## Overview This skill bridges MCP tools with Claude Code's Task() function for agent spawning. **The Pattern:** 1. MCP `spawn_agent_tool` prepares context (identity, RAG, skills) 2. Claude Code executes via `Task(prompt=spec.full_prompt, ...)` 3. Spawned agent runs with full Claude Code capabilities **Why This Exists:** - No API keys needed in MCP server - Spawned agents have Edit/Write/Bash/MCP tool access - Governance (spawn chain, audit trail) enforced centrally --- ## When to Use ### Use This Skill When: - Need to spawn a PAI agent for a specific mission - Orchestrating multi-agent workflows - Delegating domain-specific work to specialists - Need RAG context injected into agent prompt ### Do NOT Use When: - Simple single-shot tasks (just do it directly) - Research/exploration (use `/search-party` instead) - Need to create a new agent (use `/agent-factory` instead) --- ## Usage ### Basic Syntax ``` /spawn-agent AGENT_NAME mission description here ``` ### Examples ``` /spawn-agent SCH
- Overview
- When to Use
- Use This Skill When:
- Do NOT Use When:
- Usage
- Basic Syntax
- Examples
- With Parent Context (for spawn chain validation)
- Execution Protocol
- Step 1: Load MCP Tool
- Step 2: Call spawnagenttool
- Step 3: Validate Response
- Step 4: Execute via Task()
- Step 5: Handle Checkpoint (Optional)
claude -p " You are SPECIALIST. Scheduling Validation Research Testing Documentation
What does the spawn-agent skill do?
Spawn PAI agents via MCP factory tool. Loads identity, injects RAG context, validates spawn chain, and executes via Task(). The bridge between MCP tools and Claude Code's agent spawning.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill spawn-agent-euda1mon1a-autonomous-assignmen-3c814df8 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
