robertdewilde-dev/ai-workflow-rules/role-test-debugger

Claude Code and agent skill by robertdewilde-dev/ai-workflow-rules

Trust tier 3
  • community
Source check pending

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-debugger

SKILL.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

  1. Start with the error message -- 80% of failures are obvious from the error
  2. Check selectors first -- the most common test bug is a mismatched label
  3. Check timing second -- the second most common issue is insufficient waits
  4. Do not guess -- inspect -- use debugger or read source before changing code
  5. 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
CategoryDescriptionWho Fixes
Test BugWrong selector, timing, assertionTest Writer
App BugBroken flow, missing widget, wrong behaviorFeature Builder
FlakyPasses sometimes, fails sometimesTest Writer (add waits)
EnvironmentService down, device issue, emulator problemRetry later
ArchitecturalNeeds refactor to fix properlyPlan 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

TipWhy
Read error message first80% of failures are obvious
Check text selectorsMost common test bug
Check timing/waitsSecond most common issue
Inspect, don't guessUse debugger or read source
Fix one thing at a timeIsolate changes to verify each
Flaky = add more waitingIntermittent failures are timing

Output Format

markdown
## Test Failure Analysis
### Failure
-**Test**: [test name]
-**Category**: [Test Bug / App Bug / Flaky / Environment / Architectural]
### Root Cause
[Clear explanation of what went wrong and why]
### Fix Applied
-**File**: [path]
-**Change**: [description]
-**Why**: [how this addresses the root cause]
### Verification
-[ ] Test re-run result: PASS / FAIL
-[ ] No side effects on other tests
### Prevention
[What to do differently to prevent this failure class]

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/robertdewilde-dev/ai-workflow-rules/role-test-debugger/badge)](https://verified-skill.com/skills/robertdewilde-dev/ai-workflow-rules/role-test-debugger)

Something wrong with this skill or its page? Tell us.