New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Systematic diagnosis and repair of failing or intermittently passing Playwright tests, sorted into four failure categories.

skills.sh installs
1.7K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers reproduction via burn-in runs, trace capture, failure categorization, targeted fixes, and stability verification
  • Categorizes failures as timing/async, test isolation, environment, or infrastructure, each with a diagnostic command or check
  • Enforces verification that a fixed test passes 10 consecutive runs before the fix is accepted
  • Designed for Playwright suites where tests fail in CI but pass locally, or fail only inside a larger test run

Install

$ npx -y skills add alirezarezvani/claude-skills --skill fix -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Fix Failing or Flaky Tests

Diagnose and fix a Playwright test that fails or passes intermittently using a systematic taxonomy.

Input

$ARGUMENTS contains:

  • A test file path: e2e/login.spec.ts
  • A test name: ""should redirect after login"`
  • A description: "the checkout test fails in CI but passes locally"

Steps

1. Reproduce the Failure

Run the test to capture the error:

npx playwright test <file> --reporter=list

If the test passes, it's likely flaky. Run burn-in:

npx playwright test <file> --repeat-each=10 --reporter=list

If it still passes, try with parallel workers:

npx playwright test --fully-parallel --workers=4 --repeat-each=5

2. Capture Trace

Run with full tracing:

npx playwright test <file> --trace=on --retries=0

Read the trace output. Use /debug to analyze trace files if available.

3. Categorize the Failure

Load flaky-taxonomy.md from this skill directory.

Every failing test falls into one of four categories:

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Testing & QA, Debugging
First seen
May 16, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Fix

More Testing & QA