Agent skill

Agent Performance Optimizer

by ruvnet in ruvnet/ruflo

Agent skill for performance-optimizer - invoke with $agent-performance-optimizer

MITAuto-check passed

Install Agent Performance Optimizer

skills CLI
$ npx skills add ruvnet/ruflo --skill agent-performance-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo agent-performance-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/agent-performance-optimizer .claude/skills/agent-performance-optimizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-performance-optimizer
GitHub stars
74k
Used in
2 other repos
Token cost
~3.6k tokens
SKILL.md length
731 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Agent skill for performance-optimizer - invoke with $agent-performance-optimizer

  • Works in 3 steps: Resource Allocation Optimization → Load Balancing Optimization → Performance Bottleneck Analysis
  • Tasks that involve Performance optimization
  • SKILL.md covers Core Capabilities, Usage Scenarios, Integration with Claude Flow and Integration with Flow Nexus, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agent Performance Optimizer is an agent skill from ruvnet/ruflo. Agent skill for performance-optimizer - invoke with $agent-performance-optimizer

Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Tasks that involve Performance optimization

Example prompts

  • “/agent-performance-optimizer”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Resource Allocation Optimization
  2. Load Balancing Optimization
  3. Performance Bottleneck Analysis

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Performance Optimizer loads about 3.6k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 731 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 731 words, ~3,627 tokens.

Download SKILL.mdSave it as .claude/skills/agent-performance-optimizer/SKILL.md (or your agent's skills folder).
name
agent-performance-optimizer
description
Agent skill for performance-optimizer - invoke with $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),
    nodeUtilization: calculateNodeUtilization(balancing),
    recommendations: generateLoadBalancingRecommendations(balancing)
  };
}
3. Performance Bottleneck Analysis
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)
    };
  }
}

Integration with Claude Flow

Swarm Performance Optimization
  • Agent Performance Monitoring: Monitor individual agent performance
  • Swarm Efficiency Optimization: Optimize overall swarm efficiency
  • Communication Optimization: Optimize inter-agent communication patterns
  • Resource Distribution: Optimize resource distribution across agents
Dynamic Performance Tuning
  • Real-time Optimization: Continuously optimize performance in real-time
  • Adaptive Scaling: Implement adaptive scaling based on performance metrics
  • Predictive Optimization: Use predictive algorithms for proactive optimization

Integration with Flow Nexus

Cloud Performance Optimization
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"
});
Neural Performance Modeling
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"
});

Advanced Optimization Techniques

Machine Learning-Based Optimization
  • Performance Prediction: Predict future performance based on historical data
  • Anomaly Detection: Detect performance anomalies and outliers
  • Adaptive Optimization: Adapt optimization strategies based on learning
Multi-Objective Optimization
  • Pareto Optimization: Find Pareto-optimal solutions for multiple objectives
  • Trade-off Analysis: Analyze trade-offs between different performance metrics
  • Constraint Optimization: Optimize under multiple constraints
Real-Time Optimization
  • Stream Processing: Optimize streaming data processing systems
  • Online Algorithms: Implement online optimization algorithms
  • Reactive Optimization: React to performance changes in real-time

Performance Metrics and KPIs

System Performance Metrics
  • Throughput: Measure system throughput and processing capacity
  • Latency: Monitor response times and latency characteristics
  • Resource Utilization: Track CPU, memory, disk, and network utilization
  • Availability: Monitor system availability and uptime
Application Performance Metrics
  • Response Time: Monitor application response times
  • Error Rates: Track error rates and failure patterns
  • Scalability: Measure application scalability characteristics
  • User Experience: Monitor user experience metrics
Infrastructure Performance Metrics
  • Network Performance: Monitor network bandwidth, latency, and packet loss
  • Storage Performance: Track storage IOPS, throughput, and latency
  • Compute Performance: Monitor compute resource utilization and efficiency
  • Energy Efficiency: Track energy consumption and efficiency

Optimization Strategies

Show full SKILL.md (305 more words)Show less
Algorithmic Optimization
  • Algorithm Selection: Select optimal algorithms for specific use cases
  • Complexity Reduction: Reduce algorithmic complexity where possible
  • Parallelization: Parallelize algorithms for better performance
  • Approximation: Use approximation algorithms for near-optimal solutions
System-Level Optimization
  • Resource Provisioning: Optimize resource provisioning strategies
  • Configuration Tuning: Tune system and application configurations
  • Architecture Optimization: Optimize system architecture for performance
  • Scaling Strategies: Implement optimal scaling strategies
Application-Level Optimization
  • Code Optimization: Optimize application code for performance
  • Database Optimization: Optimize database queries and structures
  • Caching Strategies: Implement optimal caching strategies
  • Asynchronous Processing: Use asynchronous processing for better performance

Integration Patterns

With Matrix Optimizer
  • Performance Matrix Analysis: Analyze performance matrices
  • Resource Allocation Matrices: Optimize resource allocation matrices
  • Bottleneck Detection: Use matrix analysis for bottleneck detection
With Consensus Coordinator
  • Distributed Optimization: Coordinate distributed optimization efforts
  • Consensus-Based Decisions: Use consensus for optimization decisions
  • Multi-Agent Coordination: Coordinate optimization across multiple agents
