test-and-fix

Automate identification, analysis, and resolution of failing Vitest unit tests.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/yu-iskw/lightdash-tools --skill test-and-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-and-fix
Source: https://github.com/yu-iskw/lightdash-tools/tree/main/.claude/skills/test-and-fix
Command: npx skills add https://github.com/yu-iskw/lightdash-tools --skill test-and-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, pnpm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of identifying, analyzing, and fixing failing unit tests, reducing manual debugging time and ensuring code quality.

Core Features & Use Cases

  • Automated Test Execution: Runs unit tests using Vitest to detect failures.
  • Failure Analysis: Examines test output to pinpoint the cause of failures (code bugs or outdated tests).
  • Automated Fixing: Applies minimal changes to source code or test code to resolve failures.
  • Iterative Verification: Re-runs tests after fixes to confirm resolution.
  • Use Case: When your CI pipeline fails due to a broken test after a new feature is merged, this Skill can automatically attempt to fix it.

Quick Start

Run the test-and-fix skill to resolve any failing unit tests in the current project.

Frequently Asked Questions about test-and-fix

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

FAQPage Schema
How do I automate fixing failing Vitest unit tests in my CI pipeline?

Automating failing Vitest unit test fixes involves running tests, analyzing the output to pinpoint whether code bugs or outdated tests caused the failure, and applying minimal changes to resolve the build failures.

How does automated test failure analysis pinpoint the cause of broken unit tests?

Automated test failure analysis examines Vitest output to pinpoint the exact cause of failures, determining whether the issue stems from underlying code logic errors or outdated test assertions.

Do I need pnpm to run automated Vitest test fixing workflows?

Yes, you need pnpm installed because the automated test execution relies on pnpm to run the Vitest unit tests and verify that the applied code fixes resolve the failures.

Can I automatically resolve outdated test failures without manually debugging code logic?

Yes, you can automatically resolve outdated test failures by running an automated process that iteratively verifies fixes, applying minimal changes to source code or test code without manual debugging.

What are the limitations of using automation for resolving CI/CD test failures?

The limitation of automating CI/CD test failure resolution is that it requires strict adherence to project-specific testing guidelines and depends heavily on Vitest output clarity to apply minimal changes successfully.