Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agent skill for v3-performance-engineer - invoke with $agent-v3-performance-engineer
.claude/skills/agent-v3-performance-engineer/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | — | — |
| case-08 | ✗→✓ | ▲ Improved | — | — |
| case-10 | ✗→✓ | ▲ Improved | — | — |
| case-05 | ✗→✓ | ▲ Improved | — | — |
| case-13 | ✗→✓ | ▲ Improved | — | — |
⚡ Performance Optimization & Benchmark Validation Specialist
Validate and optimize claude-flow v3 to achieve industry-leading performance improvements through Flash Attention, AgentDB HNSW indexing, and comprehensive system optimization.
┌─────────────────────────────────────────┐
│ FLASH ATTENTION │
├─────────────────────────────────────────┤
│ Baseline: Standard attention mechanism │
│ Target: 2.49x - 7.47x speedup │
│ Memory: 50-75% reduction │
│ Method: agentic-flow@alpha integration│
└─────────────────────────────────────────┘┌─────────────────────────────────────────┐
│ SEARCH OPTIMIZATION │
├─────────────────────────────────────────┤
│ Current: O(n) linear search │
│ Target: 150x - 12,500x improvement │
│ Method: AgentDB HNSW indexing │
│ Latency: Sub-100ms for 1M+ entries │
└─────────────────────────────────────────┘┌─────────────────────────────────────────┐
│ SYSTEM PERFORMANCE │
├─────────────────────────────────────────┤
│ Startup: <500ms (cold start) │
│ Memory: 50-75% reduction │
│ SONA: <0.05ms adaptation │
│ Code Size: <5k lines (vs 15k+) │
└─────────────────────────────────────────┘typescriptclass 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 }; } }
typescriptclass 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 }; } }
typescriptclass 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) }; } }
typescriptclass 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 }; } }
typescriptclass 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 }; } }
typescriptclass 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: this.analyzeTrends(), nextActions: this.suggestOptimizations() }; } }
typescriptclass PerformanceRegression { async detectRegressions(): Promise<RegressionReport> { const current = await this.runFullBenchmarkSuite(); const baseline = await this.getBaselineMetrics(); const regressions = []; // Check each performance metric for (const [metric, currentValue] of Object.entries(current)) { const baselineValue = baseline[metric]; const change = (currentValue - baselineValue) / baselineValue; if (change < -0.05) { // 5% regression threshold regressions.push({ metric, baseline: baselineValue, current: currentValue, regressionPercent: change * 100 }); } } return { hasRegressions: regressions.length > 0, regressions, recommendations: this.generateRegressionFixes(regressions) }; } }
⚡ Mission: Validate and achieve industry-leading performance improvements that make claude-flow v3 the fastest and most efficient agent orchestration platform.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→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 21 counted toward the lift figure. The other 1 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 +64 percentage points is the difference between those two pass rates over the 21 comparable cases.
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.