graceful-error-recovery
Graceful Error Recovery
When something fails, diagnose before retrying.
Process:
- Read the full error message — do not skip the stack trace.
- Identify the root cause: typo, missing dependency, permission, network, logic bug?
- Fix the root cause, not just the symptom.
- If the fix is uncertain, try the simplest hypothesis first.
- If two retries fail, step back and consider an alternative approach.
Anti-patterns:
- Retrying the same failed call in a loop.
- Swallowing errors silently with bare
except: pass. - Blaming the environment before checking your own code.
More from aiming-lab/metaclaw
structured-step-by-step-reasoning
Use this skill for any problem that involves multiple steps, tradeoffs, or non-trivial logic. Think out loud before answering to improve accuracy and transparency. Apply whenever the answer is not immediately obvious.
12codebase-navigation
Use this skill when exploring an unfamiliar codebase, tracing code paths, or answering questions about how the system works. Read before writing, and build a mental model of the architecture before making changes.
12uncertainty-acknowledgment
Use this skill when you are not sure about a fact, have outdated knowledge, or the question is contested. Explicitly communicate the level of confidence instead of asserting uncertain things as fact.
11avoid-hallucinating-specifics
Common mistake — stating specific facts (API endpoints, library versions, config options, function signatures) with false confidence when uncertain. Always flag uncertainty rather than guessing specifics.
11secure-code-review
Use this skill when reviewing or writing code that handles user input, authentication, file I/O, network requests, or database queries. Always check for common security vulnerabilities before considering the code complete.
10plan-before-multi-step-execution
Use this skill before executing a sequence of 3 or more steps, especially when steps are irreversible or depend on each other. Write out the plan and verify it before starting execution.
9