error-recovery

Implement error recovery for timeouts, API failures, and partial successes in multi-agent workflows.

2|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/tianzecn/myclaudecode --skill error-recovery-tianzecn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-recovery
Source: https://github.com/tianzecn/myclaudecode/tree/main/plugins/orchestration/skills/error-recovery
Command: npx skills add https://github.com/tianzecn/myclaudecode --skill error-recovery-tianzecn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Error recovery is the practice of handling failures gracefully in multi-agent workflows, ensuring that temporary errors, timeouts, or partial failures don't derail entire workflows. In production systems with external dependencies (AI models, APIs, network calls), failures are inevitable. This skill provides battle-tested patterns for:

  • Timeout handling
  • API failure recovery
  • Partial success strategies
  • User cancellation
  • Missing tools
  • Out of credits
  • Retry strategies With proper error recovery, workflows become resilient and production-ready.

Core Features & Use Cases

  • Timeout handling: Detect and recover from long-running external model calls; allow retries or graceful fallback.
  • API failure recovery: Handle 4xx/5xx and network errors with safe fallback and retry policies.
  • Partial success strategies: Continue with available results and consolidate outputs.
  • User cancellation handling: Gracefully stop workflows and save partial results for later resume.
  • Retry and backoff: Implement exponential backoff and maximum retry limits.

Quick Start

Enable error-recovery patterns in your orchestration and configure a timeout and retry policy. For example, wrap external model queries with a 30s timeout and a 3-attempt retry.

Frequently Asked Questions about error-recovery

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

FAQPage Schema
How do I handle timeouts in multi-agent workflows?

Timeout handling detects long-running external model calls exceeding thresholds (e.g., >30s) and triggers retries or graceful fallback strategies. Configure a timeout policy, wrap queries with timeout detection, and define fallback behavior to prevent workflows from stalling on unresponsive dependencies.

What's the best way to recover from API failures in orchestrated workflows?

API failure recovery catches 4xx/5xx errors and network failures, then applies exponential backoff retries with configurable limits. Implement safe fallback strategies to continue execution with partial results, ensuring workflows remain resilient despite temporary API unavailability.

How do I retry failed operations with exponential backoff?

Exponential backoff retries implement increasing delays between retry attempts to avoid overwhelming failed services. Define maximum retry limits and backoff parameters, then apply them to error scenarios like timeouts and API failures to achieve reliable error recovery in production workflows.

Can I handle partial successes and continue workflows gracefully?

Partial success strategies consolidate available results when some steps fail, allowing workflows to continue with degraded functionality. This approach handles scenarios like missing tools or out-of-credits errors while preserving completed work and enabling downstream consolidation of outputs.

How do I implement user cancellation and save workflow state?

User cancellation handling gracefully stops workflows mid-execution and preserves partial results for later resumption. Detect cancellation signals, interrupt external calls, persist intermediate state, and provide mechanisms to resume without losing completed work.

What error types should I handle in production multi-agent systems?

Production error recovery addresses external model timeouts, API failures (401/500/network), user cancellation, missing tools, out-of-credits scenarios, and partial completion cases. Categorize each error type and apply appropriate retry, fallback, or degradation strategies to maintain system resilience.