Skill Error Recovery
Skill by aptratcn
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aptratcn/skill-error-recoveryname: error-recovery version: 2.0.0 description: 4R error recovery framework. Recognize, Rescue, Report, Remember. Never lose work silently. Trigger on: 'error', 'failed', 'crash', 'something went wrong', 'retry'. emoji: šØ
Error Recovery šØ
4R framework. Never lose work silently.
The 4 Rs
R1: RECOGNIZE ā Did something go wrong?
R2: RESCUE ā Can I recover automatically?
R3: REPORT ā Does the human need to know?
R4: REMEMBER ā What should I learn from this?
R1: RECOGNIZE (Don't Ignore Errors)
Error signals I must not ignore:
ā” Command exit code ā 0
ā” Exception thrown
ā” Timeout exceeded
ā” Empty/unexpected output
ā” "error", "failed", "exception" in logs
ā” Behavior different from expected
Anti-patterns:
- ā Command failed, but I continue anyway
- ā Error logged, but not mentioned in my response
- ā "Probably fine" without verification
What to do:
- Stop and acknowledge the error
- Read the full error message
- Check if it's recoverable or needs human input
R2: RESCUE (Can I Fix It?)
Automatic recovery strategies:
| Error Type | Recovery Strategy |
|---|---|
| Network timeout | Retry with exponential backoff (max 3) |
| Rate limit | Wait and retry |
| Missing dependency | Install/suggest installation |
| Permission denied | Suggest elevated permissions or fix |
| File not found | Create or point to correct path |
| Invalid input | Sanitize or request correct input |
| API error | Check status, retry if transient |
Retry protocol:
Attempt 1: Immediate
Attempt 2: Wait 5 seconds
Attempt 3: Wait 15 seconds
If all fail ā Report to human
When NOT to auto-retry:
- Authentication errors (wrong credentials)
- Permission errors (needs human action)
- Data validation errors (needs correct input)
- Destructive operation failures (don't risk double-execution)
R3: REPORT (Does Human Need to Know?)
Always report when:
- Auto-recovery failed after 3 attempts
- Error affects the final outcome
- Human action is required
- Something unexpected happened
Report format:
ā ļø Error encountered: [brief description]
What happened:
[What I was doing]
Error details:
[Full error message]
What I tried:
[Recovery attempts made]
Current state:
[What's broken / what's still working]
What I need:
[What human action is needed, if any]
Example:
ā ļø Error encountered: GitHub push failed
What happened:
Pushing to aptratcn/cognitive-debt-guard
Error details:
fatal: could not read Username for 'https://github.com'
What I tried:
1. Retried push (failed)
2. Checked git remote config
Current state:
- Commit is saved locally
- Not pushed to remote
What I need:
Git credentials not configured. Will try using token auth.
R4: REMEMBER (Learn From Errors)
After error recovery:
ā” Did this error happen before?
ā If yes, what's the pattern?
ā Document the fix
Metadata
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aptratcn-skill-error-recovery": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
xiaobai-workflow-enforcer
Xiaobai Workflow Enforcer - Mandatory workflows for AI Agents. Design before code. Test before implement. Verify before claim. Inspired by Superpowers (161K stars).
Aptratcn Prompt Guard
Skill by aptratcn
cognitive-debt-guard
Cognitive Debt Guard - Prevent the 23.5% incident spike from AI-generated code. Comprehension gates, review frameworks, and AI-free zones. Based on 2026 research.
deep-research-suite
Deep Research Suite - One command to aggregate, analyze, and synthesize research from multiple sources. Search ā Extract ā Summarize ā Report.
deep-research-suite
Deep Research Suite - One command to aggregate, analyze, and synthesize research from multiple sources. Search ā Extract ā Summarize ā Report.