resilient-connections
Patterns for building resilient API clients and real-time connections with retry logic, circuit breakers, and graceful degradation. Use when building production systems that need to handle failures. Triggers on retry logic, circuit breaker, connection resilience, exponential backoff, API client, fault tolerance.
Why use this skill?
Learn to implement robust retry logic, circuit breakers, and exponential backoff in your OpenClaw agents for reliable, fault-tolerant production systems.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/resiliant-connectionsWhat This Skill Does
The resilient-connections skill provides a robust architectural framework for building production-grade API clients and network-dependent services. In distributed systems, transient failures are an inevitability rather than an exception. This skill empowers your AI agent to implement sophisticated fault-tolerance patterns, including exponential backoff with jitter, state-based circuit breakers, and timed fetch requests. By integrating these patterns, you can prevent cascading failures, reduce the load on struggling downstream services, and ensure your system remains responsive even when parts of the network infrastructure are unstable.
Installation
To integrate this skill into your OpenClaw or Moltbot environment, use the following command:
npx clawhub@latest install resilient-connections
Use Cases
- Microservices Communication: Implement reliable service-to-service calls using retry logic to handle network blips without manual intervention.
- Rate-Limited API Integration: Manage requests to third-party APIs by combining exponential backoff with rate-limit awareness.
- Front-end Data Fetching: Create a wrapper around the Fetch API that automatically handles request timeouts and network instability for better user experiences.
- Database Connection Pools: Maintain active, healthy connections to database replicas using circuit breaker patterns to fail fast when a replica becomes unresponsive.
Example Prompts
- "Can you wrap my weather API call in a resilient-connections fetch wrapper with a 5-second timeout and 3 retries?"
- "Help me implement a circuit breaker for our payment processing service to prevent hanging requests when the provider is down."
- "Refactor my data fetching logic to include exponential backoff and jitter to avoid overwhelming our legacy server during peak traffic times."
Tips & Limitations
- Jitter is Essential: Always enable jitter in your backoff strategy to prevent the 'thundering herd' effect where multiple instances retry at the exact same moment, causing further congestion.
- Threshold Tuning: When configuring the circuit breaker, choose a failure threshold that is high enough to ignore momentary glitches but low enough to protect your system from prolonged outages.
- Limitations: This skill does not automatically fix business logic errors (like 400 Bad Request responses). It is primarily designed to handle transient network issues (5xx errors or timeouts). Ensure your error handling logic distinguishes between retriable errors and permanent failures.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-resiliant-connections": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.