$npx -y skills add DNYoussef/context-cascade --skill performance-analysis/*============================================================================*/ /* SKILL SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* SKILL SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: SKILL |
| 7 | version: 1.0.0 |
| 8 | description: | |
| 9 | [assert|neutral] SKILL skill for operations workflows [ground:given] [conf:0.95] [state:confirmed] |
| 10 | category: operations |
| 11 | tags: |
| 12 | - general |
| 13 | author: system |
| 14 | cognitive_frame: |
| 15 | primary: aspectual |
| 16 | goal_analysis: |
| 17 | first_order: "Execute SKILL workflow" |
| 18 | second_order: "Ensure quality and consistency" |
| 19 | third_order: "Enable systematic operations processes" |
| 20 | --- |
| 21 | |
| 22 | /*----------------------------------------------------------------------------*/ |
| 23 | /* S0 META-IDENTITY */ |
| 24 | /*----------------------------------------------------------------------------*/ |
| 25 | |
| 26 | [define|neutral] SKILL := { |
| 27 | name: "SKILL", |
| 28 | category: "operations", |
| 29 | version: "1.0.0", |
| 30 | layer: L1 |
| 31 | } [ground:given] [conf:1.0] [state:confirmed] |
| 32 | |
| 33 | /*----------------------------------------------------------------------------*/ |
| 34 | /* S1 COGNITIVE FRAME */ |
| 35 | /*----------------------------------------------------------------------------*/ |
| 36 | |
| 37 | [define|neutral] COGNITIVE_FRAME := { |
| 38 | frame: "Aspectual", |
| 39 | source: "Russian", |
| 40 | force: "Complete or ongoing?" |
| 41 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 42 | |
| 43 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 44 | Kaynak dogrulama modu etkin. |
| 45 | |
| 46 | /*----------------------------------------------------------------------------*/ |
| 47 | /* S2 TRIGGER CONDITIONS */ |
| 48 | /*----------------------------------------------------------------------------*/ |
| 49 | |
| 50 | [define|neutral] TRIGGER_POSITIVE := { |
| 51 | keywords: ["SKILL", "operations", "workflow"], |
| 52 | context: "user needs SKILL capability" |
| 53 | } [ground:given] [conf:1.0] [state:confirmed] |
| 54 | |
| 55 | /*----------------------------------------------------------------------------*/ |
| 56 | /* S3 CORE CONTENT */ |
| 57 | /*----------------------------------------------------------------------------*/ |
| 58 | |
| 59 | # Performance Analysis Skill |
| 60 | |
| 61 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 62 | Kaynak dogrulama modu etkin. |
| 63 | |
| 64 | |
| 65 | |
| 66 | Comprehensive performance analysis suite for identifying bottlenecks, profiling swarm operations, generating detailed reports, and providing actionable optimization recommendations. |
| 67 | |
| 68 | ## Overview |
| 69 | |
| 70 | This skill consolidates all performance analysis capabilities: |
| 71 | - **Bottleneck Detection**: Identify performance bottlenecks across communication, processing, memory, and network |
| 72 | - **Performance Profiling**: Real-time monitoring and historical analysis of swarm operations |
| 73 | - **Report Generation**: Create comprehensive performance reports in multiple formats |
| 74 | - **Optimization Recommendations**: AI-powered suggestions for improving performance |
| 75 | |
| 76 | ## Quick Start |
| 77 | |
| 78 | ### Basic Bottleneck Detection |
| 79 | ```bash |
| 80 | npx claude-flow bottleneck detect |
| 81 | ``` |
| 82 | |
| 83 | ### Generate Performance Report |
| 84 | ```bash |
| 85 | npx claude-flow analysis performance-report --format html --include-metrics |
| 86 | ``` |
| 87 | |
| 88 | ### Analyze and Auto-Fix |
| 89 | ```bash |
| 90 | npx claude-flow bottleneck detect --fix --threshold 15 |
| 91 | ``` |
| 92 | |
| 93 | ## Core Capabilities |
| 94 | |
| 95 | ### 1. Bottleneck Detection |
| 96 | |
| 97 | #### Command Syntax |
| 98 | ```bash |
| 99 | npx claude-flow bottleneck detect [options] |
| 100 | ``` |
| 101 | |
| 102 | #### Options |
| 103 | - `--swarm-id, -s <id>` - Analyze specific swarm (default: current) |
| 104 | - `--time-range, -t <range>` - Analysis period: 1h, 24h, 7d, all (default: 1h) |
| 105 | - `--threshold <percent>` - Bottleneck threshold percentage (default: 20) |
| 106 | - `--export, -e <file>` - Export analysis to file |
| 107 | - `--fix` - Apply automatic optimizations |
| 108 | |
| 109 | #### Usage Examples |
| 110 | ```bash |
| 111 | # Basic detection for current swarm |
| 112 | npx claude-flow bottleneck detect |
| 113 | |
| 114 | # Analyze specific swarm over 24 hours |
| 115 | npx claude-flow bottleneck detect --swarm-id swarm-123 -t 24h |
| 116 | |
| 117 | # Export detailed analysis |
| 118 | npx claude-flow bottleneck detect -t 24h -e bottlenecks.json |
| 119 | |
| 120 | # Auto-fix detected issues |
| 121 | npx claude-flow bottleneck detect --fix --threshold 15 |
| 122 | |
| 123 | # Low threshold for sensitive detection |
| 124 | npx claude-flow bottleneck detect --threshold 10 --export critical-issues.json |
| 125 | ``` |
| 126 | |
| 127 | #### Metrics Analyzed |
| 128 | |
| 129 | **Communication Bottlenecks:** |
| 130 | - Message queue delays |
| 131 | - Agent response times |
| 132 | - Coordination overhead |
| 133 | - Memory access patterns |
| 134 | - Inter-agent communication latency |
| 135 | |
| 136 | **Processing Bottlenecks:** |
| 137 | - Task completion times |
| 138 | - Agent utilization rates |
| 139 | - Parallel execution efficiency |
| 140 | - Resource contention |
| 141 | - CPU/memory usage patterns |
| 142 | |
| 143 | **Memory Bottlenecks:** |
| 144 | - Cache hit rates |
| 145 | - Memory access patterns |
| 146 | - Storage I/O performance |
| 147 | - Neural pattern loading times |
| 148 | - Memory allocation efficiency |
| 149 | |
| 150 | **Network Bottlenecks:** |
| 151 | - API call latency |
| 152 | - MCP communication delays |
| 153 | - External service timeouts |
| 154 | - Concurrent request limits |
| 155 | - Network throughput issues |
| 156 | |
| 157 | #### Output Format |
| 158 | ``` |
| 159 | 🔍 Bottleneck Analysis Report |
| 160 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 161 | |
| 162 | 📊 Summary |
| 163 | ├── Time Range: Last 1 hour |
| 164 | ├── Age |