cypress-flake-fixer
Skill by github
Finds and fixes flake-prone patterns in an existing Cypress suite, plus APIs removed in Cypress 12 to 16. Aimed at developers stabilizing specs or preparing an upgrade to Cypress 15 or 16.
Install cypress-flake-fixer
Built from the published package, never by AI.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/cypress-flake-fixer ~/.claude/skills/cypress-flake-fixerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-copilot/skills/cypress-flake-fixer ~/.gemini/antigravity-cli/skills/cypress-flake-fixerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cypress-flake-fixer in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill audits an existing Cypress test suite for code patterns that cause intermittent failures, such as fixed cy.wait() delays, force: true, and assertions that break retry-ability. It bundles a zero-dependency Node.js scanner that reads the Cypress version from package.json and grades removed APIs as errors or warnings. The skill then guides fixes in a set order, using intercept aliases, assertions, and cy.clock() in place of guessed waits.
The workflow asks for a failure baseline before any change, so a fix can be verified across repeated runs. The skill is intended for developers who need to diagnose and repair flaky specs, debug detached-DOM errors, or prepare a major Cypress upgrade. It explicitly avoids hiding problems with longer timeouts, retries, or force clicks.
Written from the project's SKILL.md and checked against it.
What it can do
- Anti-pattern scannerScans specs for fixed waits, assigned command values, force: true, and other flake-prone patterns.
- Removed API detectionFlags APIs such as Cypress.env(), cy.exec(), and cy.server()/cy.route() by Cypress major version.
- Baseline measurementRepeats a failing spec to record its failure rate before and after a fix.
- Fix orderingSets an order for applying fixes, starting with rules that show broken command flow.
- Wait replacement guidanceMaps each fixed wait to a replacement such as an intercept alias, assertion, or cy.tick().
- Before and after examplesProvides code examples for each scanner rule in a separate reference file.
- Migration code for removed APIsIncludes replacement code for Cypress.env() and cy.exec() in a separate reference file.
- Audit report formatSupplies a markdown template for reporting rule counts, unfixed items, and app issues.
What you need
- Node.js 18 or later
- A Cypress project with a package.json
Try asking
- Scan my Cypress suite for fixed cy.wait() delays and flaky patterns
- Find removed Cypress APIs I need to change before upgrading to Cypress 16
- Replace the cy.wait(2000) calls in checkout.cy.ts with intercept aliases
Good to know
- Scanner findings are heuristic and must be confirmed by opening each location
- Some rules, such as CY005, are judgement calls that need human review
- The strict mode adds low-confidence rules
- Application bugs exposed by tests must be reported, not worked around
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cypress-flake-fixer/SKILL.md, skills/cypress-flake-fixer/scripts/scan-cypress.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/anti-patterns.md9 KB -
references/removed-apis.md7 KB -
scripts/scan-cypress.mjs23 KB
Alternatives to cypress-flake-fixer
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cypress-flake-fixer: common questions
Does the scanner need Cypress installed?
No. The source says the scanner has no dependencies and does not need Cypress installed, but it requires Node.js 18 or later.
Will this skill make flaky tests pass with longer timeouts?
No. The source says not to raise defaultCommandTimeout, add retries, or add force: true to make a test pass, because these hide the failure.
How do I replace cy.wait with a fixed number of milliseconds?
The skill says not to swap it for a guess. It recommends waiting on a network alias, asserting the resulting DOM state, or using cy.clock() and cy.tick() for timers.
How do I install cypress-flake-fixer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cypress-flake-fixer free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cypress-flake-fixer safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cypress-flake-fixer?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
