self-correction-loop

Automate evidence-first correction loops after lint, test, or build failures.

14|Updated May 28, 2026
One-click install
npx skills add https://github.com/Redtropig/harness-anchor --skill self-correction-loop-redtropig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-correction-loop
Source: https://github.com/Redtropig/harness-anchor/tree/main/skills/self-correction-loop
Command: npx skills add https://github.com/Redtropig/harness-anchor --skill self-correction-loop-redtropig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Edits that trigger warnings or failures are common; this skill provides a disciplined loop to diagnose, implement minimal fixes, and verify completion, preventing thrashing.

Core Features & Use Cases

  • Evidence-first correction: capture exact errors, diagnose root causes, and apply minimal changes.
  • Structured loop with budgets: 1–2 iterations for surface issues; escalate to systematic-debugging for deeper problems.
  • Post-fix verification: re-run the same checks to ensure issues are resolved and maintain progress logs.

Quick Start

Start the self-correction loop whenever a warning or error is detected after editing, and complete a minimal fix that passes verification.

Frequently Asked Questions about self-correction-loop

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

FAQPage Schema
How do I automate fixing lint, test, and build failures after editing code?

A self-correction loop automates fixing lint, test, and build failures by capturing exact errors, diagnosing root causes, applying minimal fixes, and re-running checks to verify resolution.

What is the best way to stop thrashing when code edits trigger warnings or errors?

The best way to stop thrashing is a structured correction loop with iteration budgets, using 1–2 passes for surface issues before escalating deeper problems to systematic debugging.

How do I verify a minimal code fix actually resolved a test or lint failure?

To verify a minimal fix resolved a test or lint failure, re-run the same checks that initially detected the issue and maintain progress logs to confirm stability and prevent regressions.

When should I escalate a lint or build failure to systematic debugging?

You should escalate a lint or build failure to systematic debugging when the correction loop exhausts its 1–2 iteration budget for surface issues without resolving the root cause.

Does the automated correction loop work without external dependencies?

Yes, the automated correction loop works without external dependencies, requiring only the existing lint, test, and build checks in your software projects to capture errors and verify fixes.