Skip to content
Development
Skill

/team-swarm

Swarm intelligence team skill — ACO-driven multi-agent exploration with hybrid LLM coordinator + Python optimization controller. Coordinator generates swarm-config from user task, then runs K iterations of N parallel ants guided by pheromone state. Universal task space via

From plugin
maestro-flow
57524 skills29 agents18 commands3 MCP

Claude Code

$ npx -y skills add catlog22/maestro-flow --skill team-swarm --agent claude-code

SKILL.md

team-swarm.SKILL.md
name: team-swarm
disable-model-invocation: true
description: Swarm intelligence team skill — ACO-driven multi-agent exploration with hybrid LLM coordinator + Python optimization controller. Coordinator generates swarm-config from user task, then runs K iterations of N parallel ants guided by pheromone state. Universal task space via config (nodes + scoring rule). Triggers on "team swarm", "swarm intelligence", "蚁群".
allowed-tools: TeamCreate(*), TeamDelete(*), SendMessage(*), TaskCreate(*), TaskUpdate(*), TaskList(*), TaskGet(*), Agent(*), AskUserQuestion(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__maestro__team_msg(*)
session-mode: run
contract:
  contract_version: 2.1
  consumes: []
  produces:
    - {path: outputs/best-solution.md, kind: swarm-best-solution, schema: swarm-best-solution/1.0, role: primary, required: true}
    - {path: outputs/swarm-report.json, kind: swarm-report, schema: swarm-report/1.0, role: attachment, required: true}
    - {path: 'outputs/ant-{iteration}-{ant_id}.json', kind: swarm-ant-result, schema: swarm-ant-result/1.0, role: evidence, required: false}
  gates: {entry: [], exit: []}

<required_reading> @~/.maestro/workflows/run-mode-lite.md </required_reading>

Team Swarm

Orchestrate ant-colony-style exploration over a user-defined task space. **Hybrid coordinator**: LLM handles task translation + worker spawning; Python script owns all numeric decisions (selection / pheromone update / convergence). Universal — task space and scoring rule come from `swarm-config.json`.

Architecture

Skill(skill="team-swarm", args="task description")
                    |
         SKILL.md (this file) = Router
                    |
     +--------------+--------------+
     |                             |
  no --role flag              --role <name>
     |                             |
  Coordinator                  Worker
  roles/coordinator/role.md    roles/<name>/role.md
     |
     +-- Phase 1: gen swarm-config
     +-- Phase 2: init  --> Bash: scripts/aco.py init
     +-- Phase 3: iterate (K rounds, each = spawn-and-stop)
     |   |
     |   +-- Bash: aco.py select --iter k  -> N assignments
     |   +-- Spawn N x team-worker(ant)
     |   +-- [callback when all ants done]
     |   +-- (optional) Spawn team-worker(scorer)
     |   +-- Bash: aco.py update --iter k
     |   +-- Bash: aco.py converged
     |   +-- branch: loop k+1 OR Phase 4
     |
     +-- Phase 4: converge --> Bash: aco.py report -> Spawn team-worker(analyst)
                                                    -> best-solution.md

Role Registry

| Role | Path | Prefix | Inner Loop | |------|------|--------|------------| | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — | | ant | [roles/ant/role.md](roles/ant/role.md) | ANT-* | false | | scorer | [roles/scorer/role.md](roles/scorer/role.md) | SCORE-* | false | | analyst | [roles/analyst/role.md](roles/analyst/role.md) | ANALYST-* | false |

Role Router

Parse `$ARGUMENTS`:

  • Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
  • No `--role` -> `@roles/coordinator/role.md`, execute entry router

Shared Constants

  • **Session prefix**: `TS`
  • **Session path**: `{run_dir}/work/team/`
  • **Team name**: `swarm`
  • **Script root**: `<skill_root>/scripts/aco.py` (Python 3.10+)
  • **Message bus**: `mcp__maestro__team_msg(session_id=<run-id>, ...)`

Worker Spawn Template

Coordinator spawns workers using this template:

Agent({
  subagent_type: "team-worker",
  description: "Spawn <role> worker",
  team_name: "swarm",
  name: "<role>",
  run_in_background: true,
  prompt: `## Role Assignment
role: <role>
role_spec: <skill_root>/roles/<role>/role.md
session: {run_dir}/work/team
session_id: <run-id>
run_dir: <exact run_dir from the birth packet or team-session.json.run.run_dir>
team_name: swarm
requirement: <task-description>
inner_loop: false

## Assignment (ant only)
<assignment JSON from aco.py select>

## Progress Milestones
session_id: <run-id>
Report progress via team_msg at natural phase boundaries.
Report blockers immediately via team_msg type="blocker".
Report completion via team_msg type="task_complete" after final SendMessage.

Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
})

User Commands

| Command | Action | |---------|--------| | `check` / `status` | View iteration progress + convergence curve | | `resume` / `continue` | Resume interrupted iteration | | `feedback <text>` | Inject feedback into wisdom; applies at next iteration | | `revise <ITER>` | Re-run a specific iteration (rare) |

Specs Reference

| Spec | Purpose | |------|---------| | [specs/swarm-protocol.md](specs/swarm-protocol.md) | Master protocol: script <-> coordinator interface, data flow | | [specs/pheromone-schema.md](specs/pheromone-schema.md) | Pheromone JSON structure, update formula, evaporation | | [specs/ant-output-schema.md](specs/ant-output-schema.md) | Critical contract for ant JSON artifacts | | [specs/convergence-criteria.md](specs/convergence-criteria.md) | Stop conditions, multi-criterion logic | | [specs/swarm-config-template.json](specs/swarm-config-template.json) | User-facing config template with all knobs |

Scripts

| Script | Purpose | Invocation | |--------|---------|------------| | `scripts/aco.py` | Main CLI: init / select / update / converged / report | `python aco.py --session <path> <cmd>` | | `scripts/pheromone.py` | Pheromone matrix module (imported by aco.py) | — | | `scripts/scoring.py` | Pluggable scorer (script + fallback modes) | — |

Run Directory

{run_dir}/
├── outputs/                     # Formal deliverables (registered at Run completion)
│   ├── ant-<iter>-<id>.json
│   ├── swarm-report.json
│   └── best-solution.md
└── work/team/                   # Coordination state (not formal artifacts)
Read more
@catlog22
Ships withmaestro-flow

Intent-driven workflow orchestration for multi-agent AI development — adaptive lifecycle engine, self-reinforcing knowledge graph, and visual dashboard for Claude Code, Gemini, Codex & more

57524 skills29 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
575
Star history of catlog22/maestro-flow on GitHub, a chart by star-history.com

Other skills on maestro-flow.

maestro-help

maestro-help

Maestro Flow 命令帮助系统。搜索命令、浏览技能、工作流推荐、新手引导。Triggers on "maestro-help", "帮助", "命令", "怎么用", "skill", "workflow", "maestro 怎么用".

skill-generator

skill-generator

Meta-skill for creating new Claude Code skills with configurable execution modes. Supports sequential (fixed order) and…

skill-iter-tune

skill-iter-tune

Iterative skill tuning via execute-evaluate-improve feedback loop. Uses maestro delegate Claude to execute skill, Agy to evaluate…

skill-simplify

skill-simplify

SKILL.md simplification with functional integrity verification. Analyze redundancy, optimize content, check no functionality…

skill-tuning

skill-tuning

Universal skill diagnosis and optimization tool. Detect and fix skill execution issues including context explosion, long-tail…

team-arch-opt

team-arch-opt

Unified team skill for architecture optimization. Uses team-worker agent architecture with role directories for domain logic.…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about team-swarm.

Which coding agents can use team-swarm?
team-swarm installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.