python-resilience

Implement retry and timeout handling for transient Python failures.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Jhabbig/Habbig --skill python-resilience-jhabbig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/Jhabbig/Habbig/tree/main/.claude/plugins/wshobson/python-development/skills/python-resilience
Command: npx skills add https://github.com/Jhabbig/Habbig --skill python-resilience-jhabbig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you make Python code resilient when external services fail, requests time out, or temporary network issues interrupt normal execution. It reduces manual retry logic and makes failure handling consistent across your codebase.

Core Features & Use Cases

  • Automatic retries: Add controlled retry behavior for transient failures without retrying permanent bugs or invalid inputs.
  • Exponential backoff and jitter: Space out repeated attempts to avoid overwhelming recovering services and reduce synchronized retry storms.
  • Timeouts, decorators, and fallback behavior: Wrap network calls with reusable timeout and tracing patterns, then return safe defaults when non-critical operations fail.
  • Use Case: A Python service calling an unreliable API can retry only retryable errors, stop after a bounded limit, log each attempt, and fall back gracefully if the dependency stays unavailable.

Quick Start

Use the python-resilience skill to add bounded retries, timeouts, and fail-safe behavior to a Python function that calls an unreliable external API.

Frequently Asked Questions about python-resilience

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

FAQPage Schema
How do I add retry logic to Python API calls?

Add retry logic to Python API calls by applying decorators that implement bounded retries for transient failures. This Skill automatically filters retryable errors and stops retrying permanent bugs or invalid inputs.

What is exponential backoff with jitter in Python fault tolerance?

Exponential backoff with jitter in Python fault tolerance spaces out repeated retry attempts to avoid overwhelming recovering services. Jitter randomizes delay timing to reduce synchronized retry storms across microservices.

How do I set timeouts and fallback defaults for unreliable network operations in Python?

Set timeouts and fallback defaults for unreliable network operations in Python by wrapping calls with timeout decorators. This Skill returns safe fail-safe defaults when non-critical external dependencies stay unavailable.

Can I use Python retry decorators for microservices and rate-limited services?

You can use Python retry decorators for microservices and rate-limited services. This Skill supports external API calls, network operations, and other fault-prone integrations with logging hooks and dependency injection.

When should I not use automatic retries in Python?

Avoid automatic retries in Python for permanent bugs or invalid inputs. This Skill uses retryable error filtering to ensure only transient failures trigger retries, stopping after a bounded limit to prevent infinite loops.