fix-loop

Automate iterative review-and-fix cycles for software projects with baseline tests.

23|7|Updated Sep 8, 2025
One-click install
npx skills add https://github.com/pvillega/claude-templates --skill fix-loop-pvillega
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-loop
Source: https://github.com/pvillega/claude-templates/tree/main/plugins/ct/skills/fix-loop
Command: npx skills add https://github.com/pvillega/claude-templates --skill fix-loop-pvillega

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill enables autonomous, iterative review-and-fix cycles that identify critical code issues and apply targeted fixes until the project passes its tests.

Core Features & Use Cases

  • Automated scope determination: selects files for review based on changes, commits, or user input.
  • Baseline & regression testing: runs the project's tests before making changes to distinguish pre-existing failures.
  • Controlled fix-loop: performs up to five iterations within a hard cap, focusing only on critical findings to avoid overreach.
  • Safety rails: limits destructive actions and requires confirmation before committing fixes.

Quick Start

Run an initial review loop on your project root to start the autonomous review-fix cycle.

Frequently Asked Questions about fix-loop

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

FAQPage Schema
How do I automate code review and bug fixes in a continuous loop?

Autonomous review-fix cycles automate this by extracting scope from changes or commits, running baseline tests, and applying targeted fixes iteratively. The process enforces a hard iteration cap and requires confirmation before committing any fixes.

What is an autonomous review-fix cycle and how does it work?

An autonomous review-fix cycle identifies critical code issues and applies targeted fixes iteratively until tests pass. It determines scope from recent commits or explicit input, runs a pre-fix baseline test, and enforces safety rails to limit destructive actions.

Can I run automated bug fixing on existing test failures without masking pre-existing errors?

Automated bug fixing runs a pre-fix baseline test before making changes to distinguish pre-existing failures from new regressions. This ensures iterative fix cycles address critical findings without masking unrelated test breaks.

Does automated code review require me to manually specify which files to check?

Automated code review does not require manual file specification. It automatically determines review scope by extracting changes from recent commits, identifying modified files, or accepting explicit user input to target the review accurately.

How many iterations will an automated bug fix loop attempt before stopping?

An automated bug fix loop attempts up to five iterations within a hard cap before stopping. This controlled limit focuses strictly on critical findings to avoid overreach and enforces safety rails throughout the process.

What safety guards prevent destructive actions during automated code fixes?

Safety guards during automated code fixes limit destructive actions and require explicit confirmation before committing fixes. These safety rails are built into the iterative review-fix workflow to prevent uncontrolled modifications to the software project.