optimization
From ruvnet
Performance optimization through specialized analysis.
Install
/optimizationFacts
- Repository
- ruvnet/ruflo
- Status
- Actively maintained
- Last commit
- Source file
- .claude/commands/swarm/optimization.md
Source preview
The instructions Claude Code reads when this command runs.
# Optimization Swarm Strategy
## Purpose
Performance optimization through specialized analysis.
## Activation
### Using MCP Tools
```javascript
// Initialize optimization swarm
mcp__claude-flow__swarm_init({
"topology": "mesh",
"maxAgents": 6,
"strategy": "adaptive"
})
// Orchestrate optimization task
mcp__claude-flow__task_orchestrate({
"task": "optimize performance",
"strategy": "parallel",
"priority": "high"
})
```
### Using CLI (Fallback)
`npx claude-flow swarm "optimize performance" --strategy optimization`
## Agent Roles
### Agent Spawning with MCP
```javascript
// Spawn optimization agents
mcp__claude-flow__agent_spawn({
"type": "optimizer",
"name": "Performance Profiler",
"capabilities": ["profiling", "bottleneck-detection"]
})
mcp__claude-flow__agent_spawn({
"type": "analyst",
"name": "Memory Analyzer",
"capabilities": ["memory-analysis", "leak-detection"]
})
mcp__claude-flow__agent_spawn({
"type": "optimizer",
"name": "Code Optimizer",
"capabilities": ["code-optimization", "refactoring"]
})
mcp__claude-flow__agent_spawn({
"type": "tester",
"name": "Benchmark Runner",
"capabilities": ["benchmarking", "performance-testing"]
})
```
## Optimization Areas
### Performance Analysis
```javascript
// Analyze bottlenecks
mcp__claude-flow__bottleneck_analyze({
"component": "all",
"metrics": ["cpu", "memory", "io", "network"]
})View 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