home / skills / sounder25 / google-antigravity-skills-library / 09_multi_agent_delegation
This skill creates isolated swarm sub-workspaces and prepares task-specific prompts and context for parallel worker agents to execute immediately.
npx playbooks add skill sounder25/google-antigravity-skills-library --skill 09_multi_agent_delegationReview the files below or copy the command above to add this skill to your agents.
---
name: Agent-Swarm Spawner
description: Prepares isolated sub-workspaces for parallel agent execution. Copies context and generates specific mission instructions for "Worker" agents.
version: 1.0.0
author: Antigravity Skills Library
created: 2026-01-16
leverage_score: 5/5
---
# SKILL-009: Agent-Swarm Spawner
## Overview
Complex tasks require parallel execution. This skill orchestrates "Swarming" by creating isolated sub-directories (`./.swarm/task_01`) initialized with all necessary context (`MISSION.md`, `WORKSPACE_PROFILE.json`), allowing a secondary agent to pick up the task immediately.
## Trigger Phrases
- `spawn agent for <task>`
- `create subtask <name>`
- `delegate <task>`
## Inputs
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `--task-name` | string | Yes | - | Name of the sub-task (e.g. "audit-auth") |
| `--instructions` | string | Yes | - | specific goal for the worker |
| `--context-files` | string[] | No | - | Additional files to copy to swarm dir |
## Outputs
1. `./.swarm/<task_name>/MISSION.md`: The prompt for the worker agent.
2. `./.swarm/<task_name>/`: An isolated workspace ready for the agent.
## Implementation
See `spawn_agent.ps1`.
This skill prepares isolated sub-workspaces so parallel "Worker" agents can execute tasks safely and deterministically. It creates a ready-made swarm directory with mission instructions and context files so each worker can start immediately. It is designed for PowerShell-based agent workflows and emphasizes safety gates and impasse detection.
The spawner makes a new subdirectory (./.swarm/<task_name>) and copies specified context files and workspace metadata into it. It generates a MISSION.md that contains the worker-specific instructions, success criteria, and guardrails. The resulting workspace is isolated so the worker runs with deterministic inputs and the orchestrator can monitor outcomes and handle failures.
What files are included in the swarm workspace?
By default it copies workspace metadata and any files you list via --context-files; the spawner also creates MISSION.md and a workspace profile for the worker.
How do I prevent workers from interfering with each other?
Each worker gets its own ./ .swarm/<task_name> directory and a minimal context copy. Use unique task names and limit shared resources to avoid collisions.