/optimization
Performance optimization through specialized analysis.
> /plugin marketplace add ruvnet/rufloHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/optimization
Context preview
What this command does when you run it.
Performance optimization through specialized analysis.
Command definition
optimization.mdOptimization Swarm Strategy
Purpose
Performance optimization through specialized analysis.
Activation
Using MCP Tools
// 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
// 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
// Analyze bottlenecks
mcp__claude-flow__bottleneck_analyze({
"component": "all",
"metrics": ["cpu", "memory", "io", "network"]
})
// Run benchmarks
mcp__claude-flow__benchmark_run({
"suite": "performance"
})
// WASM optimization
mcp__claude-flow__wasm_optimize({
"operation": "simd-acceleration"
})Optimization Operations
// Optimize topology
mcp__claude-flow__topology_optimize({
"swarmId": "optimization-swarm"
})
// DAA optimization
mcp__claude-flow__daa_optimization({
"target": "performance",
"metrics": ["speed", "memory", "efficiency"]
})
// Load balancing
mcp__claude-flow__load_balance({
"swarmId": "optimization-swarm",
"tasks": optimizationTasks
})Monitoring and Reporting
// Performance report
mcp__claude-flow__performance_report({
"format": "detailed",
"timeframe": "7d"
})
// Trend analysis
mcp__claude-flow__trend_analysis({
"metric": "performance",
"period": "30d"
})
// Cost analysis
mcp__claude-flow__cost_analysis({
"timeframe": "30d"
})Read more
Optimization Swarm Strategy
Purpose
Performance optimization through specialized analysis.
Activation
Using MCP Tools
// 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
// 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
// Analyze bottlenecks
mcp__claude-flow__bottleneck_analyze({
"component": "all",
"metrics": ["cpu", "memory", "io", "network"]
})
// Run benchmarks
mcp__claude-flow__benchmark_run({
"suite": "performance"
})
// WASM optimization
mcp__claude-flow__wasm_optimize({
"operation": "simd-acceleration"
})Optimization Operations
// Optimize topology
mcp__claude-flow__topology_optimize({
"swarmId": "optimization-swarm"
})
// DAA optimization
mcp__claude-flow__daa_optimization({
"target": "performance",
"metrics": ["speed", "memory", "efficiency"]
})
// Load balancing
mcp__claude-flow__load_balance({
"swarmId": "optimization-swarm",
"tasks": optimizationTasks
})Monitoring and Reporting
// Performance report
mcp__claude-flow__performance_report({
"format": "detailed",
"timeframe": "7d"
})
// Trend analysis
mcp__claude-flow__trend_analysis({
"metric": "performance",
"period": "30d"
})
// Cost analysis
mcp__claude-flow__cost_analysis({
"timeframe": "30d"
})An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.
Repo: ruvnet/ruflo
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

