src/superclaude/commands/troubleshoot.md
/sc:troubleshoot [issue] [--type bug|build|performance|deployment] [--trace] [--fix]
Key behaviors:
/sc:troubleshoot "Null pointer exception in user service" --type bug --trace
# Systematic analysis of error context and stack traces
# Identifies root cause and provides targeted fix recommendations
/sc:troubleshoot "TypeScript compilation errors" --type build --fix
# Analyzes build logs and TypeScript configuration
# Automatically applies safe fixes for common compilation issues
/sc:troubleshoot "API response times degraded" --type performance
# Performance metrics analysis and bottleneck identification
# Provides optimization recommendations and monitoring guidance
/sc:troubleshoot "Service not starting in production" --type deployment --trace
# Environment and configuration analysis
# Systematic verification of deployment requirements and dependencies
Will:
Will Not:
DIAGNOSE FIRST - FIXES REQUIRE --fix FLAG
This command is DIAGNOSIS-FIRST by default.
Default behavior (no --fix flag):
With --fix flag:
Explicitly Will NOT (without --fix flag):
Output: Diagnostic report containing:
Next Step: User reviews diagnosis, then either:
--fix flag to apply recommended fix/sc:improve for broader refactoring