swarm-advanced
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
By ruvnet · 1,165 installs
npx skills add ruvnet/ruflo --skill swarm-advanced
Source repository · Upstream listing
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
Basic Pattern
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
Research Workflow
Phase 1: Information Gathering
Phase 2: Analysis and Validation
Phase 3: Knowledge Management
Phase 4: Report Generation
CLI Fallback
Pattern 2: Development Swarm
Purpose
Full stack development through coordinated specialist agents.
Architecture
Development Workflow
Phase 1: Architecture and Design
Phase 2: Parallel Implementation
Phase 3: Testing and Validation
Phase 4: Review and Deployment
CLI Fallback
Pattern 3: Testing Swarm
Purpose
Comprehensive quality assurance through distributed testing.
Architecture
Testing Workflow
Phase 1: Test Planning
Phase 2: Parallel Test Execution
Phase 3: Performance and Security
Phase 4: Monitoring and Reporting
CLI Fallback
Pattern 4: Analysis Swarm
Purpose
Deep code and system analysis through specialized analyzers.
Architecture
Analysis Workflow
Advanced Techniques
Error Handling and Fault Tolerance
Memory and State Management
Neural Pattern Learning
Workflow Automation
Performance Optimization
Monitoring and Metrics
Best Practices
1. Choosing the Right Topology
Mesh : Research, brainstorming, collaborative analysis
Hierarchical : Structured development, sequential workflows
Star : Testing, validation, centralized coordination
Ring : Pipeline processing, staged workflows
2. Agent Specialization
Assign specific capabilities to each agent
Avoid overlapping responsibilities
Use coordination agents for complex workflows
Leverage memory for agent communication
3. Parallel Execution
Identify independent tasks for parallelization
Use sequential execution for dependent tasks
Monitor resource usage during parallel execution
Implement proper error handling
4. Memory Management
Use namespaces to organize memory
Set appropriate TTL values
Create regular backups
Implement state snapshots for checkpoints
5. Monitoring and Optimization
Monitor swarm health regularly
Collect and analyze metrics
Optimize topology based on performance
Use neural patterns to learn from success
6. Error Recovery
Implement fault tolerance strategies
Use auto recovery mechanisms
Analyze error patterns
Create fallback workflows
Real World Examples
Example 1: AI Research Project
Example 2: Full Stack Application
Example 3: Security Audit
Example 4: Performance Optimization
Troubleshooting
Common Issues
Issue : Swarm agents not coordinating properly
Solution : Check topology selection, verify memory usage, enable monitoring
Issue : Parallel execution failing
Solution : Verify task dependencies, check resource limits, implement error handling
Issue : Memory persistence not working
Solution : Verify namespaces, check TTL settings, ensure backup configuration
Issue : Performance degradation
Solution : Optimize topology, reduce agent count, analyze bottlenecks
Related Skills
sparc methodology Systematic development workflow
github integration Repository management and automation
neural patterns AI powered coordination optimization
memory management Cross session state persistence
References
[Claude Flow Documentation](https://github.com/ruvnet/claude flow)
[Swarm Orchestration Guide](https://github.com/ruvnet/claude flow/wiki/swarm)
[MCP Tools Reference](https://github.com/ruvnet/claude flow/wiki/mcp)
[Performance Optimization](https://github.com/ruvnet/claude flow/wiki/performance)
Version : 2.0.0
Last Updated : 2025 10 19
Skill Level : Advanced
Estimated Learning Time : 2 3 hours