Error Recovery Retry
Design robust error recovery, retry logic, and fallback strategies for production AI agents. Covers transient failure handling, circuit breakers, exponential backoff, state recovery, graceful degradation, and dead-letter queues for agent systems.
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill error-recovery-retrygit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/ai-ml/error-recovery-retry ~/.claude/skills/error-recovery-retryPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Error Recovery & Retry Logic for Agents ## Overview Agents fail. APIs time out. Models return garbage. Tools throw exceptions. The difference between a production-grade system and a prototype is how gracefully it fails. This skill covers comprehensive error recovery patterns — from simple retries to circuit breakers, stateful recovery, and human escalation paths. --- ## Core Concepts ### Failure Taxonomy | Failure Type | Example | Frequency | Recoverable? | |-------------|---------|-----------|-------------| | **Transient** | API timeout, network glitch | Common | ✅ Yes — retry | | **Rate Limited** | 429 Too Many Requests | Common | ✅ Yes — backoff | | **Validation** | Invalid tool parameters | Occasional | ✅ Yes — fix and retry | | **Model Error** | LLM returns nonsense | Occasional | ⚠️ Maybe — retry with different prompt | | **Context Overflow** | Token limit exceeded | Rare | ✅ Yes — compress and retry | | **Permission** | Agent lacks access | Rare | ❌ No — escalate | | **Security** | Injection attempt detected | Rare | ❌ No — alert and block | | **Permanent** | Tool deleted, endpoint gone | Rare | ❌ No — escalate to human | ### Recovery Strategy Decision Tree
Details
- Skill name
error-recovery-retry- Repository
- cosmicstack-labs/mercury-agent-skills
- Path
categories/ai-ml/error-recovery-retry/SKILL.md- License
- MIT
- Repo updated
- 25 August 2026
FAQ
What does the Error Recovery Retry skill do?
Design robust error recovery, retry logic, and fallback strategies for production AI agents. Covers transient failure handling, circuit breakers, exponential backoff, state recovery, graceful degradation, and dead-letter queues for agent systems.
How do I install the Error Recovery Retry skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill error-recovery-retry. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Error Recovery Retry popular?
It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.
Related skills
Accessibility
492cosmicstack-labs/mercury-agent-skills
Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.
Accessibility Testing
492cosmicstack-labs/mercury-agent-skills
WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation
Agent Audit Logging
492cosmicstack-labs/mercury-agent-skills
Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.
Gbrain Lite
492cosmicstack-labs/mercury-agent-skills
Lightweight personal knowledge base — markdown + YAML frontmatter structured notes with full-text search and cross-referencing for AI agents
Before You Build
492cosmicstack-labs/mercury-agent-skills
Use this before implementing a product, feature, SaaS, AI app, or side project to score product risk and choose the smallest validation step.
Prompt Engineering
492cosmicstack-labs/mercury-agent-skills
Learn and apply prompt engineering techniques and patterns. Master the art of crafting effective prompts for LLMs.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.