error-recovery

Apply deterministic recovery patterns to retry, fallback, diagnose, escalate, and degrade gracefully.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/Leep-GH/Lee-s-squad --skill error-recovery-leep-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-recovery
Source: https://github.com/Leep-GH/Lee-s-squad/tree/main/packages/squad-cli/templates/skills/error-recovery
Command: npx skills add https://github.com/Leep-GH/Lee-s-squad --skill error-recovery-leep-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes how squad agents recover from failures to preserve progress, maintain coordination, and reduce manual debugging.

Core Features & Use Cases

  • Retry with Backoff: automatically retry transient failures with increasing delays and logging.
  • Fallback Alternatives: switch to alternative tools or methods when the primary approach fails.
  • Diagnose-and-Fix: analyze error output, identify root causes, and apply targeted fixes.
  • Escalate with Context: summarize attempts, errors, and recommended next steps for humans.
  • Graceful Degradation: continue delivering value when non-critical steps fail, with clear notes on what was skipped.

Quick Start

Apply the error-recovery patterns automatically when a failure occurs to recover and continue workflow.

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 call failures in agent workflows?

Handle transient API call failures by applying retry with backoff patterns, which automatically retry failed operations using increasing delays and logging to preserve progress and minimize downtime.

What is graceful degradation and when should I use it for partial data scenarios?

Graceful degradation is a recovery pattern that continues delivering value when non-critical workflow steps fail, allowing agents to proceed with partial data while logging clear notes on skipped operations.

How do I implement fallback alternatives when primary tools fail during build workflows?

Implement fallback alternatives by switching agents to secondary tools or methods automatically when the primary approach fails, ensuring build workflows continue running without manual intervention.

What's the best way to escalate errors with context for manual debugging?

Escalate errors with context by summarizing automated recovery attempts, encountered errors, and recommended next steps, providing humans the exact information needed for manual debugging.

Can I use diagnose-and-fix patterns to resolve missing dependencies in squad agents?

Yes, diagnose-and-fix patterns analyze error output to identify root causes like missing dependencies, then apply targeted fixes to remediate the failure and restore agent coordination automatically.

Why does retry with backoff not work for persistent partial data errors?

Retry with backoff targets transient errors only; persistent partial data errors require diagnose-and-fix or graceful degradation patterns to analyze root causes or continue with reduced functionality.