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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.