agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
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.
Claude Code
$ npx -y skills add NoobyGains/godmode --skill error-recovery --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill error-recovery -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill error-recovery -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill error-recovery -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill error-recovery -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill error-recovery -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill error-recovery -a windsurf -y
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."
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:**
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.
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"];
}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.
| 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
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.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
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…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
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…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration