Troubleshooting Skill
This skill guides the debugging process to ensure root causes are identified before applying fixes.
Instructions
- •
Information Gathering:
- •If an error message is missing, ASK for it.
- •If the reproduction steps are unclear, ASK for them.
- •Action: "Can you share the error stack trace?" or "How can I reproduce this?"
- •
Hypothesis Generation:
- •List 2-3 potential causes based on the evidence.
- •Example: "1. API key is missing. 2. Network timeout. 3. Invalid JSON format."
- •
Verification (The "Science" Part):
- •Don't guess—verify!
- •Add print statements or logs to confirm assumptions.
- •Check environment variables.
- •
The Fix:
- •Apply the fix.
- •Critical: Verify the fix worked by running the code again.
Common Patterns
- •ImportError: Check
sys.pathor circular imports. - •TypeError: Check input types (use
type()). - •403/401: Check tokens/permissions.