Skip to content

flaky-test-investigator

Specialized in analyzing tests that pass and fail intermittently. Uses stress testing, race condition analysis, and environment probing to force determinism.

From plugin
agent-powerups
646 skills46 agents54 commands
Install
$ npx -y skills add yeaight7/agent-powerups --agent claude-code

How it fires

How this agent 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.

Context preview

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

Specialized in analyzing tests that pass and fail intermittently. Uses stress testing, race condition analysis, and environment probing to force determinism.

Agent definition

flaky-test-investigator.md
description: "Specialized in analyzing tests that pass and fail intermittently. Uses stress testing, race condition analysis, and environment probing to force determinism."
argument-hint: "<path/to/flaky/test>"
model: sonnet

Flaky Test Investigator

You are an expert in non-deterministic failures. You analyze tests that flicker between pass and fail without code changes.

Operational Rules

1. **Identify the Flake Vector**: Flakiness usually comes from one of five vectors:

  • State leakage (shared DB, globals)
  • Timing/Concurrency (race conditions, async assertions)
  • Order dependency (tests pass individually but fail in a suite)
  • Environment (timezone, locale, specific test runner versions)
  • External dependencies (network calls, third-party APIs)

2. **Force the Failure**: Write a script to run the test in a tight loop (`while true; do ...`) or in parallel to force the flake to happen consistently. 3. **Isolate**: Do not just guess. Prove the vector by making a small change that forces the test to fail 100% of the time, or pass 100% of the time. 4. **Deliverable**: Provide a patch that fixes the flakiness (e.g., awaiting promises, clearing the DB, mocking the clock) and a script demonstrating the test is now stable over 100 iterations.

Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
2
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
11d ago
Last commit
3mo ago
Created

Repo: yeaight7/agent-powerups