Skip to content
Skillpedia
Agents81k · #1539

swarm-orchestration

What it does

This skill guides an agent to break large work into parts and assign them to specialist agents with a hierarchical structure. It is for developers making changes that touch several files or modules at once.

When to use it

  • ✓When a change needs updates in three or more files.
  • ✓When a feature touches several modules and must be coordinated.
  • ✓When a change needs both code and tests updated together.

Skill link

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/swarm-orchestration/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/swarm-orchestration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Coordinate a change across the auth module, its tests and the database schema, using specialist agents.”

5 new skills a week. 1 minute to read.

How it works

The agent starts a hierarchical swarm, routes the task to the right specialists, tracks their progress, and combines their results.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Swarm Orchestration Skill

Purpose

Multi-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple files and modules.

When to Trigger

  • 3+ files need changes
  • new feature implementation
  • cross-module refactoring
  • API changes with tests
  • security-related changes
  • performance optimization across codebase
  • database schema changes

When to Skip

  • single file edits
  • simple bug fixes (1-2 lines)
  • documentation updates
  • configuration changes
  • quick exploration

Commands

Initialize Swarm

Start a new swarm with hierarchical topology (anti-drift)

npx @claude-flow/cli swarm init --topology hierarchical --max-agents 8 --strategy specialized

Example:

npx @claude-flow/cli swarm init --topology hierarchical --max-agents 6 --strategy specialized

Route Task

Route a task to the appropriate agents based on task type

npx @claude-flow/cli hooks route --task "[task description]"

Example:

npx @claude-flow/cli hooks route --task "implement OAuth2 authentication flow"

Spawn Agent

Spawn a specific agent type

npx @claude-flow/cli agent spawn --type [type] --name [name]

Example:

npx @claude-flow/cli agent spawn --type coder --name impl-auth

Monitor Status

Check the current swarm status

npx @claude-flow/cli swarm status --verbose

Orchestrate Task

Orchestrate a task across multiple agents

npx @claude-flow/cli task orchestrate --task "[task]" --strategy adaptive

Example:

npx @claude-flow/cli task orchestrate --task "refactor auth module" --strategy parallel --max-agents 4

List Agents

List all active agents

npx @claude-flow/cli agent list --filter active

Scripts

Script Path Description
swarm-start .agents/scripts/swarm-start.sh Initialize swarm with default settings
swarm-monitor .agents/scripts/swarm-monitor.sh Real-time swarm monitoring dashboard

References

Document Path Description
Agent Types docs/agents.md Complete list of agent types and capabilities
Topology Guide docs/topology.md Swarm topology configuration guide

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
FAQ

When should I skip it?

The skill says to skip it for single-file edits, small bug fixes and documentation updates.

What topology does it use?

It uses a hierarchical topology with specialized agents, which the skill says helps prevent drift.

Can I choose how many agents run?

Yes. The skill sets a maximum number of agents when the swarm starts.

Details

Original description by the author

Multi-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple files and modules. Use when: 3+ files need changes, new feature implementation, cross-module refactoring, API changes with tests, security-related changes, performance optimization across codebase, database schema changes. Skip when: single file edits, simple bug fixes (1-2 lines), documentation updates, configuration changes, quick exploration.

repo: ruvnet/ruflo

Popularity

GitHub stars
81k
Ranking position
#1539
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills