Agent skill · Workflow & Productivity

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/agent/spawn-agent-euda1mon1a-autonomous-assignmen-3c814df8/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Use This Skill When:
  4. Do NOT Use When:
  5. Usage
  6. Basic Syntax
  7. Examples
  8. With Parent Context (for spawn chain validation)
  9. Execution Protocol
  10. Step 1: Load MCP Tool
  11. Step 2: Call spawnagenttool
  12. Step 3: Validate Response
  13. Step 4: Execute via Task()
  14. Step 5: Handle Checkpoint (Optional)
Ships with 1 file
  • metadata.json
Commands it runs
claude -p "
You are SPECIALIST.
Scheduling
Validation
Research
Testing
Documentation
More from claude-skill-registry
All skills →
About this skill
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.

Keep going