Use when working with performance testing review multi agent review
Add this skill
npx mdskills install sickn33/performance-testing-review-multi-agent-reviewProvides conceptual framework for multi-agent code review but lacks actionable agent implementation steps
1---2name: performance-testing-review-multi-agent-review3description: "Use when working with performance testing review multi agent review"4---56# Multi-Agent Code Review Orchestration Tool78## Use this skill when910- Working on multi-agent code review orchestration tool tasks or workflows11- Needing guidance, best practices, or checklists for multi-agent code review orchestration tool1213## Do not use this skill when1415- The task is unrelated to multi-agent code review orchestration tool16- You need a different domain or tool outside this scope1718## Instructions1920- Clarify goals, constraints, and required inputs.21- Apply relevant best practices and validate outcomes.22- Provide actionable steps and verification.23- If detailed examples are required, open `resources/implementation-playbook.md`.2425## Role: Expert Multi-Agent Review Orchestration Specialist2627A sophisticated AI-powered code review system designed to provide comprehensive, multi-perspective analysis of software artifacts through intelligent agent coordination and specialized domain expertise.2829## Context and Purpose3031The Multi-Agent Review Tool leverages a distributed, specialized agent network to perform holistic code assessments that transcend traditional single-perspective review approaches. By coordinating agents with distinct expertise, we generate a comprehensive evaluation that captures nuanced insights across multiple critical dimensions:3233- **Depth**: Specialized agents dive deep into specific domains34- **Breadth**: Parallel processing enables comprehensive coverage35- **Intelligence**: Context-aware routing and intelligent synthesis36- **Adaptability**: Dynamic agent selection based on code characteristics3738## Tool Arguments and Configuration3940### Input Parameters41- `$ARGUMENTS`: Target code/project for review42 - Supports: File paths, Git repositories, code snippets43 - Handles multiple input formats44 - Enables context extraction and agent routing4546### Agent Types471. Code Quality Reviewers482. Security Auditors493. Architecture Specialists504. Performance Analysts515. Compliance Validators526. Best Practices Experts5354## Multi-Agent Coordination Strategy5556### 1. Agent Selection and Routing Logic57- **Dynamic Agent Matching**:58 - Analyze input characteristics59 - Select most appropriate agent types60 - Configure specialized sub-agents dynamically61- **Expertise Routing**:62 ```python63 def route_agents(code_context):64 agents = []65 if is_web_application(code_context):66 agents.extend([67 "security-auditor",68 "web-architecture-reviewer"69 ])70 if is_performance_critical(code_context):71 agents.append("performance-analyst")72 return agents73 ```7475### 2. Context Management and State Passing76- **Contextual Intelligence**:77 - Maintain shared context across agent interactions78 - Pass refined insights between agents79 - Support incremental review refinement80- **Context Propagation Model**:81 ```python82 class ReviewContext:83 def __init__(self, target, metadata):84 self.target = target85 self.metadata = metadata86 self.agent_insights = {}8788 def update_insights(self, agent_type, insights):89 self.agent_insights[agent_type] = insights90 ```9192### 3. Parallel vs Sequential Execution93- **Hybrid Execution Strategy**:94 - Parallel execution for independent reviews95 - Sequential processing for dependent insights96 - Intelligent timeout and fallback mechanisms97- **Execution Flow**:98 ```python99 def execute_review(review_context):100 # Parallel independent agents101 parallel_agents = [102 "code-quality-reviewer",103 "security-auditor"104 ]105106 # Sequential dependent agents107 sequential_agents = [108 "architecture-reviewer",109 "performance-optimizer"110 ]111 ```112113### 4. Result Aggregation and Synthesis114- **Intelligent Consolidation**:115 - Merge insights from multiple agents116 - Resolve conflicting recommendations117 - Generate unified, prioritized report118- **Synthesis Algorithm**:119 ```python120 def synthesize_review_insights(agent_results):121 consolidated_report = {122 "critical_issues": [],123 "important_issues": [],124 "improvement_suggestions": []125 }126 # Intelligent merging logic127 return consolidated_report128 ```129130### 5. Conflict Resolution Mechanism131- **Smart Conflict Handling**:132 - Detect contradictory agent recommendations133 - Apply weighted scoring134 - Escalate complex conflicts135- **Resolution Strategy**:136 ```python137 def resolve_conflicts(agent_insights):138 conflict_resolver = ConflictResolutionEngine()139 return conflict_resolver.process(agent_insights)140 ```141142### 6. Performance Optimization143- **Efficiency Techniques**:144 - Minimal redundant processing145 - Cached intermediate results146 - Adaptive agent resource allocation147- **Optimization Approach**:148 ```python149 def optimize_review_process(review_context):150 return ReviewOptimizer.allocate_resources(review_context)151 ```152153### 7. Quality Validation Framework154- **Comprehensive Validation**:155 - Cross-agent result verification156 - Statistical confidence scoring157 - Continuous learning and improvement158- **Validation Process**:159 ```python160 def validate_review_quality(review_results):161 quality_score = QualityScoreCalculator.compute(review_results)162 return quality_score > QUALITY_THRESHOLD163 ```164165## Example Implementations166167### 1. Parallel Code Review Scenario168```python169multi_agent_review(170 target="/path/to/project",171 agents=[172 {"type": "security-auditor", "weight": 0.3},173 {"type": "architecture-reviewer", "weight": 0.3},174 {"type": "performance-analyst", "weight": 0.2}175 ]176)177```178179### 2. Sequential Workflow180```python181sequential_review_workflow = [182 {"phase": "design-review", "agent": "architect-reviewer"},183 {"phase": "implementation-review", "agent": "code-quality-reviewer"},184 {"phase": "testing-review", "agent": "test-coverage-analyst"},185 {"phase": "deployment-readiness", "agent": "devops-validator"}186]187```188189### 3. Hybrid Orchestration190```python191hybrid_review_strategy = {192 "parallel_agents": ["security", "performance"],193 "sequential_agents": ["architecture", "compliance"]194}195```196197## Reference Implementations1981991. **Web Application Security Review**2002. **Microservices Architecture Validation**201202## Best Practices and Considerations203204- Maintain agent independence205- Implement robust error handling206- Use probabilistic routing207- Support incremental reviews208- Ensure privacy and security209210## Extensibility211212The tool is designed with a plugin-based architecture, allowing easy addition of new agent types and review strategies.213214## Invocation215216Target for review: $ARGUMENTS217
Full transparency — inspect the skill content before installing.