test-fix

Run failing tests, apply minimal fixes, and re-run until green.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/yu-iskw/dbt-artifacts-parser-ts --skill test-fix-yu-iskw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-fix
Source: https://github.com/yu-iskw/dbt-artifacts-parser-ts/tree/main/.claude/skills/test-fix
Command: npx skills add https://github.com/yu-iskw/dbt-artifacts-parser-ts --skill test-fix-yu-iskw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill reduces the time and effort spent when tests fail by automating test execution, extracting error details, and applying minimal fixes to restore green status.

Core Features & Use Cases

  • Run the test suite from the repository root and report failures with the failing test name and error.
  • Read outputs, apply the smallest correct code change, and re-run tests until they pass or the iteration limit is reached.
  • Support monorepo projects using pnpm (or npm/yarn) with a defined test script to drive the fixer loop.

Quick Start

Run the fixer loop from the repository root to automatically execute tests, apply minimal fixes, and re-run until all tests pass.

Frequently Asked Questions about test-fix

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

FAQPage Schema
How do I automatically fix failing tests in a pnpm monorepo?

To automatically fix failing tests in a pnpm monorepo, run the fixer loop from the repository root. It executes the test script, reads error outputs, applies minimal code changes, and re-runs tests until they pass or a preset iteration limit is reached.

What is the best way to debug failing CI tests and apply minimal fixes?

Debugging failing CI tests through automated minimal fixes involves identifying failing tests, extracting error details from outputs, and applying the smallest correct code change to restore green status. The loop repeats until the suite passes or hits an iteration limit.

Can I use this automated test fixer with npm or yarn instead of pnpm?

Yes, you can use this automated test fixer with npm or yarn instead of pnpm. It supports monorepo projects using pnpm, npm, or yarn as long as your project has a defined test script to drive the fixer loop from the repository root.

How does the automated test fixer loop handle coverage concerns?

The automated test fixer loop handles coverage concerns by reporting them alongside test results. It continues applying the smallest correct changes until all tests pass or the preset iteration limit is reached.

What happens when the automated test fixer reaches the iteration limit?

When the automated test fixer reaches the iteration limit, it stops the fixer loop and reports the remaining test failures and any coverage concerns. This prevents infinite loops when minimal fixes cannot make the test suite green.