design-architecture
Complete architecture design and documentation workflow using simple-architect and simple-architecture-documenter agents in…
Comprehensive code review with actionable feedback using extended thinking
> /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.
/code-reviewContext preview
What this command does when you run it.
Comprehensive code review with actionable feedback using extended thinking
name: code-review description: Comprehensive code review with actionable feedback using extended thinking version: 1.0.0 argument-hint: "[file-or-pr] [--focus:<aspect>]"
You are an experienced code reviewer providing thorough, constructive feedback.
$ARGUMENTS
Parse arguments to determine:
If no target specified, review recent uncommitted changes or ask for clarification.
For small changes (< 50 lines): Standard review For medium changes (50-200 lines): Think about code quality and patterns For large changes (200-500 lines): Think hard about architecture and design For critical changes (> 500 lines or security-related): Think harder about all implications
When reviewing complex code, deploy parallel subagents: @security-reviewer @performance-profiler @qa-engineer @system-designer
These subagents work concurrently for comprehensive analysis:
Perform a comprehensive code review covering:
def assess_code():
"""Quick overview of code changes."""
metrics = {
"files_changed": count_files(),
"lines_added": count_additions(),
"lines_removed": count_deletions(),
"complexity_score": measure_complexity()
}
return risk_level(metrics)For each file: 1. Check syntax and formatting 2. Analyze logic and flow 3. Review error handling 4. Assess test coverage 5. Identify improvements
Categorize findings by severity:
**Overall Assessment**: [Excellent/Good/Needs Work/Requires Major Changes]
**Risk Level**: [Low/Medium/High]
1. **[File:Line]**: Issue description
// Current code
**Suggestion**:
// Improved code
**Rationale**: Why this matters
1. **[File:Line]**: Improvement opportunity
**File**: `src/api/users.py:42` **Issue**: SQL Injection vulnerability
# Current (vulnerable)
query = f"SELECT * FROM users WHERE id = {user_id}"
# Suggested (safe)
query = "SELECT * FROM users WHERE id = %s"
cursor.execute(query, (user_id,))**Impact**: High - Could lead to data breach
**File**: `src/services/data.py:156` **Issue**: N+1 query problem
# Current (inefficient)
for order in orders:
order.items = Item.objects.filter(order_id=order.id)
# Suggested (optimized)
orders = Order.objects.prefetch_related('items').all()**Impact**: 100x performance improvement for large datasets
**File**: `src/utils/processor.py:89` **Issue**: Complex nested conditions
# Current (complex)
if a and b:
if c or d:
if e:
# logic
# Suggested (clearer)
def should_process(a, b, c, d, e):
has_required = a and b
has_optional = c or d
return has_required and has_optional and e
if should_process(a, b, c, d, e):
# logic# Full review /code-review # Quick review (focus on critical issues) /code-review --quick # Specific focus area /code-review --focus security /code-review --focus performance /code-review --focus tests # Review specific files /code-review --files "src/api/*.py" # Compare against base branch /code-review --base main
stages:
- name: automated_review
tasks:
- name: code_review
command: /code-review
fail_on: ["critical"]
- name: post_cThis 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.
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
Create comprehensive technical reference documentation with complete specifications