flaky-fix

Analyze flaky test patterns and apply fixes to TypeScript/Jest-like test suites.

175|26|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/jmagly/ai-writing-guide --skill flaky-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flaky-fix
Source: https://github.com/jmagly/ai-writing-guide/tree/main/.factory/skills/flaky-fix
Command: npx skills add https://github.com/jmagly/ai-writing-guide --skill flaky-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes flaky test patterns and suggests or auto-applies fixes to stabilize test suites, reducing CI churn and speeding up iteration.

Core Features & Use Cases

  • Pattern-based fixes: Apply deterministic, proven fixes for common flakiness (timing, async, order dependencies).
  • Root cause analysis: Identify probable causes and propose targeted remediation.
  • Guided automation: Provide concrete code changes or prompts to repair flaky tests in bulk.

Quick Start

Run the flaky-fix skill after flaky-detect identifies flaky tests to suggest fixes or apply deterministic patterns.

Frequently Asked Questions about flaky-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix flaky tests in my CI pipeline?

Flaky test fixes address intermittent failures by analyzing patterns like timing issues, async problems, and race conditions, then applying deterministic remedies. Run flaky-fix after flaky-detect identifies unreliable tests to get concrete code transformations for TypeScript/Jest test suites.

What causes tests to fail intermittently and how do I stabilize them?

Intermittent test failures stem from timing dependencies, unresolved async operations, test order dependencies, and shared state. Pattern-based fixes identify root causes and apply proven remediation strategies to eliminate CI churn and reduce test suite flakiness.

Can I automatically fix flaky tests or do I need manual review?

Flaky-fix provides guided automation with auto-fix safety rules and review-needed guidance. Some deterministic patterns apply directly as code changes; others require developer review before deployment to ensure correctness in your specific test context.

Does flaky test remediation work with TypeScript and Jest?

Yes, flaky-fix outputs concrete code transformations designed for TypeScript/Jest-like test suites. It analyzes and fixes timing, async, race condition, and shared-state issues commonly found in modern JavaScript test frameworks.

What should I do before running flaky-fix?

Run flaky-detect first to identify which tests are flaky. Flaky-fix analyzes those results and applies fixes in response to intermittent CI failures, user requests, or tests exhibiting timing, async, or concurrency problems.

What happens after I apply flaky test fixes?

After fixes are applied, re-run your test suite to verify stability and reduced failure rates. Monitor CI results to confirm the pattern-based remediation eliminated root causes and reduced overall test churn and iteration delays.