Fix Flaky Tests
Automatically identifies and resolves flaky test failures, boosting confidence in your test suite's stability and reliability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add fix-flaky-tests npx -- -y @trustedskills/fix-flaky-tests
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"fix-flaky-tests": {
"command": "npx",
"args": [
"-y",
"@trustedskills/fix-flaky-tests"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill helps AI agents identify and resolve flaky tests within a Tuist-managed project. It leverages the Tuist CLI to retrieve reliability metrics, analyze run histories, and pinpoint failure details for individual test cases. The agent can then use this information to understand the root cause of flakiness and ultimately fix the underlying issues, improving overall test suite stability.
When to use it
- When a specific flaky test case is identified and needs investigation.
- To proactively discover and address all flaky tests within a project.
- When troubleshooting intermittent failures that may be caused by flaky tests.
- To analyze patterns in flaky test runs (e.g., branch-specific failures, CI vs. local discrepancies).
- To understand the context of failing tests, including failure messages and file paths.
Key capabilities
- Retrieves reliability metrics for individual test cases (
tuist test case show). - Lists flaky test run patterns (
tuist test case run list --flaky). - Displays detailed information about specific flaky runs (
tuist test case run show). - Identifies all currently flagged flaky tests in a project (
tuist test case list --flaky). - Provides key fields for triage, including
avg_duration,is_quarantined, and failure message categorization.
Example prompts
- "Find me the reliability metrics for the test case Module/Suite/TestCase."
- "List all flaky tests in the project with a page size of 50."
- "Show me the details of this specific flaky test run:
<test-case-run-id>."
Tips & gotchas
- Requires access to and familiarity with the Tuist CLI.
- The skill relies on tests being properly integrated into a Tuist project for accurate identification and reporting.
- Understanding failure messages is crucial for identifying the root cause of flakiness, which may involve test logic bugs or infrastructure issues.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.