error-recovery

Applies five standard recovery patterns to agent failures across squad workflows.

2|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/elbruno/ElBruno.MagenticUI --skill error-recovery-elbruno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: error-recovery
Source: https://github.com/elbruno/ElBruno.MagenticUI/tree/main/.squad/templates/skills/error-recovery
Command: npx skills add https://github.com/elbruno/ElBruno.MagenticUI --skill error-recovery-elbruno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When an agent hits a failure — a timeout, a build error, a missing tool — it often just reports the error and stops. This Skill gives every squad agent a shared playbook for adapting to failures instead of dead-ending, so tasks keep moving or escalate with useful context. ## Core Features & Use Cases - Five Recovery Patterns: Retry with Backoff, Fallback Alternatives, Diagnose-and-Fix, Escalate with Context, and Graceful Degradation, each with clear triggers and step-by-step procedures. - Failure-Type Selection Guide: A mapping table that pairs common failure types (network, build, auth, missing data) with primary and fallback recovery patterns. - Charter Integration: Guidance for embedding these patterns into each agent's charter under an Error Recovery section, tailored to that agent's domain. - Use Case: An agent's API call returns 429 Too Many Requests. Instead of failing the task, it retries with exponential backoff up to 3 times, then escalates to the coordinator with the exact errors and a root-cause hypothesis. ## Quick Start Apply the error-recovery patterns to handle any failure you encounter during this task, retrying transient errors and escalating with full context if recovery attempts are exhausted.

Frequently Asked Questions about error-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle transient API failures in an agent workflow?▼

Use the Retry with Backoff pattern: wait briefly, then retry starting at 2 seconds and doubling each attempt, up to 3 retries. Log each attempt with the error received, and escalate with context if all retries fail.

What should an agent do when a build or test fails?▼

Apply the Diagnose-and-Fix pattern: read the full error output, identify the root cause, attempt a targeted fix, and re-run to verify. Allow a maximum of 3 fix-retry cycles before escalating to the coordinator.

When should an agent escalate instead of retrying?▼

Escalate when recovery attempts are exhausted or the failure requires human judgment. The escalation should summarize what was attempted, include exact error messages, state the suspected root cause, and suggest next steps.

Can a task still deliver results if one step fails?▼

Yes, through Graceful Degradation. If the failed step is non-critical, log the failure, continue, and deliver partial results with a clear note of what was skipped, offering to retry the skipped step separately.

How do I choose the right recovery pattern for a failure?▼

Use the selection guide table: network or API transients map to Retry with Backoff, missing tools to Fallback Alternatives, build or test errors to Diagnose-and-Fix, and unknown errors to Escalate with Context.