Skip to content
Agent Orchestration
Skill

/flaky-hunter

Diagnose and fix tests that pass sometimes and fail other times. Use when CI is red intermittently.

BOOST
From plugin
loopkit
75553 skills1 agent4 commands2 MCP
Install
$ npx -y skills add Archive228/loopkit --skill flaky-hunter --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/flaky-hunter

Context preview

The summary Claude sees to decide when to auto-load this skill.

Diagnose and fix tests that pass sometimes and fail other times. Use when CI is red intermittently.

SKILL.md

flaky-hunter.SKILL.md
name: flaky-hunter
description: Diagnose and fix tests that pass sometimes and fail other times. Use when CI is red intermittently.
when_to_use: intermittent CI failure, "passes locally fails in CI", a flaky test

Flaky Test Hunter

Run the suspect test 20x in a loop first — confirm it's actually flaky, not just broken. Common causes, in order of likelihood: 1. **Time/order** — depends on test execution order or shared mutable state. Isolate it; run alone. 2. **Async race** — asserting before a promise/refetch resolves. Await the actual condition, not a sleep. 3. **Real network/clock/random** — mock them. Freeze time, seed RNG, stub the call. 4. **Resource leak** — a prior test left a connection/file/port open. Fix the cause, not the symptom. `retry(3)` on a flaky test hides a real race that will bite in production. Quarantine only as a last resort, with a ticket.

Ships withloopkit

33 battle-tested skills + minimal .claude harness for any coding agent (Claude Code, Cursor, Codex, Gemini CLI).

Get the whole plugin

Other skills on loopkit.