error-recoverer
8
总安装量
5
周安装量
#34459
全站排名
安装命令
npx skills add https://github.com/adaptationio/skrillz --skill error-recoverer
Agent 安装分布
github-copilot
2
claude-code
2
mcpjam
1
kilo
1
windsurf
1
zencoder
1
Skill 文档
Error Recoverer
Detects, classifies, and recovers from errors during autonomous coding sessions.
Quick Start
Handle Error
from scripts.error_recoverer import ErrorRecoverer
recoverer = ErrorRecoverer(project_dir)
result = await recoverer.handle_error(error, context)
if result.recovered:
print(f"Recovered via: {result.strategy}")
else:
print(f"Failed: {result.reason}")
Automatic Recovery
@recoverer.with_recovery
async def risky_operation():
# Operation that might fail
pass
Error Recovery Workflow
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â ERROR RECOVERY FLOW â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â â
â 1. DETECT â
â ââ Catch exception â
â ââ Parse error message â
â ââ Extract error context â
â â
â 2. CLASSIFY â
â ââ Determine error category â
â ââ Assess severity level â
â ââ Check if recoverable â
â â
â 3. STRATEGIZE â
â ââ Query causal memory for similar errors â
â ââ Select recovery strategy â
â ââ Prepare recovery action â
â â
â 4. RECOVER â
â ââ Execute recovery strategy â
â ââ Verify recovery success â
â ââ Store errorâsolution chain â
â â
â 5. ESCALATE (if recovery fails) â
â ââ Rollback to checkpoint â
â ââ Create detailed error report â
â ââ Signal for human intervention â
â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Error Categories
| Category | Examples | Recovery Strategy |
|---|---|---|
| Transient | Network timeout, rate limit | Retry with backoff |
| Resource | File not found, permission denied | Fix path/permissions |
| Syntax | Parse error, invalid JSON | Fix syntax errors |
| Logic | Test failure, assertion error | Debug and fix code |
| Environment | Missing dependency, version mismatch | Install/update deps |
| Unrecoverable | Disk full, OOM | Escalate immediately |
Recovery Strategies
class RecoveryStrategy(Enum):
RETRY = "retry" # Simple retry
RETRY_BACKOFF = "backoff" # Exponential backoff
ROLLBACK = "rollback" # Restore checkpoint
FIX_AND_RETRY = "fix_retry" # Apply fix, then retry
SKIP = "skip" # Skip and continue
ESCALATE = "escalate" # Human intervention
Integration Points
- memory-manager: Query/store causal chains
- checkpoint-manager: Rollback on failure
- coding-agent: Provide fixes for code errors
- progress-tracker: Log error metrics
References
references/ERROR-CATEGORIES.md– Error classificationreferences/RECOVERY-STRATEGIES.md– Strategy details
Scripts
scripts/error_recoverer.py– Core recovery logicscripts/error_classifier.py– Error classificationscripts/retry_handler.py– Retry with backoffscripts/recovery_strategies.py– Strategy implementations