# Flaky Test Detective for AI Coding Agents

> Diagnoses unreliable tests, identifies root causes, creates stabilization plans, and generates safe AI coding prompts for fixing flaky unit, integration, E2E, and CI tests.

Flaky Test Detective for AI Coding Agents is a subscription AI agent skill on Agensi by Shandra, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99/mo (subscription, cancel anytime)
- Creator: [Shandra](https://www.agensi.io/creators/shandra)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-05-24
- Security: scan passed (2026-05-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/flaky-test-detective-for-ai-coding-agents
- Tags: cypress, debugging, playwright, qa-automation, testing

## About this skill

Flaky Test Detective helps AI coding agents, developers, QA engineers, CI/CD teams, SaaS builders, and test automation teams investigate unreliable tests that pass and fail inconsistently. It analyzes flaky unit tests, integration tests, E2E tests, Playwright tests, Cypress tests, Selenium tests, Jest tests, Vitest tests, pytest tests, browser tests, API tests, database tests, and CI-only failures. The skill creates root cause hypotheses, failure pattern reports, async timing audits, selector stability reviews, test isolation plans, mock leakage checks, database cleanup reviews, CI environment comparisons, stabilization roadmaps, QA tickets, verification plans, and paste-ready prompts for Cursor, Claude Code, Codex CLI, OpenCode, Replit, and ChatGPT Agents. It is designed to restore trust in test suites by fixing real causes instead of hiding failures with retries, arbitrary sleeps, skipped tests, or weakened assertions.

## Known limitations

This skill creates flaky test diagnosis reports, root cause hypotheses, stabilization plans, and AI coding prompts, but it does not guarantee that every flaky test will be fixed without access to test code, application code, CI logs, traces, screenshots, repeated runs, environment details, and human review. Some intermittent failures are caused by real product race conditions, external services, infrastructure instability, browser differences, or environment-specific behavior that require deeper debugging and repeated verification.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Flaky Test Detective for AI Coding Agents skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Flaky Test Detective differ from simply rerunning failed tests in CI?

This skill analyzes logs and code to identify the exact cause of non-deterministic failures—such as race conditions, leaky mocks, or CSS selector instability—and provides structured remediation plans rather than just recommending retries.

### Which AI coding agents and IDEs is this skill compatible with?

The skill generates optimized, "paste-ready" prompt templates specifically formatted for tools like Cursor, Claude Code, Replit, and GitHub Copilot to ensure they apply the fix without introducing new regressions.

### Can this skill diagnose flakes across different testing frameworks and layers?

Yes, it supports a wide array of frameworks including Playwright, Cypress, Selenium, Jest, Vitest, and pytest, covering everything from low-level unit tests to complex end-to-end browser workflows.

### What exactly is included in the purchase of this skill?

You will receive the core diagnostic logic, specialized root-cause analysis templates, stabilization roadmap generators, and a library of AI agent prompts designed for safe test refactoring.

### Do I need to grant the skill direct access to my CI/CD environment or private repositories?

If you have the logs and the test code, this skill can help; it excels at identifying environment-specific issues by comparing local execution data against CI failure patterns.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
