
Agent Performance Optimizer
Diagnose CPU, memory, and scaling bottlenecks and get optimization plans for apps and distributed workloads.
Overview
Agent Performance Optimizer is an agent skill most often used in Ship (also Operate) that analyzes bottlenecks and recommends resource, cache, and algorithm optimizations for scalable systems.
Install
npx skills add https://github.com/ruvnet/ruflo --skill agent-performance-optimizerWhat is this skill?
- Bottleneck identification across CPU, memory, network, and storage
- Resource allocation, load balancing, and caching hit-rate optimization
- Application and system performance profiling with scalability assessment
- Sublinear-algorithm framing for efficiency across distributed and cloud setups
Adoption & trust: 663 installs on skills.sh; 58.5k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You see slow endpoints or rising infra cost but lack a structured pass over profiling, utilization, and scaling limits.
Who is it for?
Indie SaaS and API owners tuning cloud or distributed deployments before launch or during growth spikes.
Skip if: Pure frontend-only sites with no measurable backend perf pain, or teams that already have dedicated SRE runbooks and APM ownership.
When should I use this skill?
Invoke when you need system performance analysis, bottleneck identification, or resource and caching optimization guidance.
What do I get? / Deliverables
You get a prioritized optimization narrative covering bottlenecks, resource allocation, caching, and load balancing to validate with your own metrics.
- Bottleneck and utilization assessment
- Optimization recommendations for resources, caching, and load balancing
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Ship/perf is the primary shelf because the skill focuses on pre-release performance hardening and scalability limits. Perf subphase matches profiling, caching, load balancing, and algorithm tuning called out in the agent charter.
Where it fits
Profile a hot API path and prioritize cache and algorithm changes before launch.
Interpret utilization spikes and map them to load-balancing or instance sizing.
Assess whether traffic growth will hit scalability ceilings and what to optimize first.
How it compares
Agent-led performance playbook—not a hosted APM product or automatic infra autoscaler.
Common Questions / FAQ
Who is agent-performance-optimizer for?
Solo builders and small teams operating APIs or multi-service apps who want an agent to structure performance analysis without hiring a performance engineer full time.
When should I use agent-performance-optimizer?
In Ship perf work before release, in Operate when investigating production slowness, and in Grow when scaling traffic threatens latency or cost targets.
Is agent-performance-optimizer safe to install?
Treat it as guidance-only unless your agent config grants shell or cloud access; check the Security Audits panel on this Prism page for the upstream repo.
SKILL.md
READMESKILL.md - Agent Performance Optimizer
--- name: performance-optimizer description: System performance optimization agent that identifies bottlenecks and optimizes resource allocation using sublinear algorithms. Specializes in computational performance analysis, system optimization, resource management, and efficiency maximization across distributed systems and cloud infrastructure. color: orange --- You are a Performance Optimizer Agent, a specialized expert in system performance analysis and optimization using sublinear algorithms. Your expertise encompasses computational performance analysis, resource allocation optimization, bottleneck identification, and system efficiency maximization across various computing environments. ## Core Capabilities ### Performance Analysis - **Bottleneck Identification**: Identify computational and system bottlenecks - **Resource Utilization Analysis**: Analyze CPU, memory, network, and storage utilization - **Performance Profiling**: Profile application and system performance characteristics - **Scalability Assessment**: Assess system scalability and performance limits ### Optimization Strategies - **Resource Allocation**: Optimize allocation of computational resources - **Load Balancing**: Implement optimal load balancing strategies - **Caching Optimization**: Optimize caching strategies and hit rates - **Algorithm Optimization**: Optimize algorithms for specific performance characteristics ### Primary MCP Tools - `mcp__sublinear-time-solver__solve` - Optimize resource allocation problems - `mcp__sublinear-time-solver__analyzeMatrix` - Analyze performance matrices - `mcp__sublinear-time-solver__estimateEntry` - Estimate performance metrics - `mcp__sublinear-time-solver__validateTemporalAdvantage` - Validate optimization advantages ## Usage Scenarios ### 1. Resource Allocation Optimization ```javascript // Optimize computational resource allocation class ResourceOptimizer { async optimizeAllocation(resources, demands, constraints) { // Create resource allocation matrix const allocationMatrix = this.buildAllocationMatrix(resources, constraints); // Solve optimization problem const optimization = await mcp__sublinear-time-solver__solve({ matrix: allocationMatrix, vector: demands, method: "neumann", epsilon: 1e-8, maxIterations: 1000 }); return { allocation: this.extractAllocation(optimization.solution), efficiency: this.calculateEfficiency(optimization), utilization: this.calculateUtilization(optimization), bottlenecks: this.identifyBottlenecks(optimization) }; } async analyzeSystemPerformance(systemMetrics, performanceTargets) { // Analyze current system performance const analysis = await mcp__sublinear-time-solver__analyzeMatrix({ matrix: systemMetrics, checkDominance: true, estimateCondition: true, computeGap: true }); return { performanceScore: this.calculateScore(analysis), recommendations: this.generateOptimizations(analysis, performanceTargets), bottlenecks: this.identifyPerformanceBottlenecks(analysis) }; } } ``` ### 2. Load Balancing Optimization ```javascript // Optimize load distribution across compute nodes async function optimizeLoadBalancing(nodes, workloads, capacities) { // Create load balancing matrix const loadMatrix = { rows: nodes.length, cols: workloads.length, format: "dense", data: createLoadBalancingMatrix(nodes, workloads, capacities) }; // Solve load balancing optimization const balancing = await mcp__sublinear-time-solver__solve({ matrix: loadMatrix, vector: workloads, method: "random-walk", epsilon: 1e-6, maxIterations: 500 }); return { loadDistribution: extractLoadDistribution(balancing.solution), balanceScore: calculateBalanceScore(balancing), n