Test and Fix

Run pytest unit tests, diagnose failures, and iterate fixes until stable.

1|1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/DisposableByDefault/the-skill-vault --skill test-and-fix-disposablebydefault
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test and Fix
Source: https://github.com/DisposableByDefault/the-skill-vault/tree/main/test-and-fix
Command: npx skills add https://github.com/DisposableByDefault/the-skill-vault --skill test-and-fix-disposablebydefault

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the process of running unit tests, diagnosing failures, and iterating fixes until tests pass.

Core Features & Use Cases

  • Auto-detect failing tests across changes and run targeted test suites
  • Propose root-cause analyses and minimal code fixes
  • Re-run tests automatically until stability is achieved, with clear failure reporting

Quick Start

Run /test-and-fix from the project root to auto-detect changes, run tests, and apply fixes.

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 pytest unit tests and fix failing code automatically?

You can automate pytest unit tests and fix failing code by running the skill from your project root, which auto-detects changes, executes targeted test suites, proposes root-cause fixes, and re-runs tests until stability is achieved.

What is the best way to diagnose unit test failures and apply code fixes iteratively?

The best way to diagnose unit test failures and apply code fixes is to use an automated workflow that runs targeted tests, analyzes root causes, applies minimal code fixes, and re-runs tests to verify stability.

Do I need a specific configuration file to run automated tests and debugging?

Yes, you need a project-level configuration file at .claude/skill-config.md to run automated tests and debugging, which allows the tool to target changes and execute tests properly.

Can I select specific targeted tests to run instead of the full suite?

Yes, you can run specific targeted tests instead of the full suite, as the skill supports targeted test selection based on changes detected in your repository to streamline debugging.

How does the automated test runner handle code fixes and re-runs?

The automated test runner handles code fixes by proposing minimal fixes for diagnosed failures and automatically re-running the affected tests until stability is achieved, providing clear failure reporting.

What should I do if my unit tests keep failing after automated code fixes?

If your unit tests keep failing after automated code fixes, review the clear failure reporting provided by the test runner to manually diagnose root causes that may fall outside the automated iteration loop.