Back to skills
SKILL.md
Automation Smart Spawn
ASecurityAutomatically spawn agents at the start of a task using the hooks pre-task system.
- 21 stars
- 0 votes
- 0 copies
- 1 view
- Added September 10, 2026
Works with
Security analysis
100/100npx -y skills add monoes/monomind --skill automation-smart-spawn --agent claude-codeAre you the author of Automation Smart Spawn?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/monoes-automation-smart-spawn)---
name: automation-smart-spawn
description: Automatically spawn agents at the start of a task using the hooks pre-task system.
type: flow
---
# smart-spawn
Automatically spawn agents at the start of a task using the hooks pre-task system.
## Usage
```bash
npx monomind hooks pre-task --description "<task>" --auto-spawn
```
## Options
- `--description, -d <text>` - Task description (used for agent selection)
- `--auto-spawn` - Enable automatic agent spawning based on task analysis
- `--id, -i <id>` - Task ID
## Examples
### Auto-spawn agents for a task
```bash
npx monomind hooks pre-task --description "Implement OAuth with Google" --auto-spawn
```
### Route + spawn in one step
```bash
npx monomind hooks route --task "Build REST API" --include-explanation
npx monomind hooks pre-task --description "Build REST API" --auto-spawn
```
## How It Works
The `pre-task` hook analyzes the task description and automatically selects and spawns the right agents:
- **Simple tasks** (`Fix typo`) → single coordinator agent
- **Complex tasks** (`Implement OAuth`) → Architect + Coder + Tester + Researcher
- **Parallel tasks** → mesh topology with load-balanced workers
## Integration with Claude Code
```javascript
// Spawn the appropriate agent type
mcp__monomind__agent_spawn({
type: "coder",
name: "Task Handler",
capabilities: ["typescript", "api"]
})
```
## See Also
- `auto-agent` — spawn agents manually with explicit type/task
- `workflow-select` — run a predefined workflow template
- `hooks pre-task` — full pre-task hook reference
Attribution
Comments
Loading comments…