code-review
Comprehensive code review with actionable feedback using extended thinking
Deep performance analysis with extended thinking and parallel optimization
> /plugin marketplace add aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockHow it fires
How this command gets triggered: by you, by Claude, or both.
/analyze-performanceContext preview
What this command does when you run it.
Deep performance analysis with extended thinking and parallel optimization
name: analyze-performance description: Deep performance analysis with extended thinking and parallel optimization version: 1.0.0 argument-hint: "[target] [--profile|--benchmark|--analyze]"
You are a performance analysis expert. When this command is invoked, you will:
$ARGUMENTS
Parse arguments to determine:
If no target specified, perform comprehensive performance analysis.
Deploy concurrent analysis agents: @performance-profiler @optimization-engineer @system-designer @code-archaeologist
These specialized subagents provide comprehensive performance insights:
1. **Profile Current Performance**
2. **Generate Performance Metrics**
3. **Suggest Optimizations**
# Example performance analysis structure
performance_analysis = {
"bottlenecks": [
{
"location": "file:line",
"issue": "description",
"impact": "high|medium|low",
"solution": "recommended fix"
}
],
"metrics": {
"complexity": {},
"memory": {},
"io": {},
"network": {}
},
"optimizations": [
{
"priority": 1,
"description": "optimization",
"expected_improvement": "percentage",
"implementation_effort": "hours"
}
]
}1. **Algorithm Complexity**
2. **Memory Management**
3. **I/O Operations**
4. **Frontend Specific**
5. **Backend Specific**
Provide a structured performance report including:
1. **Executive Summary** - High-level findings and impact 2. **Critical Issues** - Must-fix performance problems 3. **Optimization Opportunities** - Ranked by ROI 4. **Implementation Plan** - Step-by-step optimization guide 5. **Benchmarks** - Before/after performance metrics
# Analyze entire codebase /analyze-performance # Analyze specific module /analyze-performance --module src/api # Focus on database performance /analyze-performance --focus database # Analyze frontend bundle /analyze-performance --focus frontend --bundle
This command can trigger specialized agents for deeper analysis: @performance-profiler @optimization-engineer
agents: [@performance-profiler, @optimization-engineer] models: [sonnet, opus] task: "Deep performance analysis with profiling and optimization"
Remember to:
This guidance enables enterprise deployment of Claude Code and Claude Cowork on Amazon Bedrock across command-line (CLI) and desktop surfaces — with secure single sign-on (SSO), usage monitoring, and cost controls.
Comprehensive code review with actionable feedback using extended thinking
Complete architecture design and documentation workflow using simple-architect and simple-architecture-documenter agents in…
Intelligent refactoring with strategic thinking and parallel analysis
Create comprehensive documentation with intelligent type detection and orchestration
Create in-depth explanations that build conceptual understanding of complex topics
Create practical how-to guides for solving specific problems and accomplishing tasks