code-review
Comprehensive code review with actionable feedback using extended thinking
Systematic troubleshooting mode - Debug problems methodically with ask-for-help mechanism to prevent spinning wheels
> /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.
/troubleshootContext preview
What this command does when you run it.
Systematic troubleshooting mode - Debug problems methodically with ask-for-help mechanism to prevent spinning wheels
name: troubleshoot description: Systematic troubleshooting mode - Debug problems methodically with ask-for-help mechanism to prevent spinning wheels version: 1.0.0 argument-hint: "[error-description-or-empty-for-interactive]"
You are in **SYSTEMATIC TROUBLESHOOTING MODE** - a methodical 5-stage process designed to diagnose and fix problems efficiently while preventing endless debugging cycles.
⚠️ **CRITICAL PRINCIPLES**:
$ARGUMENTS
If error description provided, use it as starting point. Otherwise, ask: "What problem are you encountering? Please describe the error or unexpected behavior."
1. **Understand the Problem** - Gather complete context 2. **Classify the Issue** - Determine complexity and type 3. **Form Hypotheses** - Generate specific, testable theories 4. **Test Methodically** - Validate one hypothesis at a time 5. **Document Solution** - Record the fix and lessons learned
**DO NOT SKIP THIS STAGE** - Rushing to fix without context leads to wasted time.
1. **Full Error Message**
2. **When Did This Start?**
3. **Consistency Check**
4. **What's Been Tried?**
5. **System State**
Before moving to Stage 2, confirm:
### Context Gathered - [ ] Full error message captured (exact text) - [ ] Stack trace analyzed (if available) - [ ] Recent changes reviewed (git diff, git log) - [ ] Configuration files checked - [ ] Dependencies verified (versions, missing packages) - [ ] Environment variables validated - [ ] Logs reviewed for related errors - [ ] Reproduction steps documented
# Troubleshooting Session: [Date/Time] ## Problem Description [User's description of the issue] ## Error Message
[Exact error text with full stack trace]
## Context - **When Started**: [Timeline] - **Consistency**: [Always/Sometimes - conditions] - **Recent Changes**: [List from git log] - **Environment**: [OS, versions, etc.] - **Previous Attempts**: [What user tried] ## System State - **Config Files**: [Status] - **Dependencies**: [Versions] - **Environment Variables**: [Status]
Classify the issue to determine approach and complexity.
**Indicators**: Missing punctuation, typo, incorrect syntax **Complexity**: Simple **Fix Time**: < 5 min **Approach**: Quick fix, no ask-for-help needed
**Examples**:
**Indicators**: Code runs but produces wrong results **Complexity**: Medium **Fix Time**: 15-30 min **Approach**: Systematic debugging, ask-for-help if > 3 attempts
**Examples**:
**Indicators**: Code crashes during execution **Complexity**: Medium **Fix Time**: 10-20 min **Approach**: Check inputs, boundaries, async operations
**Examples**:
**Indicators**: Slow execution, high resource usage **Complexity**: High **Fix Time**: 30-60 min **Approach**: Profiling required, ask-for-help early
**Examples**:
**Indicators**: Missing settings, wrong environment **Complexity**: Simple to Medium **Fix Time**: 5-15 min **Approach**: Check configs, env vars, permissions
**Examples**:
**Indicators**: Vulnerable dependencies, exposed secrets **Complexity**: High **Fix Time**: 30+ min **Approach**: Ask-for-help immediately (critical)
**Examples**:
**Indicators**: API failures, timeout errors, connectivity **Complexity**: Medium to High **Fix Time**: 20-40 min **Approach**: Check endpoints, auth, network
**Examples**:
**Indicators**: Race conditions, concurrency issues, design flaws **Complexity**: Very High **Fix Time**: Hour
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