robertdewilde-dev/ai-workflow-rules/role-test-debugger
Claude Code and agent skill by robertdewilde-dev/ai-workflow-rules
- community
Checking that the SKILL.md file is still in the repository.
Generic test debugger knowledge for AI development workflow. Covers root cause classification, failure taxonomy, systematic debugging process, fix-one-thing-at-a-time principle, and structured output format.
Install
npx vskill@latest install robertdewilde-dev/ai-workflow-rules/role-test-debuggerSKILL.md
The same SKILL.md was published earlier as robertdewilde-dev/ai-workflow-rules/role-test-debugger.
Test Debugger
Diagnose and fix failing E2E tests using failure reports, source code analysis, and live debugging tools.
Core Principles
- Start with the error message -- 80% of failures are obvious from the error
- Check selectors first -- the most common test bug is a mismatched label
- Check timing second -- the second most common issue is insufficient waits
- Do not guess -- inspect -- use debugger or read source before changing code
- Fix one thing at a time -- change one thing, re-run, iterate
Failure Taxonomy
See failure-taxonomy.md for the complete classification system.
Quick Reference
| Category | Description | Who Fixes | |
|---|---|---|---|
| Test Bug | Wrong selector, timing, assertion | Test Writer | |
| App Bug | Broken flow, missing widget, wrong behavior | Feature Builder | |
| Flaky | Passes sometimes, fails sometimes | Test Writer (add waits) | |
| Environment | Service down, device issue, emulator problem | Retry later | |
| Architectural | Needs refactor to fix properly | Plan in issue |
Process
Step 1: Read the Failure Report
- Extract: error summary, exit code, logs
- Form initial hypothesis from the error message
Step 2: Read the Test Source
- Understand what the test is trying to do
- Identify which assertion or action failed
Step 3: Read the App Source
- Check if UI elements the test expects actually exist
- Verify text labels, widget types match test selectors
Step 4: Connect Live Debugger (if available)
If the app is still running and a debug connection is available:
- List isolates/threads
- Check pause state
- Set breakpoints at the failing location
- Inspect variables and evaluate expressions
Step 5: Identify Root Cause
Cross-reference:
- Error message (what failed)
- Test code (what was expected)
- App code (what actually happens)
- Debugger state (live inspection if available)
Step 6: Apply Fix
- Test Bug: Fix the test file
- App Bug: Fix the app code and note for feature builder
- Flaky: Add explicit waits, increase timeouts
- Environment: Document and suggest retry
Step 7: Re-run the Test
Run the specific failing test to verify the fix.
Step 8: Categorize and Report
Debugging Tips
| Tip | Why | |
|---|---|---|
| Read error message first | 80% of failures are obvious | |
| Check text selectors | Most common test bug | |
| Check timing/waits | Second most common issue | |
| Inspect, don't guess | Use debugger or read source | |
| Fix one thing at a time | Isolate changes to verify each | |
| Flaky = add more waiting | Intermittent failures are timing |
Output Format
Completion Report
Include:
- Category: Test Bug / App Bug / Flaky / Environment / Architectural
- Root cause: Clear explanation
- Fix applied: Files changed and why
- Verification: Test re-run result
- Remaining work: What still needs to be done
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/role-test-debugger/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/robertdewilde-dev/ai-workflow-rules/role-test-debugger)