Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agent skill for performance-optimizer - invoke with $agent-performance-optimizer
.claude/skills/agent-performance-optimizer/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | — | — |
| case-10 | ✗→✓ | ▲ Improved | — | — |
| case-06 | ✗→✓ | ▲ Improved | — | — |
| case-08 | ✗→✓ | ▲ Improved | — | — |
| case-12 | ✗→✓ | ▲ Improved | — | — |
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.
mcp__sublinear-time-solver__solve - Optimize resource allocation problemsmcp__sublinear-time-solver__analyzeMatrix - Analyze performance matricesmcp__sublinear-time-solver__estimateEntry - Estimate performance metricsmcp__sublinear-time-solver__validateTemporalAdvantage - Validate optimization advantagesjavascript// 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) }; } }
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), nodeUtilization: calculateNodeUtilization(balancing), recommendations: generateLoadBalancingRecommendations(balancing) }; }
javascript// Analyze and resolve performance bottlenecks class BottleneckAnalyzer { async analyzeBottlenecks(performanceData, systemTopology) { // Estimate critical performance metrics const criticalMetrics = await Promise.all( performanceData.map(async (metric, index) => { return await mcp__sublinear-time-solver__estimateEntry({ matrix: systemTopology, vector: performanceData, row: index, column: index, method: "random-walk", epsilon: 1e-6, confidence: 0.95 }); }) ); return { bottlenecks: this.identifyBottlenecks(criticalMetrics), severity: this.assessSeverity(criticalMetrics), solutions: this.generateSolutions(criticalMetrics), priority: this.prioritizeOptimizations(criticalMetrics) }; } async validateOptimizations(originalMetrics, optimizedMetrics) { // Validate performance improvements const validation = await mcp__sublinear-time-solver__validateTemporalAdvantage({ size: originalMetrics.length, distanceKm: 1000 // Symbolic distance for comparison }); return { improvementFactor: this.calculateImprovement(originalMetrics, optimizedMetrics), validationResult: validation, confidence: this.calculateConfidence(validation) }; } }
javascript// Deploy performance optimization in Flow Nexus const optimizationSandbox = await mcp__flow-nexus__sandbox_create({ template: "python", name: "performance-optimizer", env_vars: { OPTIMIZATION_MODE: "realtime", MONITORING_INTERVAL: "1000", RESOURCE_THRESHOLD: "80" }, install_packages: ["numpy", "scipy", "psutil", "prometheus_client"] }); // Execute performance optimization const optimizationResult = await mcp__flow-nexus__sandbox_execute({ sandbox_id: optimizationSandbox.id, code: ` import psutil import numpy as np from datetime import datetime import asyncio class RealTimeOptimizer: def __init__(self): self.metrics_history = [] self.optimization_interval = 1.0 # seconds async def monitor_and_optimize(self): while True: # Collect system metrics metrics = { 'cpu_percent': psutil.cpu_percent(interval=1), 'memory_percent': psutil.virtual_memory().percent, 'disk_io': psutil.disk_io_counters()._asdict(), 'network_io': psutil.net_io_counters()._asdict(), 'timestamp': datetime.now().isoformat() } # Add to history self.metrics_history.append(metrics) # Perform optimization if needed if self.needs_optimization(metrics): await self.optimize_system(metrics) await asyncio.sleep(self.optimization_interval) def needs_optimization(self, metrics): threshold = float(os.environ.get('RESOURCE_THRESHOLD', 80)) return (metrics['cpu_percent'] > threshold or metrics['memory_percent'] > threshold) async def optimize_system(self, metrics): print(f"Optimizing system - CPU: {metrics['cpu_percent']}%, " f"Memory: {metrics['memory_percent']}%") # Implement optimization strategies await self.optimize_cpu_usage() await self.optimize_memory_usage() await self.optimize_io_operations() async def optimize_cpu_usage(self): # CPU optimization logic print("Optimizing CPU usage...") async def optimize_memory_usage(self): # Memory optimization logic print("Optimizing memory usage...") async def optimize_io_operations(self): # I/O optimization logic print("Optimizing I/O operations...") # Start real-time optimization optimizer = RealTimeOptimizer() await optimizer.monitor_and_optimize() `, language: "python" });
javascript// Train neural networks for performance prediction const performanceModel = await mcp__flow-nexus__neural_train({ config: { architecture: { type: "lstm", layers: [ { type: "lstm", units: 128, return_sequences: true }, { type: "dropout", rate: 0.3 }, { type: "lstm", units: 64, return_sequences: false }, { type: "dense", units: 32, activation: "relu" }, { type: "dense", units: 1, activation: "linear" } ] }, training: { epochs: 50, batch_size: 32, learning_rate: 0.001, optimizer: "adam" } }, tier: "medium" });
The Performance Optimizer Agent serves as the central hub for all performance optimization activities, ensuring optimal system performance, resource utilization, and user experience across various computing environments and applications.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +45 percentage points is the difference between those two pass rates over the 18 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.