swarm-advanced
What it does
This skill explains how to coordinate several AI agents working together, using different network layouts for research, development and testing. It is for developers who run larger multi-agent tasks.
When to use it
- ✓When a research task is big enough to split across several agents.
- ✓When you want agents to test or review work in parallel.
- ✓When you need to choose a layout, such as mesh or hierarchical, for a team of agents.
Skill link
https://github.com/ruvnet/RuView/blob/main/.claude/skills/swarm-advanced/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
“Split this research into parallel tasks for several agents and combine their findings into one report.”
5 new skills a week. 1 minute to read.
How it works
The skill sets up a swarm with a chosen layout, then starts specialized agents and assigns them tasks. Each layout suits a different kind of work, such as peer collaboration for research or a coordinator for development.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Advanced Swarm Orchestration
Master advanced swarm patterns for distributed research, development, and testing workflows. This skill covers comprehensive orchestration strategies using both MCP tools and CLI commands.
Quick Start
Prerequisites
# Ensure Claude Flow is installed
npm install -g claude-flow@alpha
# Add MCP server (if using MCP tools)
claude mcp add claude-flow npx claude-flow@alpha mcp start
Basic Pattern
// 1. Initialize swarm topology
mcp__claude-flow__swarm_init({ topology: "mesh", maxAgents: 6 })
// 2. Spawn specialized agents
mcp__claude-flow__agent_spawn({ type: "researcher", name: "Agent 1" })
// 3. Orchestrate tasks
mcp__claude-flow__task_orchestrate({ task: "...", strategy: "parallel" })
Core Concepts
Swarm Topologies
Mesh Topology - Peer-to-peer communication, best for research and analysis
- All agents communicate directly
- High flexibility and resilience
- Use for: Research, analysis, brainstorming
Hierarchical Topology - Coordinator with subordinates, best for development
- Clear command structure
- Sequential workflow support
- Use for: Development, structured workflows
Star Topology - Central coordinator, best for testing
- Centralized control and monitoring
- Parallel execution with coordination
- Use for: Testing, validation, quality assurance
Ring Topology - Sequential processing chain
- Step-by-step processing
- Pipeline workflows
- Use for: Multi-stage processing, data pipelines
Agent Strategies
Adaptive - Dynamic adjustment based on task complexity Balanced - Equal distribution of work across agents Specialized - Task-specific agent assignment Parallel - Maximum concurrent execution
Pattern 1: Research Swarm
Purpose
Deep research through parallel information gathering, analysis, and synthesis.
Architecture
// Initialize research swarm
mcp__claude-flow__swarm_init({
"topology": "mesh",
"maxAgents": 6,
"strategy": "adaptive"
})
// Spawn research team
const researchAgents = [
{
type: "researcher",
name: "Web Researcher",
capabilities: ["web-search", "content-extraction", "source-validation"]
},
{
type: "researcher",
name: "Academic Researcher",
capabilities: ["paper-analysis", "citation-tracking", "literature-review"]
},
{
type: "analyst",
name: "Data Analyst",
capabilities: ["data-processing", "statistical-analysis", "visualization"]
},
{
type: "analyst",
name: "Pattern Analyzer",
capabilities: ["trend-detection", "correlation-analysis", "outlier-detection"]
},
{
type: "documenter",
name: "Report Writer",
capabilities: ["synthesis", "technical-writing", "formatting"]
}
]
// Spawn all agents
researchAgents.forEach(agent => {
mcp__claude-flow__agent_spawn({
type: agent.type,
name: agent.name,
capabilities: agent.capabilities
})
})
Research Workflow
Phase 1: Information Gathering
// Parallel information collection
mcp__claude-flow__parallel_execute({
"tasks": [
{
"id": "web-search",
"command": "search recent publications and articles"
},
{
"id": "academic-search",
"command": "search academic databases and papers"
},
{
"id": "data-collection",
"command": "gather relevant datasets and statistics"
},
{
"id": "expert-search",
"command": "identify domain experts and thought leaders"
}
]
})
// Store research findings in memory
mcp__claude-flow__memory_usage({
"action": "store",
"key": "research-findings-" + Date.now(),
"value": JSON.stringify(findings),
"namespace": "research",
"ttl": 604800 // 7 days
})
Phase 2: Analysis and Validation
// Pattern recognition in findings
mcp__claude-flow__pattern_recognize({
"data": researchData,
"patterns": ["trend", "correlation", "outlier", "emerging-pattern"]
})
// Cognitive analysis
mcp__claude-flow__cognitive_analyze({
"behavior": "research-synthesis"
})
// Quality assessment
mcp__claude-flow__quality_assess({
"target": "research-sources",
"criteria": ["credibility", "relevance", "recency", "authority"]
})
// Cross-reference validation
mcp__claude-flow__neural_patterns({
"action": "analyze",
"operation": "fact-checking",
"metadata": { "sources": sourcesArray }
})
Phase 3: Knowledge Management
// Search existing knowledge base
mcp__claude-
FAQ
What layouts are described?
Mesh, hierarchical, star and ring layouts, each with its own suggested use.
What do I need before starting?
The claude-flow tool installed, and optionally its MCP server added to Claude Code.
Which layout suits testing?
The skill recommends the star layout for testing and validation, with a central coordinator.
Details
Original description by the author
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
repo: ruvnet/RuView
Popularity
- GitHub stars
- 102k
- Ranking position
- #841
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
AgentDB Advanced Features
102kShows your agent advanced AgentDB features, such as syncing databases across machines and combining vector search with metadata filters.
AgentDB Learning Plugins
102kLets your agent build and train learning plugins for AgentDB, using reinforcement learning methods that improve from past experience.
AgentDB Memory Patterns
102kLets your agent remember conversations and context across sessions, using AgentDB as its persistent memory store.
AgentDB Performance Optimization
102kShows your agent how to speed up AgentDB searches and reduce memory use, with compression, a fast search index and caching.
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.