Skip to content
Back to skills

recovery-loop-3strike

ASecurity

Recover from failed execution or verification with a bounded three-step loop: retry, focused fix-spec, then honest handoff. Use when an agent is likely to spin on the same failure, when flaky environment issues blur the signal, or when you need a disciplined stop condition instead of endless optimistic retries.

  • 16 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added June 15, 2026
ai-agents

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned June 15, 2026

npx -y skills add markoblogo/abvx-agent-skills --skill recovery-loop-3strike --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of recovery-loop-3strike?

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

Security grade badge for recovery-loop-3strike
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/markoblogo-recovery-loop-3strike/badge)](https://www.skillsdirectory.com/skills/markoblogo-recovery-loop-3strike)

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: recovery-loop-3strike
description: "Recover from failed execution or verification with a bounded three-step loop: retry, focused fix-spec, then honest handoff. Use when an agent is likely to spin on the same failure, when flaky environment issues blur the signal, or when you need a disciplined stop condition instead of endless optimistic retries."
license: MIT
metadata:
  abvx_status: experimental
  abvx_origin: adapted
---

# Recovery Loop 3-Strike

Bound retries so failure handling becomes diagnostic instead of repetitive.

## Use When

- a verification step fails and the cause is not yet clear;
- the task is long enough that repeated blind retries are likely;
- you need an explicit escalation path for autonomous or semi-autonomous work.

## Core Rules

- Failure one is for learning, not denial.
- Each retry must add new evidence or a narrower hypothesis.
- After two failed passes, stop improvising and write a focused fix plan.
- After the third failure, hand off honestly instead of pretending the loop is still productive.

## Workflow

1. First failure:
   - capture the exact failing signal;
   - state the most likely cause;
   - retry once with one concrete probe or adjustment.
2. Second failure:
   - write a compact fix spec for the same phase or task slice;
   - constrain the change to the verified failure mode;
   - execute the fix and re-run verification.
3. Third failure:
   - stop;
   - mark the task or phase blocked;
   - hand off with probe history, attempted fixes, and best next action.

## Required Failure Record

For each strike, preserve:

- failing command or acceptance criterion;
- observed output or symptom;
- hypothesis tested;
- action taken;
- result.

## Anti-Patterns

- Do not spend all three strikes on the same unmodified action.
- Do not escalate to a large rewrite unless the evidence points there.
- Do not hide a blocker behind optimistic language.

## Final Report

State which strike resolved the issue, or provide a clean blocked handoff with evidence.

Files in this skill

  • SKILL.md2 KB
  • SKILL_CARD.md1.4 KB
  • agents/openai.yaml209 B

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.