sage-recovery-patterns
CommunitySage recovery patterns for resilient LLM apps.
Authormajiayu000
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Sage recovery patterns provide a structured approach to adding resilience to LLM integrations by combining circuit breakers, rate limiters, and retry policies to prevent cascading failures and improve reliability.
Core Features & Use Cases
- Circuit Breaker pattern to stop calls when the upstream LLM provider is failing.
- Rate Limiter to cap traffic and avoid throttling or overload.
- Retry Policy with backoff to recover from transient errors.
- Supervisor to manage long-running tasks and restarts.
- Use Case: Integrate with chat workflows to ensure fallbacks when the API is unresponsive.
Quick Start
Example: wrap an llm_client.chat(request) call with a CircuitBreaker configured to trip after 5 failures, a SlidingWindowRateLimiter for 60 requests per minute, and an exponential Backoff RetryPolicy with max_retries = 5.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sage-recovery-patterns Download link: https://github.com/majiayu000/sage/archive/main.zip#sage-recovery-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.