With Trading Predictor
  • Financial Performance Optimization: Optimize financial system performance
  • Trading System Optimization: Optimize trading system performance
  • Risk-Adjusted Optimization: Optimize performance while managing risk

Example Workflows

Cloud Infrastructure Optimization
  1. Baseline Assessment: Assess current infrastructure performance
  2. Bottleneck Identification: Identify performance bottlenecks
  3. Optimization Planning: Plan optimization strategies
  4. Implementation: Implement optimization measures
  5. Monitoring: Monitor optimization results and iterate
Application Performance Tuning
  1. Performance Profiling: Profile application performance
  2. Code Analysis: Analyze code for optimization opportunities
  3. Database Optimization: Optimize database performance
  4. Caching Implementation: Implement optimal caching strategies
  5. Load Testing: Test optimized application under load
System-Wide Performance Enhancement
  1. Comprehensive Analysis: Analyze entire system performance
  2. Multi-Level Optimization: Optimize at multiple system levels
  3. Resource Reallocation: Reallocate resources for optimal performance
  4. Continuous Monitoring: Implement continuous performance monitoring
  5. Adaptive Optimization: Implement adaptive optimization mechanisms

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.

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/agent-performance-optimizer of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in ruvnet/ruflo, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Agent Performance Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Performance Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Performance Optimizer this skillruvnet/ruflo74k2 repos~3.6kAutomated safety check: PassMIT
Browser Testing with Chrome DevToolsaddyosmani/agent-skills102k4 repos~3.5kAutomated safety check: WarnMIT
Perfupraullenchai/Rapid-MLX3.9k—~1.6kAutomated safety check: NotesCustom licence
Syncmetapawurb/hotpath-rs1.9k—~1.2kAutomated safety check: NotesMIT
Harmony Nextlinhay/harmony-next.skills360—~7.4kAutomated safety check: PassNone
Web Performancemozilla/firefox-devtools-mcp468—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Connects an agent to a real Chrome instance through the Chrome DevTools MCP server, so it can inspect the DOM, read console errors and profile performance directly.

    102k GitHub starsUsed in 4 repos~3.5k tokens
    Testing & QAAuto-check: warnings
  • Perfup

    raullenchai/Rapid-MLX

    Autonomous performance optimization: research, PoC, benchmark, implement, review, PR

    3.9k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Syncmeta

    pawurb/hotpath-rs

    Sync changes from the hotpath, hotpath-macros and hotpath-drain crates to their meta counterparts (hotpath-meta, hotpath-macros-meta and hotpath-drain-meta).

    1.9k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Harmony Next

    linhay/harmony-next.skills

    A skill your agent uses for HarmonyOS NEXT development help and local DevEco automation.

    360 GitHub stars~7.4k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Web Performance

    mozilla/firefox-devtools-mcp

    Find and fix why a website is slow by capturing and analyzing a Firefox performance profile, or by analyzing a profile the user already has (a saved file or a profiler.firefox.com share link).

    468 GitHub stars~1.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Dotnet Debugging

    novotnyllc/dotnet-artisan

    Debugs Windows and Linux/macOS applications (native, .NET/CLR, mixed-mode) with WinDbg MCP (crash dumps, !analyze, !syncblk, !dlk, !runaway, !dumpheap, !gcroot, BSOD), dotnet-dump, lldb with SOS…

    233 GitHub stars~2.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Questions about Agent Performance Optimizer

What does Agent Performance Optimizer do?

Agent skill for performance-optimizer - invoke with $agent-performance-optimizer. Agent Performance Optimizer is an agent skill from ruvnet/ruflo.

When should I use Agent Performance Optimizer?

Agent Performance Optimizer fits situations like: tasks that involve Performance optimization.

How do I install Agent Performance Optimizer in Claude Code?

Run `npx skills add ruvnet/ruflo --skill agent-performance-optimizer -a claude-code`. Or copy the skill folder (.agents/skills/agent-performance-optimizer in ruvnet/ruflo) into .claude/skills/agent-performance-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Agent Performance Optimizer in Codex?

Run `npx skills add ruvnet/ruflo --skill agent-performance-optimizer -a codex`. Or copy the skill folder (.agents/skills/agent-performance-optimizer in ruvnet/ruflo) into .agents/skills/agent-performance-optimizer in your project. Codex loads it when a task matches its description.

Can I use Agent Performance Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill agent-performance-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-performance-optimizer, .gemini/skills/agent-performance-optimizer, .github/skills/agent-performance-optimizer and .opencode/skills/agent-performance-optimizer in your project.

What does Agent Performance Optimizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Performance Optimizer is instructions for the agent only.

Does Agent Performance Optimizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Performance Optimizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Performance Optimizer use?

Agent Performance Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Performance Optimizer use?

About 3.6k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Performance Optimizer?

Skills that share tags, products or a category with Agent Performance Optimizer: Browser Testing with Chrome DevTools (addyosmani/agent-skills, 102k stars), Perfup (raullenchai/Rapid-MLX, 3.9k stars), Syncmeta (pawurb/hotpath-rs, 1.9k stars) and Harmony Next (linhay/harmony-next.skills, 360 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Performance Optimizer?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.