fix-flaky-tests
Skill by tuist
Fixes flaky tests by analyzing failure patterns from Tuist test insights, finding root causes, and applying targeted corrections. It is for developers who want an assistant to investigate and repair unreliable tests.
Install fix-flaky-tests
Built from the published package, never by AI.
git clone --depth 1 https://github.com/tuist/tuist /tmp/tuist && mkdir -p ~/.claude/skills && cp -r /tmp/tuist/skills/skills/fix-flaky-tests ~/.claude/skills/fix-flaky-testsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/tuist/tuist /tmp/tuist && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tuist/skills/skills/fix-flaky-tests ~/.gemini/antigravity-cli/skills/fix-flaky-testsAntigravity 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
Fix Flaky Tests is an agent skill that investigates and fixes flaky tests using failure data from Tuist test insights. It can take a specific Tuist test case URL or identifier, or run without arguments to find all flaky tests in a project. The skill pulls reliability metrics, flaky run history and failure details through the tuist test commands, then opens the test source at the reported path and line.
The skill guides the assistant through common flaky patterns, such as missing waits, shared state, network calls and order dependence, and applies the smallest fix for the root cause. It then checks the fix by running the test repeatedly with xcodebuild. It is aimed at developers who use Tuist test insights with Xcode test suites.
Written from the project's SKILL.md and checked against it.
What it can do
- Discovery of flaky testsLists all test cases currently flagged as flaky in a project, with triage tips.
- Test case metricsShows reliability rate, flakiness rate, total and failed runs for a test case.
- Flaky run historyLists runs detected as flaky and the full run history for a test case.
- Failure detailsReads failure messages, source paths, line numbers and crash reports for a run.
- Flaky pattern diagnosisMatches the failure to common causes such as timing, shared state and environment issues.
- Targeted fixApplies the smallest code change that addresses the root cause, without unrelated refactoring.
- Repeated verificationRuns the test many times with xcodebuild to confirm it passes consistently.
- Race condition reproductionSuggests parallel runs and Thread Sanitizer to surface concurrency bugs.
What you need
- Tuist CLI
- Tuist test insights data for the project
- Xcode and xcodebuild
Try asking
- Fix the flaky tests in this project using Tuist test insights
- Investigate https://tuist.dev/{account}/{project}/tests/test-cases/{id} and fix it
- Show the flaky run history for MyModule/MySuite/MyTest
Good to know
- Some race conditions and CI-only failures may be hard to reproduce locally.
- Thread Sanitizer adds overhead that can change timing, so some races may not trigger.
- Iteration counts for repeated runs depend on test duration.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/skills/fix-flaky-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fix-flaky-tests
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
fix-flaky-tests: common questions
What does fix-flaky-tests need to start?
The source says it works from Tuist test insights and uses the tuist test case commands. It also uses xcodebuild to run tests repeatedly.
Can it fix one test or all flaky tests?
It can take a specific test case URL or identifier. Without arguments, it discovers all flaky tests in the project.
What if the flaky failure cannot be reproduced locally?
The source says the skill can proceed with a fix based on code analysis and failure logs when there is clear evidence of a bug, such as unsynchronized shared state.
How do I install fix-flaky-tests?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-flaky-tests free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is fix-flaky-tests safe to use?
It scores 79 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 fix-flaky-tests?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
