recovery-loop-3strike

recovery-loop-3strike is a skill for Codex from markoblogo/abvx-agent-skills. It costs 66 tokens per session (425 once invoked), scanned A, original, MIT.

A bounded recovery process for failed execution or verification. It allows a retry with new evidence, a focused fix plan after a second failure, and an honest handoff after a third.

In plain words
What is it for?
Use it to record failure signals, likely causes, attempted fixes, and the next action when a task or verification step keeps failing.
Why use it?
It stops agents from endlessly retrying the same failing action without learning what is wrong.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to record failure signals, likely causes, attempted fixes, and the next action when a task or verification step keeps failing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markoblogo/abvx-agent-skills/recovery-loop-3strike
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add markoblogo/abvx-agent-skills --skill recovery-loop-3strike
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for recovery-loop-3strike

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike/github.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for recovery-loop-3strike

Your own site · 80×15
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/recovery-loop-3strike.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00425
Opus 5 $0.00033 $0.00212
Sonnet 5 $0.00013 $0.00085
Haiku 4.5 $0.00007 $0.00042

Measured 9d ago against content hash dc63989ad391, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

recovery-loop-3strike scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/recovery-loop-3strike/SKILL.md · 61 lines

What it actually says

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

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 61 lines · 66 tokens per session scan A dc63989ad391

Subscribe to this mod's changes

recovery-loop-3strike is a skill published in the GitHub repository markoblogo/abvx-agent-skills (16 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 425 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.