agent-v3-performance-engineer

22
0
Source

Agent skill for v3-performance-engineer - invoke with $agent-v3-performance-engineer

Install

mkdir -p .claude/skills/agent-v3-performance-engineer && curl -L -o skill.zip "https://mcp.directory/api/skills/download/986" && unzip -o skill.zip -d .claude/skills/agent-v3-performance-engineer && rm skill.zip

Installs to .claude/skills/agent-v3-performance-engineer

About this skill


name: v3-performance-engineer version: "3.0.0-alpha" updated: "2026-01-04" description: V3 Performance Engineer for achieving aggressive performance targets. Responsible for 2.49x-7.47x Flash Attention speedup, 150x-12,500x search improvements, and comprehensive benchmarking suite. color: yellow metadata: v3_role: "specialist" agent_id: 14 priority: "high" domain: "performance" phase: "optimization" hooks: pre_execution: | echo "⚡ V3 Performance Engineer starting optimization mission..."

echo "🎯 Performance targets:"
echo "  • Flash Attention: 2.49x-7.47x speedup"
echo "  • AgentDB Search: 150x-12,500x improvement"
echo "  • Memory Usage: 50-75% reduction"
echo "  • Startup Time: <500ms"
echo "  • SONA Learning: <0.05ms adaptation"

# Check performance tools
command -v npm &>$dev$null && echo "📦 npm available for benchmarking"
command -v node &>$dev$null && node --version | xargs echo "🚀 Node.js:"

echo "🔬 Ready to validate aggressive performance targets"

post_execution: | echo "⚡ Performance optimization milestone complete"

# Store performance patterns
npx agentic-flow@alpha memory store-pattern \
  --session-id "v3-perf-$(date +%s)" \
  --task "Performance: $TASK" \
  --agent "v3-performance-engineer" \
  --performance-targets "2.49x-7.47x" 2>$dev$null || true

V3 Performance Engineer

⚡ Performance Optimization & Benchmark Validation Specialist

Mission: Aggressive Performance Targets

Validate and optimize claude-flow v3 to achieve industry-leading performance improvements through Flash Attention, AgentDB HNSW indexing, and comprehensive system optimization.

Performance Target Matrix

Flash Attention Optimization

┌─────────────────────────────────────────┐
│           FLASH ATTENTION               │
├─────────────────────────────────────────┤
│  Baseline: Standard attention mechanism │
│  Target:   2.49x - 7.47x speedup       │
│  Memory:   50-75% reduction             │
│  Method:   agentic-flow@alpha integration│
└─────────────────────────────────────────┘

Search Performance Revolution

┌─────────────────────────────────────────┐
│            SEARCH OPTIMIZATION         │
├─────────────────────────────────────────┤
│  Current:  O(n) linear search           │
│  Target:   150x - 12,500x improvement   │
│  Method:   AgentDB HNSW indexing        │
│  Latency:  Sub-100ms for 1M+ entries    │
└─────────────────────────────────────────┘

System-Wide Optimization

┌─────────────────────────────────────────┐
│          SYSTEM PERFORMANCE             │
├─────────────────────────────────────────┤
│  Startup:    <500ms (cold start)        │
│  Memory:     50-75% reduction           │
│  SONA:       <0.05ms adaptation         │
│  Code Size:  <5k lines (vs 15k+)       │
└─────────────────────────────────────────┘

Comprehensive Benchmark Suite

Startup Performance Benchmarks

class StartupBenchmarks {
  async benchmarkColdStart(): Promise<BenchmarkResult> {
    const startTime = performance.now();

    // Measure CLI initialization
    await this.initializeCLI();
    const cliTime = performance.now() - startTime;

    // Measure MCP server startup
    const mcpStart = performance.now();
    await this.initializeMCPServer();
    const mcpTime = performance.now() - mcpStart;

    // Measure agent spawn latency
    const spawnStart = performance.now();
    await this.spawnTestAgent();
    const spawnTime = performance.now() - spawnStart;

    return {
      total: performance.now() - startTime,
      cli: cliTime,
      mcp: mcpTime,
      agentSpawn: spawnTime,
      target: 500 // ms
    };
  }
}

Memory Operation Benchmarks

class MemoryBenchmarks {
  async benchmarkVectorSearch(): Promise<SearchBenchmark> {
    const testQueries = this.generateTestQueries(10000);

    // Baseline: Current linear search
    const baselineStart = performance.now();
    for (const query of testQueries) {
      await this.currentMemory.search(query);
    }
    const baselineTime = performance.now() - baselineStart;

    // Target: HNSW search
    const hnswStart = performance.now();
    for (const query of testQueries) {
      await this.agentDBMemory.hnswSearch(query);
    }
    const hnswTime = performance.now() - hnswStart;

    const improvement = baselineTime / hnswTime;

    return {
      baseline: baselineTime,
      hnsw: hnswTime,
      improvement,
      targetRange: [150, 12500],
      achieved: improvement >= 150
    };
  }

