AgentSkillsCN

Agent-Swarm Spawner

为并行代理执行准备隔离子工作区。复制上下文并为“Worker”代理生成特定任务指令。

SKILL.md
--- frontmatter
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

ParameterTypeRequiredDefaultDescription
--task-namestringYes-Name of the sub-task (e.g. "audit-auth")
--instructionsstringYes-specific goal for the worker
--context-filesstring[]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.