fix

Diagnose and fix failing or flaky Playwright tests using a four-category taxonomy.

Updated Aug 14, 2026
One-click install
npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill fix-rohithdgrr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/Rohithdgrr/REEK-uninstaller/tree/main/.opencode/skills/fix
Command: npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill fix-rohithdgrr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Playwright tests that fail intermittently or only in CI are hard to debug without a systematic approach. This Skill provides a structured workflow to reproduce the failure, categorize its root cause, apply a targeted fix, and verify stability. ## Core Features & Use Cases - Systematic Reproduction: Runs tests with repeat-each, parallel workers, and tracing to reliably reproduce flaky failures. - Failure Taxonomy: Classifies every failure into Timing/Async, Test Isolation, Environment, or Infrastructure categories with matching fixes. - Verified Fixes: Requires 10 consecutive passing runs before considering a fix complete, plus prevention recommendations like retries and trace-on-first-retry. - Use Case: A checkout test passes locally but fails in CI. The Skill reproduces it with tracing, identifies an environment mismatch in viewport size, applies the fix, and confirms 10/10 stable runs. ## Quick Start Ask the AI to fix the flaky test in e2e/checkout.spec.ts that fails intermittently in CI.

Frequently Asked Questions about fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a flaky Playwright test?▼

First reproduce it with npx playwright test --repeat-each=10, then capture a trace with --trace=on. Categorize the failure as timing, isolation, environment, or infrastructure, apply the matching fix, and verify with 10 consecutive passing runs.

How to debug Playwright tests that fail in CI but pass locally?▼

This indicates an environment category failure. Compare CI versus local screenshots and traces, match viewport sizes, account for font rendering differences, and run tests in Docker locally to replicate the CI environment.

Why does my Playwright test pass alone but fail in the suite?▼

This is a test isolation problem caused by shared mutable state or leaked database data between tests. Fix it by creating per-test data via fixtures, using unique identifiers, and removing shared state.

What should I replace waitForTimeout with in Playwright?▼

Replace waitForTimeout with web-first assertions like toBeVisible() before interacting with elements, and wait for specific network responses before asserting. This eliminates timing-dependent flakiness.

How many times should a fixed test pass to confirm stability?▼

The fixed test must pass 10 consecutive runs using npx playwright test --repeat-each=10. If any run fails, return to the categorization step and re-diagnose the root cause.