skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Testing & QA / Cypress Flake Fixer Skill by @github
The skill is the skills/cypress-flake-fixer folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Finds and fixes flaky Cypress test patterns and APIs removed in recent Cypress versions.
A dependency-free scanner flags fixed waits, force clicks and async misuse. The workflow measures before changing, fixes in order and replaces each wait with the real condition.
The original SKILL.md is organised into these sections:
Written and maintained by @github. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# Cypress Flake Fixer
Audit an existing Cypress suite for the code patterns that cause intermittent failures, then fix them without hiding the problem behind retries, longer timeouts, or `force: true`.
## When to Use This Skill
- A Cypress spec passes locally and fails in CI, or fails once in every few runs
- The suite contains `cy.wait(<number>)`, `{ force: true }`, or tests that only pass in order
- Errors mention "detached from the DOM", "timed out retrying", or a subject that "is no longer attached"
- The project is upgrading Cypress across a major version (12 through 16)
- A review of Cypress test code is requested
For writing new Cypress tests from scratch, coding standards are enough. This skill is for diagnosing and repairing an existing suite.
## Prerequisites
- Node.js 18 or later to run the scanner (it has no dependencies and does not need Cypress installed)
- The Cypress version, read from `package.json`. Fixes differ by major version
## Workflow
### 1. Scan
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.