2025-06-25 16:51:53 +02:00
|
|
|
**Purpose**: Professional debugging and issue resolution
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/universal-constants.yml#Universal_Legend
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
## Command Execution
|
|
|
|
|
Execute: immediate. --plan→show plan first
|
|
|
|
|
Legend: Generated based on symbols used in command
|
|
|
|
|
Purpose: "[Action][Subject] in $ARGUMENTS"
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
Systematically debug and resolve issues in $ARGUMENTS using root cause analysis and evidence-based solutions.
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/flag-inheritance.yml#Universal_Always
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
Examples:
|
|
|
|
|
- `/troubleshoot "app crashes on startup"` - Debug crash
|
|
|
|
|
- `/troubleshoot --performance "slow API"` - Performance issues
|
|
|
|
|
- `/troubleshoot --interactive "login fails"` - Guided debugging
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
## Command-Specific Flags
|
|
|
|
|
--performance: "Focus on performance bottlenecks"
|
|
|
|
|
--memory: "Memory leak detection and analysis"
|
|
|
|
|
--network: "Network-related debugging"
|
|
|
|
|
--interactive: "Step-by-step guided troubleshooting"
|
|
|
|
|
--trace: "Enable detailed execution tracing"
|
|
|
|
|
--bisect: "Git bisect to find breaking commit"
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
## Troubleshooting Approach
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**1. Reproduce:** Isolate minimal reproduction | Document steps | Verify consistency | Capture full context
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**2. Gather Evidence:** Error messages & stack traces | Logs & metrics | System state | Recent changes | Environment differences
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**3. Form Hypotheses:** Most likely causes | Alternative explanations | Test predictions | Rule out possibilities
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**4. Test & Verify:** Targeted experiments | Change one variable | Document results | Confirm root cause
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**5. Fix & Prevent:** Implement solution | Add tests | Document fix | Prevent recurrence
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
## Common Issue Categories
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Performance:** Slow queries | Memory leaks | CPU bottlenecks | Network latency | Inefficient algorithms
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Crashes/Errors:** Null references | Type mismatches | Race conditions | Memory corruption | Stack overflow
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Integration:** API failures | Authentication issues | Version conflicts | Configuration problems | Network timeouts
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Data Issues:** Corruption | Inconsistency | Migration failures | Encoding problems | Concurrency conflicts
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/quality-patterns.yml#Root_Cause_Analysis
|
2025-06-24 21:24:14 +02:00
|
|
|
|
|
|
|
|
## Deliverables
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Root Cause Report:** Issue description | Evidence collected | Analysis process | Root cause identified | Fix implemented
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Fix Documentation:** What was broken | Why it broke | How it was fixed | Prevention measures | Test cases added
|
2025-06-24 21:24:14 +02:00
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
**Knowledge Base:** Problem→Solution mapping | Troubleshooting guides | Common patterns | Prevention checklist
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/universal-constants.yml#Standard_Messages_Templates
|