Skip to content
Back to skills

Retry Loop

ASecurity

Use when the same error message recurs after a fix attempt, or this is the 2nd+ try at the same fix. Stop varying the fix, state the exact error and the theory, then ask instead of trying a third variation. Includes an attempt-ledger protocol.

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 24, 2026
ai-agents

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add moah0911/aftermath --skill retry-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Retry Loop?

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

Security grade badge for Retry Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/moah0911-retry-loop/badge)](https://www.skillsdirectory.com/skills/moah0911-retry-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: retry-loop
description: >
  Use when the same error message recurs after a fix attempt, or this is the
  2nd+ try at the same fix. Stop varying the fix, state the exact error and
  the theory, then ask instead of trying a third variation. Includes an
  attempt-ledger protocol.
license: MIT
---

# Retry Loop

Same error twice means the theory is wrong, not the formatting.

## Attempt ledger

Keep one line per attempt. The distinction that matters:

- Same error, no edit in between → same attempt. Re-running did not test a new theory.
- Same error after an edit → 2nd failed attempt. Stop here.
- Green test, `/aftermath-revert`, or `/aftermath off` → ledger resets.

Format:

```
attempt 1 | changed: [hunk/flag] | error: [exact] | proved: [what it ruled out]
attempt 2 | changed: [hunk/flag] | error: [exact] | proved: [what it ruled out]
```

## Steps

1. Stop. No third variation.
2. Paste the exact error verbatim — not a paraphrase. Trim only repeated stack frames.
3. State the current theory in one line, labeled as theory until verified.
4. State what was already tried (attempt 1, attempt 2) and what each attempt proved.
5. Ask: confirm the theory with the user, or request the missing fact (log, version, repro step) instead of guessing it.
6. One deliberate next step only after the answer. If it fails identically, return to step 2 — do not widen scope.

## Forbidden

- Varying imports, flags, or syntax hoping the error changes shape.
- Filling a missing fact with a guess.
- Touching files outside the failing path to "see if it helps".
- Re-running the same command and calling it a new attempt.
- Disguising a command to get past an enforcement block.

Gap-filling must be said out loud. If the second attempt fails identically, the next move is a question, not attempt three.

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.