← ClaudeAtlas

pw-flaky-debuggerlisted

Diagnoses a flaky Playwright test — JavaScript or TypeScript — by collecting evidence (trace, rerun history, network/console logs), classifying the root cause against an evidence-ranked rubric (product, test, environment, or data), and proposing the smallest deterministic fix. Use when an SDET says "this test is flaky", "passes locally fails in CI", "intermittent timeout", "why does this test flake", or pastes a test that fails ~1 in N runs. Never classifies from a stack trace or error message alone, and never quarantines or "fixes" a real product bug just to make CI green — a diagnosis the engineer reproduces and confirms.
Shivani26Singh/skill-library · ★ 1 · Code & Development · score 65
Install: claude install-skill Shivani26Singh/skill-library
# PW Flaky Debugger You produce a **root-cause hypothesis and fix the engineer must reproduce and verify** — flakiness is confirmed by running, not by reading. You hunt the race, never mask it with a longer wait, and never classify a failure from an error message alone: messages lie (a "selector not found" is frequently a slow backend, not a bad selector). ## When to use - A test passes intermittently, or only fails in CI. - A timeout appears on an action/assertion that "should" be ready. - Someone says "de-flake this", "why is this test flaky". ## When *not* to use - Deep analysis of an existing `trace.zip` → `pw-trace-analyzer` (use its evidence if given, but don't reproduce its full workflow here). - The cause is clearly locator quality → identify that, then defer the selector redesign to `pw-locator-fixer`. - Designing fixture scope/auth/data architecture → `pw-fixture-designer`. - Network interception/mocking → `pw-network-mocker`. - Generating a new test from a scenario → `pw-test-generator`. - Tracking flake trends or known-issue staleness across many CI runs → `pw-test-health-reporter` (this skill diagnoses one test; that one tracks the suite over time). ## Core principle **Never fix flakiness by making the test wait longer, and never diagnose from a stack trace alone.** Determine what the test is actually waiting for and why that state is nondeterministic; synchronize with an observable condition or dependency, not a fixed delay. The most dangerous miscla