examples
From ruvnet
// Initialize research swarm
Install
/examplesFacts
- Repository
- ruvnet/ruflo
- Status
- Actively maintained
- Last commit
- Source file
- .claude/commands/pair/examples.md
Source preview
The instructions Claude Code reads when this command runs.
# Examples Swarm Strategy
## Common Swarm Patterns
### Research Swarm
#### Using MCP Tools
```javascript
// Initialize research swarm
mcp__claude-flow__swarm_init({
"topology": "mesh",
"maxAgents": 6,
"strategy": "adaptive"
})
// Spawn research agents
mcp__claude-flow__agent_spawn({
"type": "researcher",
"name": "AI Trends Researcher",
"capabilities": ["web-search", "analysis", "synthesis"]
})
// Orchestrate research
mcp__claude-flow__task_orchestrate({
"task": "research AI trends",
"strategy": "parallel",
"priority": "medium"
})
// Monitor progress
mcp__claude-flow__swarm_status({
"swarmId": "research-swarm"
})
```
#### Using CLI (Fallback)
```bash
npx claude-flow swarm "research AI trends" \
--strategy research \
--mode distributed \
--max-agents 6 \
--parallel
```
### Development Swarm
#### Using MCP Tools
```javascript
// Initialize development swarm
mcp__claude-flow__swarm_init({
"topology": "hierarchical",
"maxAgents": 8,
"strategy": "balanced"
})
// Spawn development team
const devAgents = [
{ type: "architect", name: "API Designer" },
{ type: "coder", name: "Backend Developer" },
{ type: "tester", name: "API Tester" },
{ type: "documenter", name: "API Documenter" }
]
devAgents.forEach(agent => {
mcp__claude-flow__agent_spawn({
"type": agent.type,
"name": agent.name,
"swarmId": "dev-swarm"
})
})
// OrcView full source on GitHub →Other slash commands
feature-development
★ 229,918Workflow command scaffold for feature-development in everything-claude-code.
affaan-mupdated 15d agoMITdatabase-migration
★ 229,918Workflow command scaffold for database-migration in everything-claude-code.
affaan-mupdated 15d agoMITadd-language-rules
★ 229,918Workflow command scaffold for add-language-rules in everything-claude-code.
affaan-mupdated 15d agoMITcommit-push-pr
★ 137,934Commit, push, and open a PR
anthropicsupdated 14d agodedupe
★ 137,934Find duplicate GitHub issues
anthropicsupdated 14d agotriage-issue
★ 137,934Triage GitHub issues by analyzing and applying labels
anthropicsupdated 14d ago