test-fix-loop

Continuously find and fix failing Go tests in a worktree.

2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/lestrrat/claude-code --skill test-fix-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-fix-loop
Source: https://github.com/lestrrat/claude-code/tree/main/skills/test-fix-loop
Command: npx skills add https://github.com/lestrrat/claude-code --skill test-fix-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Continuously find and fix failing Go tests in a worktree, syncing with a parent branch between iterations. Use when user wants to fix all (or many) test failures in a branch via an automated loop. Args: <parent-branch> [test-args...]

Core Features & Use Cases

  • Orchestrates an automated loop across worktrees to locate and triage failing tests in Go projects.
  • Synchronizes with a designated parent branch, merges fixes back, and supports parallel agents.
  • Detects, reproduces, and guides debugging of first failing tests, then applies root-cause fixes and verifies via full test suite.

Quick Start

Start the loop by specifying a parent branch and optional test arguments to tailor the go test run.

Frequently Asked Questions about test-fix-loop

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

FAQPage Schema
How do I automate fixing failing Go tests in a branch?

Automate fixing failing Go tests using a continuous loop that detects the first failing test, applies a root-cause fix, and verifies the full test suite. It syncs with a parent branch between iterations to merge fixes back automatically.

What is the best way to debug multiple Go test failures across worktrees?

Debugging multiple Go test failures across worktrees is handled by an automated loop that detects, reproduces, and guides debugging of the first failing test. It then applies fixes and verifies them via the full test suite.

How do I run a continuous test and fix loop for a Go project?

Run a continuous test and fix loop by specifying a parent branch and optional test arguments to tailor the go test run. The loop will continuously find and fix failing tests, synchronizing with the parent branch between iterations.

Can I use parallel agents to fix Go test failures in worktrees?

Yes, you can use parallel agents to fix Go test failures in worktrees. The automated loop orchestrates locating and triaging failing tests, synchronizing with a designated parent branch and merging fixes back.

Does the automated Go test fix loop sync with a parent branch?

Yes, the automated Go test fix loop synchronizes with a designated parent branch between iterations. It merges applied root-cause fixes back to the parent branch and verifies them via the full test suite.

What are the limitations of automating Go test fixes in worktrees?

The automation targets finding and fixing failing Go tests but requires specifying a parent branch and optional test arguments. It focuses on the first failing test per iteration and may not handle complex multi-test interdependencies simultaneously.