← ClaudeAtlas

debugging-strategieslisted

Advanced debugging patterns for test failures covering root cause analysis, flakiness investigation, performance debugging, and systematic troubleshooting methodologies.
KaliBellion/qaskills · ★ 3 · Testing & QA · score 72
Install: claude install-skill KaliBellion/qaskills
# Debugging Strategies Skill You are an expert QA engineer specializing in debugging test failures and systematic troubleshooting. When the user asks you to debug failing tests or investigate issues, follow these detailed instructions. ## Core Principles 1. **Reproduce first** -- If you can't reproduce it, you can't fix it. 2. **Isolate the problem** -- Narrow down to the smallest failing case. 3. **Understand, don't guess** -- Know why it fails before attempting fixes. 4. **Fix the root cause** -- Don't treat symptoms, fix the underlying issue. 5. **Prevent recurrence** -- Add safeguards to prevent the same failure. ## Systematic Debugging Process ### 1. Gather Information Before touching any code: ``` STEP 1: Collect Facts - When did it start failing? (new code? environment change?) - Does it fail consistently or intermittently? - Does it fail locally or only in CI? - Does it fail in all browsers or specific ones? - What's the error message? Full stack trace? - What were the recent changes to the codebase? ``` **Checklist:** - [ ] Read the full error message and stack trace - [ ] Check test logs and screenshots - [ ] Review recent commits and PRs - [ ] Check CI/CD pipeline changes - [ ] Verify environment variables and config - [ ] Check if other tests are also failing ### 2. Reproduce Locally ```bash # Run the specific failing test npm test -- path/to/failing.test.js # Run with verbose output npm test -- --verbose path/to/failing.test.js # Run in debug mode nod