Who it is forA developer whose test suite fails now and then on a file like tests/test_api.py and who wants a fix that holds up.
The problemA single attempt at a fix can pass once and still miss the input that makes the test flaky.
The outcomeA surviving fix with the attacks that broke weaker candidates, so you can check the reasoning before you apply it.
What you need first
- Claude Code, because the skill spawns sub-agents with the Agent tool
- Python 3.8 or newer
- git, to clone the repo (or copy the folder by hand)
- Tokens to pay for the sub-agent calls, which the README says is the main cost
Steps
- Clone and copy the skill as described in the install steps of the README
- Estimate the cost first with
python3 skills/arena/bracket.py plan --agents 32(inferred, check the README) - In Claude Code, run
/arena --agents 32 fix the flaky test in tests/test_api.py - Review the attacks the winning fix survived, especially any MAJOR or FATAL ones
- Run the test suite yourself, since the judges reason about the code but do not run it for you
Prompt for your agent
Use the arena skill from https://github.com/Jakeschincariol/arena-skill to run /arena --agents 32 on the flaky test in <test file>. Expected output: the winning fix, the attacks it survived and the round count. Verify the result by running the project's own test suite before you apply the change.
Caveat. The README does not say the skill runs your tests, so a surviving fix still needs a real test run from you.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Jakeschincariol/arena-skill and "Stress-test a fix for a flaky test"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer