Skip to content
Development
Command

/optimization

Performance optimization through specialized analysis.

From plugin
agentic-flow
840134 skills105 agents134 commands3 MCP
> /plugin marketplace add ruvnet/agentic-flow
> /plugin install agentic-flow@agentic-flow

Command definition

optimization.md

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"
})
Read more
@ruvnet
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

84039 skills105 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
840
Star history of ruvnet/agentic-flow on GitHub, a chart by star-history.com

Other commands on agentic-flow.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command