Flaky Test Analyzer
Installation
SKILL.md
Flaky Test Analyzer
What this skill does
This skill directs the agent to diagnose flaky tests — tests that sometimes pass and sometimes fail without any code changes. It examines the test code, the code under test, and the failure patterns to identify the root cause category (timing, shared state, ordering, network, randomness, etc.) and then suggests targeted fixes that make the test deterministic.
Use this when a test is unreliable in CI, when a test passes locally but fails on the CI server, or when a test fails intermittently with no obvious pattern.
How to use
Claude Code / Cline
Copy this file to .agents/skills/flaky-test-analyzer/SKILL.md in your project root.
Then ask:
- "Use the Flaky Test Analyzer skill on
tests/checkout.test.ts— it fails about 1 in 5 runs in CI." - "This test passes locally but fails in CI. Use the Flaky Test Analyzer skill to diagnose it."