flaky-test-doctor
Skill by elastic
Diagnoses flaky or skipped Security Solution Cypress tests in the Kibana repository. It finds the root cause and recommends whether to migrate, move, delete, or fix the app. Built for Elastic Security developers and QA.
Install flaky-test-doctor
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/x-pack/solutions/security/plugins/security_solution/.agents/skills/flaky-test-doctor ~/.claude/skills/flaky-test-doctorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/x-pack/solutions/security/plugins/security_solution/.agents/skills/flaky-test-doctor ~/.gemini/antigravity-cli/skills/flaky-test-doctorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Flaky Test Doctor is an agent skill for Elastic's Security Solution tests. It helps analyze flaky or skipped Cypress tests and decide the right next step. The analysis runs in fixed steps: a validity check, environment tags, a search for duplicate coverage, a layer analysis, and a bug versus flakiness classification.
The skill recommends a destination for each test, such as Scout UI, an API test, a unit test, or deletion. It proposes a Cypress code fix only when the test is tagged @serverlessQA. It also includes a quick diagnostic script that shows skip status, git history, tags, linked issues, and imported helpers. The skill is written for Security Solution contributors who triage test stability issues in ESS, Serverless, and MKI environments.
Written from the project's SKILL.md and checked against it.
What it can do
- Validity checkChecks whether a skipped test's feature still exists using git history and selectors.
- Duplicate coverage searchLooks for existing coverage of the same behavior in Cypress, Scout, API, and unit tests.
- Layer analysisRecommends a destination layer: API test, unit test, Scout UI, or deletion.
- Bug versus flakiness classificationClassifies failures as real bug, flakiness, environment issue, or app bug exposed by a test.
- Test status diagnosticRuns a bash script that shows skip status, git history, tags, linked issues, and helpers.
- Scout migration guidancePoints to the Cypress-to-Scout migration skills for moving a test to Scout.
What you need
- A checkout of the Kibana repository with the Security Solution test folders
- Bash to run the quick diagnostic script
- Browser access to CI job links, with login if CI requires it
Try asking
- Why is this Security Solution Cypress test flaky? I will paste the file path.
- Should this skipped Cypress test be fixed, deleted, or migrated to Scout?
- Triage this test stability GitHub issue and recommend a next step.
Good to know
- Specific to the Security Solution plugin and its test locations.
- Proposes Cypress code fixes only for tests tagged @serverlessQA.
- Does not delete tests without explicit approval.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: x-pack/solutions/security/plugins/security_solution/.agents/skills/flaky-test-doctor/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to flaky-test-doctor
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
flaky-test-doctor: common questions
Does this skill edit Cypress tests directly?
Only for tests tagged @serverlessQA. For other tests it recommends migrating to Scout, moving coverage to API or unit tests, or deleting them.
Can it open CI logs for a failing test?
The skill says to open the CI or Buildkite link in the browser first. If login is needed, the user is asked to sign in or grant permissions.
Who is this skill for?
It is for Security Solution test triage, including flaky or skipped Cypress tests and test stability issues across ESS, Serverless, and MKI environments.
How do I install flaky-test-doctor?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is flaky-test-doctor free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is flaky-test-doctor safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, 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 flaky-test-doctor?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
