Skip to content
Agent Orchestration
Skill

/error-recovery

Use when a fix attempt has failed more than once for the same problem, when a fix for one problem causes another, when the same file keeps being edited without progress, when test results get worse, or when the work feels stuck in a loop.

From plugin
godmode
12333 skills1 agent2 hooks

Claude Code

$ npx -y skills add NoobyGains/godmode --skill error-recovery --agent claude-code

SKILL.md

error-recovery.SKILL.md
name: error-recovery
description: "Use when a fix attempt has failed more than once for the same problem, when a fix for one problem causes another, when the same file keeps being edited without progress, when test results get worse, or when the work feels stuck in a loop."

Error Recovery

Agents get stuck in a recognisable way: the same approach, retried with small variations, each attempt adding code and confidence but not progress. This skill counts the attempts, escalates at fixed thresholds and forces either a genuinely different approach, a rollback, or an honest report to the user. **Retries are bounded; the counter decides when to stop, not your optimism.**

The Prime Directive

EVERY ATTEMPT IS COUNTED, AND AFTER THE THIRD FAILURE YOU STOP AND TELL THE USER

No exceptions. No workarounds. No shortcuts.

When to Use

**Required, as soon as any of these is true:**

  • The same error, or the same failing test, survives two fix attempts.
  • A fix for one problem produces a new problem.
  • The same file has been edited three or more times for one issue.
  • Each attempt makes the code longer or more complex and the problem is not smaller.
  • The test suite has more failures than when you started.
  • You are reverting a change and trying a variation of it.
  • You hear yourself think "let me try one more thing".

This skill overrides whatever strategy is currently failing.

**Skip:**

  • The first failure of a fix. That is ordinary diagnosis; stay in `godmode:fault-diagnosis` and keep the counter.

The Protocol

1. **Open a failure log** for the issue the moment the first fix fails, and keep it in the task notes or the progress ledger so it survives a context reset:

   Issue: checkout total is off by one cent for some carts
   Attempt 1: rounded each line item to 2 decimals -> 3 carts still wrong
   Attempt 2: rounded the total instead of lines -> different 2 carts wrong
   Attempt 3: ...

2. **Count every attempt.** A small tweak counts. A variation of the same idea counts. Reverting and retrying counts. A new error that appeared while fixing this one belongs to the same issue and the same counter. The counter resets only when the issue is verified fixed or the user redefines the problem.

3. **Before each attempt, say its number.** "This is attempt 3 for the checkout rounding issue." Saying it out loud is what keeps the counter honest.

4. **Escalate by the ladder below.** The level is set by the counter, not by how close the last attempt felt.

5. **On recovery, verify and close.** When an attempt works, prove it with `godmode:completion-gate` (the regression test, the full suite, the original reproduction), record the attempt that worked and why the others did not, and close the log.

The Severity Ladder

digraph ladder {
    rankdir=TB;
    node [shape=box];
    fail [label="Fix attempt fails\ncounter + 1"];
    level [label="Counter?", shape=diamond];
    yellow [label="YELLOW (2)\nname what both attempts shared;\nnext attempt must differ in kind"];
    orange [label="ORANGE (3)\nstop fixing; re-diagnose from scratch;\nroll back if worse; tell the user"];
    red [label="RED (4+)\nhalt; honest assessment;\nwait for the user"];
    done [label="Verified fixed\nclose the log", shape=ellipse];

    fail -> level;
    level -> yellow [label="2"];
    level -> orange [label="3"];
    level -> red [label="4 or more"];
    yellow -> fail [label="next attempt fails"];
    yellow -> done [label="works"];
    orange -> fail [label="new hypothesis fails"];
    orange -> done [label="works"];
    red -> yellow [label="user gives direction:\nnew counter"];
}

Yellow: two failed attempts

  • Say it: "Two attempts have failed for this issue."
  • Write down what the two attempts had in common: the same file, the same layer, the same assumption, the same kind of change.
  • The next attempt must be **fundamentally different**, not a variation (see the table below). If you cannot name a different approach, go straight to orange.

Orange: three failed attempts

  • **Stop making fixes.**
  • Re-read the original error and the original requirement from scratch, as if for the first time.
  • Write three lists: what you know (with evidence), what you assumed, what you have not verified. The bug is usually in the second or third list.
  • If the code is now worse than when you started (more failures, more complexity), roll back to the last known-good state before going further (see below).
  • Go back through phases 1 to 3 of `godmode:fault-diagnosis` with a hypothesis that contradicts at least one of your earlier assumptions.
  • Tell the user where you are: "Three attempts have failed. Here is what I tried, what I now think is going on, and what I will try next." At orange you may make one more attempt on the new hypothesis while the user reads; at red you may not.

Red: four or more failed attempts

  • **Halt. No further attempts without the user's direction.**
  • Give an honest assessment, in this shape:

1. What the problem is, in one sentence. 2. Every attempt, one line each, and what each one taught you. 3. What you now believe the real cause is, and how sure you are. 4. Options, with your recommendation: a different design, more information from the user, a smaller scope, help from someone with access you lack, or stopping. "I may not be able to solve this in this environment" is an acceptable option when it is true.

  • Wait. When the user gives a direction, start a new counter for that direction.

Fundamentally Different, Not a Variation

| If every attempt so far... | ...a different approach is | |---|---| | Edited configuration | Read and change the code that consumes the configuration | | Patched the place the error appears | Trace the bad value to its source (`godmode:fault-diagnosis`) | | Added code (guards, special cases, retries) | Remove code: simplify until the bug has nowhere to hide | | Worked on the whole system | Build the smallest

Read more
@noobygains
Ships withgodmode

Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.

12333 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
123
Star history of NoobyGains/godmode on GitHub, a chart by star-history.com

Other skills on godmode.

agent-briefing

agent-briefing

Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…

@noobygains@noobygainsInstall Skill
code-review

code-review

Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…

@noobygains@noobygainsInstall Skill
codebase-conventions

codebase-conventions

Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…

@noobygains@noobygainsInstall Skill
completion-gate

completion-gate

Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…

@noobygains@noobygainsInstall Skill
cross-model-review

cross-model-review

Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…

@noobygains@noobygainsInstall Skill
delegated-execution

delegated-execution

Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…

@noobygains@noobygainsInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about error-recovery.

Which coding agents can use error-recovery?
error-recovery installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.