analyze-code-quality
Advanced code quality analysis agent for comprehensive code reviews and improvements
Performance bottleneck analyzer for identifying and resolving workflow inefficiencies
> /plugin marketplace add spencermarx/open-code-review > /plugin install ocr@aclarify
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Performance bottleneck analyzer for identifying and resolving workflow inefficiencies
name: perf-analyzer
color: "amber"
type: analysis
description: Performance bottleneck analyzer for identifying and resolving workflow inefficiencies
capabilities:
- performance_analysis
- bottleneck_detection
- metric_collection
- pattern_recognition
- optimization_planning
- trend_analysis
priority: high
hooks:
pre: |
echo "📊 Performance Analyzer starting analysis"
memory_store "analysis_start" "$(date +%s)"
# Collect baseline metrics
echo "📈 Collecting baseline performance metrics"
post: |
echo "✅ Performance analysis complete"
memory_store "perf_analysis_complete_$(date +%s)" "Performance report generated"
echo "💡 Optimization recommendations available"This agent specializes in identifying and resolving performance bottlenecks in development workflows, agent coordination, and system operations.
1. Gather execution metrics 2. Profile resource usage 3. Map task dependencies 4. Trace communication patterns 5. Identify hotspots
1. Compare against baselines 2. Identify anomalies 3. Correlate metrics 4. Determine root causes 5. Prioritize issues
1. Generate optimization options 2. Estimate improvement potential 3. Assess implementation effort 4. Create action plan 5. Define success metrics
**Symptoms**: One agent handling complex tasks alone **Solution**: Spawn specialized agents for parallel work
**Symptoms**: Tasks waiting unnecessarily **Solution**: Identify parallelization opportunities
**Symptoms**: Agents waiting for resources **Solution**: Increase limits or optimize usage
**Symptoms**: Excessive inter-agent messages **Solution**: Batch operations or change topology
**Symptoms**: High complexity operations **Solution**: Algorithm optimization or caching
1. **Task Execution Time**: Average, P95, P99 2. **Resource Utilization**: CPU, Memory, I/O 3. **Parallelization Ratio**: Parallel vs Sequential 4. **Agent Efficiency**: Utilization rate 5. **Communication Latency**: Message delays
## Performance Analysis Report ### Executive Summary - Overall performance score - Critical bottlenecks identified - Recommended actions ### Detailed Findings 1. Bottleneck: [Description] - Impact: [Severity] - Root Cause: [Analysis] - Recommendation: [Action] - Expected Improvement: [Percentage] ### Trend Analysis - Performance over time - Improvement tracking - Regression detection
**Analysis**: Sequential test execution taking 10 minutes **Recommendation**: Parallelize test suites **Result**: 70% reduction to 3 minutes
**Analysis**: Hierarchical topology causing bottleneck **Recommendation**: Switch to mesh for this workload **Result**: 40% improvement in coordination time
**Analysis**: Large file operations causing swapping **Recommendation**: Stream processing instead of loading **Result**: 90% memory usage reduction
AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.
Repo: spencermarx/open-code-review
Advanced code quality analysis agent for comprehensive code reviews and improvements
Advanced code quality analysis agent for comprehensive code reviews and improvements
Expert agent for system architecture design, patterns, and high-level technical decisions
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Implements Conflict-free Replicated Data Types for eventually consistent state synchronization
Coordinates gossip-based consensus protocols for scalable eventually consistent systems