Agent skill

Swarm Init

by ruvnet in ruvnet/ruflo

Initialize a multi-agent swarm with anti-drift configuration.

MITAuto-check passedSecurity

Install Swarm Init

skills CLI
$ npx skills add ruvnet/ruflo --skill swarm-init -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo swarm-init --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-swarm/skills/swarm-init .claude/skills/swarm-init && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swarm-init
GitHub stars
74k
Token cost
~319 tokens
SKILL.md length
63 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Initialize a multi-agent swarm with anti-drift configuration.

  • Starting a complex multi-file task that needs 3+ coordinated agents (feature implementation
  • Calls npx
  • Refactor across modules
  • Security audit)

What it does

Swarm Init is an agent skill from ruvnet/ruflo. 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.

Its SKILL.md is about 320 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Security review and Multi-agent orchestration. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Starting a complex multi-file task that needs 3+ coordinated agents (feature implementation
  • Refactor across modules
  • Security audit)

Example prompts

  • “/swarm-init”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(npx *), mcp__plugin_ruflo-core_ruflo__swarm_init, mcp__plugin_ruflo-core_ruflo__swarm_status, Task, SendMessage

What it can do on your machine

Read from SKILL.md and the folder at commit 6051f67. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(npx *)
    • mcp__plugin_ruflo-core_ruflo__swarm_init
    • mcp__plugin_ruflo-core_ruflo__swarm_status
    • Task
    • SendMessage

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swarm Init loads about 319 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 63 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~319

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit 6051f67, republished under its MIT licence (© ruvnet). 63 words, ~319 tokens.

Download SKILL.mdSave it as .claude/skills/swarm-init/SKILL.md (or your agent's skills folder).
name
swarm-init
description
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.
allowed-tools
Bash(npx *), mcp__plugin_ruflo-core_ruflo__swarm_init, mcp__plugin_ruflo-core_ruflo__swarm_status, Task, SendMessage
argument-hint
[--topology hierarchical|mesh|hierarchical-mesh|ring|star|adaptive]

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:

bash
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:

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

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-swarm/skills/swarm-init of ruvnet/ruflo.

Open the folder on GitHubat commit 6051f67

Compare with similar skills

Swarm Init next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swarm Init compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swarm Init this skillruvnet/ruflo74k—~319Automated safety check: PassMIT
Orchestrating Adversarial Reviewstelagod/code-abyss243—~858Automated safety check: PassMIT
Security Research Team Auditcode-yeongyu/oh-my-openagent70k—~1.9kAutomated safety check: PassCustom licence
Audit Fullyonatangross/orchestkit289—~3.5kAutomated safety check: NotesMIT
Security Review Skill Creatorxwtro0tk1t-cloud/harness265—~5.7kAutomated safety check: PassNone
RepomixMicrock/ordinary-claude-skills4031 repos~1.4kAutomated safety check: NotesCustom licence

Similar skills

  • Multi-agent adversarial-verification orchestration for high-confidence conclusions.

    243 GitHub stars~858 tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • Security Research Team Audit

    code-yeongyu/oh-my-openagent

    Runs a parallel security audit with three vulnerability hunters and two proof-of-concept engineers, rating each finding by whether it is actually exploitable.

    70k GitHub stars~1.9k tokensUpdated today
    SecurityAuto-check passed
  • Audit Full

    yonatangross/orchestkit

    Single-pass codebase analysis leveraging a 1M-token context window for comprehensive security scanning, architecture review, and dependency auditing.

    289 GitHub stars~3.5k tokensUpdated today
    SecurityAuto-check: notes
  • Security Review Skill Creator

    xwtro0tk1t-cloud/harness

    生成安全审计 skill。两种模式:(1) 项目模式——根据项目文档生成定制化审计 skill;(2) 通用模式——仅指定语言+框架,从参考资料库生成通用审计 skill。当用户想创建安全审计 skill、生成审计规则、或提到"生成安全审计skill"、"创建code review skill"、"生成 Java 审计 skill"时使用。

    265 GitHub stars~5.7k tokensUpdated 5 mo ago
    SecurityAuto-check passed
  • Repomix

    Microck/ordinary-claude-skills

    Package entire code repositories into single AI-friendly files using Repomix.

    403 GitHub starsUsed in 1 repo~1.4k tokens
    SecurityAuto-check: notes
  • Flow Swarm

    LeoYeAI/openclaw-master-skills

    Multi-agent swarm orchestration via RuFlo + Claude Code. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~5.3k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 3 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Questions about Swarm Init

What does Swarm Init do?

Initialize a multi-agent swarm with anti-drift configuration. Swarm Init is an agent skill from ruvnet/ruflo. Initialize a multi-agent swarm with anti-drift configuration.

When should I use Swarm Init?

Swarm Init fits situations like: starting a complex multi-file task that needs 3+ coordinated agents (feature implementation; refactor across modules; security audit).

How do I install Swarm Init in Claude Code?

Run `npx skills add ruvnet/ruflo --skill swarm-init -a claude-code`. Or copy the skill folder (plugins/ruflo-swarm/skills/swarm-init in ruvnet/ruflo) into .claude/skills/swarm-init in your project. Claude Code loads it when a task matches its description.

How do I install Swarm Init in Codex?

Run `npx skills add ruvnet/ruflo --skill swarm-init -a codex`. Or copy the skill folder (plugins/ruflo-swarm/skills/swarm-init in ruvnet/ruflo) into .agents/skills/swarm-init in your project. Codex loads it when a task matches its description.

Can I use Swarm Init in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill swarm-init -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swarm-init, .gemini/skills/swarm-init, .github/skills/swarm-init and .opencode/skills/swarm-init in your project.

What does Swarm Init need to run?

Going by SKILL.md and its folder, Swarm Init needs the command-line tools its instructions call (npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(npx *), mcp__plugin_ruflo-core_ruflo__swarm_init, mcp__plugin_ruflo-core_ruflo__swarm_status, Task, SendMessage.

Does Swarm Init access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Swarm Init safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swarm Init use?

Swarm Init is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swarm Init use?

About 319 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swarm Init?

Skills that share tags, products or a category with Swarm Init: Orchestrating Adversarial Reviews (telagod/code-abyss, 243 stars), Security Research Team Audit (code-yeongyu/oh-my-openagent, 70k stars), Audit Full (yonatangross/orchestkit, 289 stars) and Security Review Skill Creator (xwtro0tk1t-cloud/harness, 265 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swarm Init?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,089 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 8, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.