self-correcting-loop

Read and fix all pre-commit hook errors in a single retry loop.

3|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Avinava/agentic-guardrail-ts --skill self-correcting-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-correcting-loop
Source: https://github.com/Avinava/agentic-guardrail-ts/tree/main/skills/self-correcting-loop
Command: npx skills add https://github.com/Avinava/agentic-guardrail-ts --skill self-correcting-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reads and fixes all pre-commit errors in a single pass to ensure commits succeed on retry.

Core Features & Use Cases

  • Parallel checks run in Lefthook to accelerate feedback loops.
  • One-pass fixes collects and applies all necessary corrections before retry.
  • Never bypass hooks enforces safe, repeatable commit integrity.

Quick Start

Run a commit with hooks enabled and allow the system to read errors, apply all fixes, and retry.

Frequently Asked Questions about self-correcting-loop

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

FAQPage Schema
How do I fix all pre-commit hook failures in a single retry?

To fix pre-commit hook failures in one retry, this Skill reads the complete error output from your pipeline, applies all necessary corrections in a single pass, and retries the commit without bypassing hooks.

Can I auto-correct Lefthook parallel check errors without bypassing hooks?

Yes, you can auto-correct Lefthook parallel check errors safely. The Skill collects errors from parallel checks, applies reproducible fixes, and retries the commit while enforcing safe, repeatable commit integrity.

Does this pre-commit auto-fix approach work with lint-staged and ESLint?

Yes, this pre-commit auto-fix approach works with lint-staged and ESLint. It reads the complete error output from your configured pre-commit workflow and applies all corrections before attempting a commit retry.

What's the best way to configure a one-pass TypeScript pre-commit fix loop?

The best way to configure a one-pass TypeScript pre-commit fix loop is to use a configured pre-commit workflow with parallel checks. The Skill reads the full error output and applies reproducible fixes before retrying.

Why do my pre-commit guardrails fail repeatedly even after auto-formatting?

Pre-commit guardrails fail repeatedly when fixes are applied incrementally instead of in one pass. This Skill solves the problem by collecting and applying all necessary corrections from the complete error output before a single retry.

Do I need a pre-configured pre-commit workflow to use this automated error correction?

Yes, you need a pre-configured pre-commit workflow to use this automated error correction. The Skill requires an existing setup to run hooks, read the complete error output, and apply reproducible fixes before retrying.