error-recovery

Apply retry, fallback, and escalation patterns to recover from squad errors.

619|188|Updated Jul 4, 2024
One-click install
npx skills add https://github.com/CommunityToolkit/Aspire --skill error-recovery-communitytoolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-recovery
Source: https://github.com/CommunityToolkit/Aspire/tree/main/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.copilot/skills/error-recovery
Command: npx skills add https://github.com/CommunityToolkit/Aspire --skill error-recovery-communitytoolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of error recovery for squad agents, ensuring that failures are not just reported but effectively managed and recovered from.

Core Features & Use Cases

  • Retry with Backoff: Handles transient failures like API timeouts and network errors by retrying with exponential backoff.
  • Fallback Alternatives: Provides strategies for using alternative tools or methods when the primary option fails.
  • Diagnose-and-Fix: Guides through structured error analysis and targeted fixes for build, test, and linting issues.
  • Escalate with Context: Ensures that when all recovery attempts fail, the issue is escalated with sufficient information for human intervention.
  • Graceful Degradation: Manages non-critical failures, allowing the overall task to continue while noting the issue.
  • Use Case: A software developer uses this Skill to manage a series of build failures by applying the "Retry with Backoff" pattern, which eventually resolves the issue without manual intervention.

Quick Start

To apply the "Retry with Backoff" pattern to an API call, use the command: 'error-recovery retry-api --url <api-url> --max-retries 3 --backoff 2s'.

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 timeouts and network errors in squad agents?

To handle transient API timeouts and network errors in squad agents, apply a retry with exponential backoff pattern. This recovery strategy automatically retries failed network requests at increasing intervals, resolving temporary outages without manual intervention.

What is the best way to manage tool failures when the primary method stops working?

The best way to manage tool failures is implementing fallback alternatives. This error recovery pattern automatically switches to secondary tools or methods when the primary option fails, ensuring the overall software development task continues without interruption.

How do I escalate complex software issues requiring human judgment effectively?

To escalate complex software issues requiring human judgment, use an escalation pattern that bundles full error context. This ensures failed recovery attempts are reported with sufficient diagnostic information for immediate human intervention.

Can I use error recovery patterns to manage non-critical failures without stopping the task?

Yes, you can manage non-critical failures without stopping the task by using a graceful degradation pattern. This system resilience strategy allows the main workflow to continue running while logging the non-critical issue for later analysis.

How do I diagnose and fix build, test, and linting issues automatically?

You diagnose and fix build, test, and linting issues by using a structured diagnose-and-fix pattern. This error recovery strategy guides agents through structured error analysis to apply targeted fixes for software development failures.

What are the limitations of automated error recovery for squad agents?

Automated error recovery for squad agents is limited by the nature of the failure; while retry logic and fallback strategies resolve transient or tool-specific issues, complex systemic failures ultimately require escalation with context for human judgment.