Skip to content
Back to skills

Automation Smart Spawn

ASecurity

Automatically 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
ai-agentsjavascripttypescriptgojavabashapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add monoes/monomind --skill automation-smart-spawn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Automation Smart Spawn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Automation Smart Spawn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/monoes-automation-smart-spawn/badge)](https://www.skillsdirectory.com/skills/monoes-automation-smart-spawn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…