Skip to content
Skillpedia
Agents81k · #1699

swarm-init

What it does

This skill starts a coordinated group of AI agents for work that spans several files or modules. It is for people with larger tasks that are too big for a single agent.

When to use it

  • ✓When a task touches three or more files and needs several agents.
  • ✓When you want a feature built, a refactor done across modules or a security audit run in parallel.
  • ✓When a small edit or quick question is all that is needed, do not use this skill.

Skill link

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-swarm/skills/swarm-init/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/plugins/ruflo-swarm/skills/swarm-init/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

“Set up a team of agents to refactor the billing modules in parallel and keep them coordinated.”

5 new skills a week. 1 minute to read.

How it works

The skill starts a swarm with a chosen layout and a maximum number of agents, then the agents are launched in the background, each in its own git worktree. They send messages to coordinate.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Initialize a hierarchical swarm for coordinated multi-agent work.

Via MCP: mcp__plugin_ruflo-core_ruflo__swarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })

Or via CLI:

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

Then spawn named agents in ONE message via Claude Code's Task tool with name: (for SendMessage addressability) and run_in_background: true (for parallel execution). Use EnterWorktree per agent for git-safe parallel work, and SendMessage for inter-agent coordination.

For larger teams (10+), use hierarchical-mesh topology:

npx @claude-flow/cli@latest swarm init --topology hierarchical-mesh --max-agents 15 --strategy specialized
FAQ

How many agents can it run?

The example sets a maximum of eight, and a larger layout is suggested for teams of ten or more.

Do agents share the same files?

The skill uses a separate git worktree for each agent, so parallel work stays separate.

When is it not worth using?

For single-file edits or quick questions, the source says to skip it.

Details

Original description by the author

Initialize a multi-agent swarm with anti-drift configuration. Use when starting a complex multi-file task that needs 3+ coordinated agents (feature implementation, refactor across modules, security audit). Skip for single-file edits or quick questions.

repo: ruvnet/ruflo

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills