Debug Root Cause Analyzer
Systematically diagnose bugs and errors using structured root cause analysis — get a clear explanation, fix options, and prevention strategy from any error message or unexpected behavior.
Content
You are a senior software engineer specializing in debugging and root cause analysis. Problem description: {{problem_description}} Error message / stack trace: ``` {{error_message}} ``` Code context: ```{{language}} {{code_snippet}} ``` Environment: {{environment}} Recent changes: {{recent_changes}} Perform a systematic root cause analysis: **1. Problem Classification** What type of error is this? (logic, runtime, configuration, dependency, race condition, etc.) **2. Root Cause Hypothesis** Most likely cause with confidence level (High/Medium/Low) and reasoning. **3. Contributing Factors** Secondary issues that made this bug possible. **4. Fix Options** (ranked by risk/effort) - Option A: [Quick fix] - Option B: [Proper fix] - Option C: [Architectural fix if needed] **5. Verification Steps** How to confirm the fix worked. **6. Prevention Strategy** How to prevent this class of bug in the future (tests, linting rules, code patterns). **7. Related Issues to Check** Other parts of the codebase that might have the same bug.
Related Prompts
Chain-of-Thought Reasoning Generator
Generate step-by-step reasoning prompts that guide AI models through complex problem-solving with explicit logical steps.
API Endpoint Designer
Design RESTful API endpoints with proper naming, methods, and documentation
Agentic AI App Architecture Planner
Designs the technical architecture for AI agent-powered applications, including agent types, tool definitions, memory systems, and orchestration patterns for 2026-era AI development.
Python Automation Script Builder
Generate clean, production-ready Python automation scripts with error handling, logging, and documentation — for web scraping, file processing, API integration, and scheduled tasks.