Graceful error recovery

From aiming-lab/MetaClaw · View interactive version

Graceful error recovery is an AI agent skill from the GitHub repository aiming-lab/MetaClaw. Use this skill when a tool call, command, or API request fails. Diagnose the root cause systematically before retrying or changing approach. Do not retry the same failing call without first understanding why it failed.

How to use this skill

Skill file

Graceful Error Recovery

When something fails, diagnose before retrying.

Process:

  1. Read the full error message — do not skip the stack trace.
  2. Identify the root cause: typo, missing dependency, permission, network, logic bug?
  3. Fix the root cause, not just the symptom.
  4. If the fix is uncertain, try the simplest hypothesis first.
  5. If two retries fail, step back and consider an alternative approach.

Anti-patterns:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.