Skip to content
Back to skills

Failure Recovery Loop

ASecurity

Use when a test, build, install, CI job, tool call, or repeated attempt fails and the task must continue reliably.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsdebugging

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill failure-recovery-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Failure Recovery Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Failure Recovery Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-failure-recovery-loop/badge)](https://www.skillsdirectory.com/skills/shugokifable-failure-recovery-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: failure-recovery-loop
description: Use when a test, build, install, CI job, tool call, or repeated attempt fails and the task must continue reliably.
---

# Failure Recovery Loop

## Core rule
Failures are evidence. Preserve them, identify the **root cause**, and change one causal variable at a time.

## Loop
1. Capture the exact command, inputs, exit code, stderr/logs, and relevant state.
2. Classify: environment, dependency, syntax, logic, data, timing, permission, compatibility, or external service.
3. Form one falsifiable cause hypothesis.
4. Create the **smallest reproducer** that distinguishes that hypothesis.
5. Make the minimal causal change.
6. Re-run the reproducer. If it still fails, revise the hypothesis rather than stacking guesses.
7. Once green, run the original failing command and then the **full gate**.
8. Sweep sibling paths that share the same cause.

Never erase the evidence before understanding it. Do not turn a required failure into a warning merely to make the pipeline green. A retry without a causal change is not debugging.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…