Works with the AI Agents you already use
Flaky Test Finder and Fixer
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$8
Flaky Test Finder and Fixer
Example session with this skill installed
Run the Flaky Test Finder and Fixer skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the flaky test finder
Here is what the Flaky Test Finder and Fixer skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
5 runs, 7 tests: broken 1, fixed 1, flaky 2, regressed 1, skipped 1, stable 1
[FLAKY] tests.test_checkout::test_pay_with_card
pattern PFPFP (2/5 failed, 4 flips) score 0.98 mean 0.7s max 0.9s
2x TimeoutError: timed out after Nms waiting for gateway <hex>
likely cause: timing / slow dependency
[FLAKY] tests.test_search::test_autocomplete
pattern PPFPF (2/5 failed, 3 flips) score 0.855 mean 0.7s max 0.9s
2x AssertionError: ECONNREFUSED N.N:N
likely cause: network / port / service not ready
[REGRESSED] tests.test_users::test_signup
pattern PPPFF (2/5 failed, 1 flips) score 0.0 mean 0.7s max 0.9s
2x IntegrityError: duplicate key value violates unique constraint users_email
likely cause: test order / leftover data
[BROKEN] tests.test_users::test_legacy_import
pattern FFFFF (5/5 failed, 0 flips) score 0.0 mean 0.7s max 0.9s
5x FileNotFoundError: fixtures/legacy.csv
[FIXED] tests.test_reports::test_export
pattern FFPPP (2/5 failed, 1 flips) score 0.0 mean 0.7s max 0.9s
2x AssertionError: expected N rows, got N
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Find, rank and fix flaky tests - a script parses JUnit XML from several CI runs or reruns (pytest, Jest, Vitest, PHPUnit, Playwright, Surefire/Gradle incl. flakyFailure) and classifies each test as flaky, regressed, fixed, broken or stable with a flakiness score, failure-message signatures and likely-cause hints; plus a root-cause checklist (timing, async waits, shared state, test order, time zones, randomness, network, resource limits) and a quarantine policy.
Who it's for
Use when the user says tests are flaky, intermittent, pass locally but fail in CI, fail only sometimes, need retries, or asks which tests to quarantine or fix first.
What's inside
- Tested, offline Python script(s): flaky_report.py (deterministic results, standard library only unless noted)
- Reference guides: root-causes.md, runner-commands.md, quarantine-policy.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Decision points
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/testing-qa-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Playwright
Node.jsvitestjest
Python 3.8+