/godmode:error-recoveryfrom GodMode
Counts failed fix attempts and escalates after repeated failures. Forces a new approach, rollback, or honest user report when retries loop without progress.
Ships in GodMode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
EVERY ATTEMPT IS COUNTED, AND AFTER THE THIRD FAILURE YOU STOP AND TELL THE USER
No exceptions. No workarounds. No shortcuts.
Required, as soon as any of these is true:
This skill overrides whatever strategy is currently failing.
Skip:
godmode:fault-diagnosis and keep the counter.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: ...
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.
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.
Escalate by the ladder below. The level is set by the counter, not by how close the last attempt felt.
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.
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"];
}
godmode:fault-diagnosis with a hypothesis that contradicts at least one of your earlier assumptions.| 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 reproduction outside the system |
| Trusted what you believe is running | Prove it: print the version, the path of the file actually loaded, the function actually called |
| Followed one library's approach | Read that library's current documentation and issue tracker (godmode:grounding) or try the standard approach |
| Assumed the test is right | Check the test's assumptions; or, if you assumed the test is wrong, assume it is right |
When attempts have made things worse, go back to the last state you know was good and start from there with what you learned.
git log, the last green CI run, the last checkpoint in the progress ledger).git switch to it, or git revert the failed commits on a shared branch). Do not rewrite shared history or run destructive commands without the user's agreement.| Rationalisation | Truth |
|---|---|
| "This is a different issue." | It appeared while you were fixing the first one. Same issue, same counter. |
| "I almost had it last time." | Two near-misses are a pattern, not progress. |
| "The approach is right; it just needs tweaking." | Three tweaks of one approach are one approach that has failed three times. |
| "One more log line will show it." | If three did not, you are logging in the wrong place. Change where you look. |
| "It must be a cache or an environment issue." | Prove it with a clean run before you act on it. |
| "Telling the user I am stuck looks bad." | Burning the user's time and money in a silent loop looks worse, and is. |
| "Let me refactor first and then fix it." | Refactoring while debugging turns one problem into two. |
| "The test must be wrong." | Usually the test is telling you the truth. Check its assumptions before you change it. |
Never:
Always:
godmode:fault-diagnosis: the four phases you return to at orange; it hands over to this skill after three failed fixes.godmode:completion-gate: proves the fix that finally worked.godmode:test-first: the regression test that pins the fix.godmode:grounding: current documentation and issue trackers when the stuck point is a library or platform.godmode:task-planning: when recovery shows the task was scoped or designed wrong, re-plan before continuing.godmode:workspace-isolation: keeping failed attempts on their own branch or worktree so rollback is cheap.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub noobygains/godmode --plugin godmode33 skills in this plugin
/agent-briefingUse when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff report between agents, or sending a message to another agent mid-task./codebase-conventionsUse when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration, error path or dependency, especially in a project the agent did not write or has not yet surveyed in this session./code-reviewUse when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the user asks for a review of a change, a branch or a pull request./completion-gateUse when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull request, closing a task, moving to the next task, or reporting a subagent's result as finished./cross-model-reviewUse 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 opinion on a change from a different model or a different AI vendor./delegated-executionUse when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each one can go to a fresh implementer subagent with its own review.Other plugins' skills for the same job