# Cfn Agent Spawning

> Agent process spawning with provider configuration and execution

- Skill: `majiayu000/cfn-agent-spawning` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/cfn-agent-spawning`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/cfn-agent-spawning/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/cfn-agent-spawning

---


# Agent Spawning Submodule

**Parent Skill:** cfn-agent-lifecycle
**Purpose:** Spawn agent processes with proper environment and provider configuration

## Components

- `spawn-agent.sh` - Primary agent spawning script
- `spawn-worker.sh` - Worker process spawning
- `spawn-agent-wrapper.sh` - Wrapper for standardized spawning
- `spawn-templates.sh` - Template-based spawning
- `execute-agent.sh` - Agent execution handler
- `get-agent-provider-env.sh` - Provider environment configuration
- `parse-agent-provider.sh` - Provider parsing utilities
- `check-dependencies.sh` - Dependency validation

## Usage

```bash
# Spawn an agent
./.claude/skills/cfn-agent-lifecycle/lib/spawning/spawn-agent.sh \
  --agent-type backend-dev \
  --task-id "task-123" \
  --provider kimi

# Execute agent directly
./.claude/skills/cfn-agent-lifecycle/lib/spawning/execute-agent.sh \
  --agent-id "agent-123" \
  --task "implement feature"
```

