# Flaky Test Smell Scan (Free, Offline)

> Statically finds what makes Python and JS/TS tests flaky: .only, sleeps, real clock, unseeded random, network calls, fixed ports, retries.

Flaky Test Smell Scan (Free, Offline) is a free AI agent skill on Agensi by Colton Mcclain, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Colton Mcclain](https://www.agensi.io/creators/colton-mcclain)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 4
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/flaky-test-smell-scan-free-offline
- Tags: testing, python, javascript

## About this skill

Flaky tests usually share a handful of causes: waiting on time, depending on the clock, randomness, the network, shared ports or paths, and hidden order dependence. This finds those spots so the user fixes causes instead of adding retries.

A repo or test folder. It reads `test_*.py`, `*_test.py`, `conftest.py`, and `*.test.*` / `*.spec.*` JS/TS files; skips `node_modules`, virtualenvs and build output. Add `# flaky-ok` on a line to silence a reviewed hit.

This skill bundles one standard-library Python file, `scripts/flaky_test_scan.py` (sha256 `d0a8cf1954a9cef29acffb0fc00c670f6fcc50a1d5cc42f1a9e96e32c5358693`). If it is not already on disk:

1. Write the bundled script text verbatim to a temp file outside the user's project, e.g. `T=$(mktemp --suffix=.py)`.
2. Check `sha256sum "$T"` equals `d0a8cf1954a9cef29acffb0fc00c670f6fcc50a1d5cc42f1a9e96e32c5358693`. If it differs, rewrite it; never edit it.
3. Run `python3 "$T" "/path/to/repo" [--min-sleep 100] [--json]` with each user path as a separately quoted argument.
4. Delete the temp file. Do not save the script into the project.

## Requires

- Python

## 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 Smell Scan (Free, Offline) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Flaky Test Smell Scan (Free, Offline) do?

Statically finds what makes Python and JS/TS tests flaky: .only, sleeps, real clock, unseeded random, network calls, fixed ports, retries.

### Which AI agents support Flaky Test Smell Scan (Free, Offline)?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Flaky Test Smell Scan (Free, Offline)?

Connect your AI agent to Agensi through MCP, then ask it to use Flaky Test Smell Scan (Free, Offline) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

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.
