spawn — команда Claude Code: оркестровка сложных задач
Команда spawn для разбора больших многодоменных операций на иерархию скоординированных задач. Анализирует, декомпозирует, назначает исполнителей — сама не пишет код, только планирует.
MIT ★ 23 950 обновлён 2026-09-27
.claude/commands/spawn.mdЧто делает spawn
spawn разбирает сложную операцию на эпики, истории и подзадачи, строит граф зависимостей и выбирает стратегию координации: последовательную, параллельную или адаптивную. Команда анализирует требования, оценивает область охвата, определяет кроссдоменные связи и создаёт план с назначением подкоманд (/sc:implement, /sc:design, /sc:test) для каждого блока.
Использует native-координацию без MCP-зависимостей. На выходе — документ иерархии задач с зависимостями, стратегией и делегированием, но сами изменения кода и системы выполняют другие команды. Полезна для миграций монолита в микросервисы, внедрения сложных фич и настройки многослойной инфраструктуры.
Какие задачи решает
- разобрать крупный проект на управляемые блоки с зависимостями
- спланировать миграцию, рефакторинг или инфраструктурное изменение
- координировать кроссдоменные операции (backend, frontend, DevOps, security)
- выбрать стратегию: что запускать последовательно, что параллельно
- делегировать подзадачи специализированным командам
Примеры запросов агенту
- Спланируй внедрение аутентификации по этапам: база данных, бэкенд, фронт, тесты
- /sc:spawn "миграция монолита в микросервисы" --strategy
adaptive --depth deep - Разбери этапы настройки CI/CD с проверкой безопасности и валидацией
Как установить spawn
Вручную: положить файлы
.claude/commands/spawn.mdВызов — /spawn. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/spawn.mdВызов — /prompts:spawn. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/spawn.prompt.mdВручную: положить файлы
.gemini/commands/spawn.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о spawn
Как установить spawn в Claude Code?
Скопируй файл .claude/commands/spawn.md в проект. spawn встроена в SuperClaude Framework и доступна через /sc:spawn в Claude Code.
Что делает spawn?
Разбирает сложную задачу на иерархию эпиков, историй и подзадач, строит план с учётом зависимостей и стратегией координации (последовательная, параллельная, адаптивная). Сама не выполняет — только планирует и делегирует.
Чем spawn отличается от обычных команд?
Обычные команды решают конкретные задачи. spawn — мета-команда: она смотрит на операцию в целом, разбивает на части, анализирует зависимости и назначает, какая команда должна выполнить каждую часть.
Исходный текст
spawn.md · MIT
--- name: spawn description: "Meta-system task orchestration with intelligent breakdown and delegation" category: special complexity: high mcp-servers: [] personas: [] --- # /sc:spawn - Meta-System Task Orchestration ## Triggers - Complex multi-domain operations requiring intelligent task breakdown - Large-scale system operations spanning multiple technical areas - Operations requiring parallel coordination and dependency management - Meta-level orchestration beyond standard command capabilities ## Usage ``` /sc:spawn [complex-task] [--strategy sequential|parallel|adaptive] [--depth normal|deep] ``` ## Behavioral Flow 1. **Analyze**: Parse complex operation requirements and assess scope across domains 2. **Decompose**: Break down operation into coordinated subtask hierarchies 3. **Orchestrate**: Execute tasks using optimal coordination strategy (parallel/sequential) 4. **Monitor**: Track progress across task hierarchies with dependency management 5. **Integrate**: Aggregate results and provide comprehensive orchestration summary Key behaviors: - Meta-system task decomposition with Epic → Story → Task → Subtask breakdown - Intelligent coordination strategy selection based on operation characteristics - Cross-domain operation management with parallel and sequential execution patterns - Advanced dependency analysis and resource optimization across task hierarchies ## MCP Integration - **Native Orchestration**: Meta-system command uses native coordination without MCP dependencies - **Progressive Integration**: Coordination with systematic execution for progressive enhancement - **Framework Integration**: Advanced integration with SuperClaude orchestration layers ## Tool Coordination - **TodoWrite**: Hierarchical task breakdown and progress tracking across Epic → Story → Task levels - **Read/Grep/Glob**: System analysis and dependency mapping for complex operations - **Edit/MultiEdit/Write**: Coordinated file operations with parallel and sequential execution - **Bash**: System-level operations coordination with intelligent resource management ## Key Patterns - **Hierarchical Breakdown**: Epic-level operations → Story coordination → Task execution → Subtask granularity - **Strategy Selection**: Sequential (dependency-ordered) → Parallel (independent) → Adaptive (dynamic) - **Meta-System Coordination**: Cross-domain operations → resource optimization → result integration - **Progressive Enhancement**: Systematic execution → quality gates → comprehensive validation ## Examples ### Complex Feature Implementation ``` /sc:spawn "implement user authentication system" # Breakdown: Database design → Backend API → Frontend UI → Testing # Coordinates across multiple domains with dependency management ``` ### Large-Scale System Operation ``` /sc:spawn "migrate legacy monolith to microservices" --strategy adaptive --depth deep # Enterprise-scale operation with sophisticated orchestration # Adaptive coordination based on operation characteristics ``` ### Cross-Domain Infrastructure ``` /sc:spawn "establish CI/CD pipeline with security scanning" # System-wide infrastructure operation spanning DevOps, Security, Quality domains # Parallel execution of independent components with validation gates ``` ## Boundaries **Will:** - Decompose complex multi-domain operations into coordinated task hierarchies - Provide intelligent orchestration with parallel and sequential coordination strategies - Execute meta-system operations beyond standard command capabilities **Will Not:** - Replace domain-specific commands for simple operations - Override user coordination preferences or execution strategies - Execute operations without proper dependency analysis and validation ## CRITICAL BOUNDARIES **STOP AFTER TASK DECOMPOSITION** This command produces a TASK HIERARCHY ONLY - delegates execution to other commands. **Explicitly Will NOT**: - Execute implementation tasks directly - Write or modify code - Create system changes - Replace domain-specific commands **Output**: Task breakdown document with: - Epic decomposition - Task hierarchy with dependencies - Delegation assignments (which `/sc:*` command handles each task) - Coordination strategy **Next Step**: Execute individual tasks using delegated commands (`/sc:implement`, `/sc:design`, `/sc:test`, etc.)
© SuperClaude-Org · MIT · SuperClaude-Org/SuperClaude_Framework