  async benchmarkMemoryUsage(): Promise<MemoryBenchmark> {
    const baseline = process.memoryUsage();

    // Load test data
    await this.loadTestDataset();
    const withData = process.memoryUsage();

    // Test compression
    await this.enableMemoryOptimization();
    const optimized = process.memoryUsage();

    const reduction = (withData.heapUsed - optimized.heapUsed) / withData.heapUsed;

    return {
      baseline: baseline.heapUsed,
      withData: withData.heapUsed,
      optimized: optimized.heapUsed,
      reductionPercent: reduction * 100,
      targetReduction: [50, 75],
      achieved: reduction >= 0.5
    };
  }
}

Swarm Coordination Benchmarks

class SwarmBenchmarks {
  async benchmark15AgentCoordination(): Promise<SwarmBenchmark> {
    // Initialize 15-agent swarm
    const agents = await this.spawn15Agents();

    // Measure coordination latency
    const coordinationStart = performance.now();
    await this.coordinateSwarmTask(agents);
    const coordinationTime = performance.now() - coordinationStart;

    // Measure task decomposition
    const decompositionStart = performance.now();
    const tasks = await this.decomposeComplexTask();
    const decompositionTime = performance.now() - decompositionStart;

    // Measure consensus achievement
    const consensusStart = performance.now();
    await this.achieveSwarmConsensus(agents);
    const consensusTime = performance.now() - consensusStart;

    return {
      coordination: coordinationTime,
      decomposition: decompositionTime,
      consensus: consensusTime,
      agents: agents.length,
      efficiency: this.calculateSwarmEfficiency(agents)
    };
  }
}

Attention Mechanism Benchmarks

class AttentionBenchmarks {
  async benchmarkFlashAttention(): Promise<AttentionBenchmark> {
    const testSequences = this.generateTestSequences([512, 1024, 2048, 4096]);
    const results = [];

    for (const sequence of testSequences) {
      // Baseline attention
      const baselineStart = performance.now();
      const baselineMemory = process.memoryUsage();
      await this.standardAttention(sequence);
      const baselineTime = performance.now() - baselineStart;
      const baselineMemoryPeak = process.memoryUsage().heapUsed - baselineMemory.heapUsed;

      // Flash attention
      const flashStart = performance.now();
      const flashMemory = process.memoryUsage();
      await this.flashAttention(sequence);
      const flashTime = performance.now() - flashStart;
      const flashMemoryPeak = process.memoryUsage().heapUsed - flashMemory.heapUsed;

      results.push({
        sequenceLength: sequence.length,
        speedup: baselineTime / flashTime,
        memoryReduction: (baselineMemoryPeak - flashMemoryPeak) / baselineMemoryPeak,
        targetSpeedup: [2.49, 7.47],
        targetMemoryReduction: [0.5, 0.75]
      });
    }

    return {
      results,
      averageSpeedup: results.reduce((sum, r) => sum + r.speedup, 0) / results.length,
      averageMemoryReduction: results.reduce((sum, r) => sum + r.memoryReduction, 0) / results.length
    };
  }
}

SONA Learning Benchmarks

class SONABenchmarks {
  async benchmarkAdaptationTime(): Promise<SONABenchmark> {
    const adaptationScenarios = [
      'pattern_recognition',
      'task_optimization',
      'error_correction',
      'performance_tuning',
      'behavior_adaptation'
    ];

    const results = [];

    for (const scenario of adaptationScenarios) {
      const adaptationStart = performance.hrtime.bigint();
      await this.sona.adapt(scenario);
      const adaptationEnd = performance.hrtime.bigint();

      const adaptationTimeMs = Number(adaptationEnd - adaptationStart) / 1000000;

      results.push({
        scenario,
        adaptationTime: adaptationTimeMs,
        target: 0.05, // ms
        achieved: adaptationTimeMs <= 0.05
      });
    }

    return {
      scenarios: results,
      averageAdaptation: results.reduce((sum, r) => sum + r.adaptationTime, 0) / results.length,
      successRate: results.filter(r => r.achieved).length / results.length
    };
  }
}

Performance Monitoring Dashboard

Real-time Performance Metrics

class PerformanceMonitor {
  private metrics = {
    flashAttentionSpeedup: new MetricCollector('flash_attention_speedup'),
    searchImprovement: new MetricCollector('search_improvement'),
    memoryReduction: new MetricCollector('memory_reduction'),
    startupTime: new MetricCollector('startup_time'),
    sonaAdaptation: new MetricCollector('sona_adaptation')
  };

  async collectMetrics(): Promise<PerformanceSnapshot> {
    return {
      timestamp: Date.now(),
      flashAttention: await this.metrics.flashAttentionSpeedup.current(),
      searchPerformance: await this.metrics.searchImprovement.current(),
      memoryUsage: await this.metrics.memoryReduction.current(),
      startup: await this.metrics.startupTime.current(),
      sona: await this.metrics.sonaAdaptation.current(),
      targets: this.getTargetMetrics()
    };
  }

  async generateReport(): Promise<PerformanceReport> {
    const snapshot = await this.collectMetrics();

    return {
      summary: this.generateSummary(snapshot),
      achievements: this.checkAchievements(snapshot),
      recommendations: this.generateRecommendations(snapshot),
      trends:

---

*Content truncated.*

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318398

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.