retry-with-backoff

Retry API calls and command-line operations with exponential backoff on transient errors.

1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/jimmymalhan/codereview-pilot --skill retry-with-backoff
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: retry-with-backoff
Source: https://github.com/jimmymalhan/codereview-pilot/tree/main/.claude/skills/retry-with-backoff
Command: npx skills add https://github.com/jimmymalhan/codereview-pilot --skill retry-with-backoff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents overwhelming services by implementing a smart retry strategy for transient API errors, ensuring robustness and reliability in automated processes.

Core Features & Use Cases

  • Intelligent Retries: Automatically retries API calls that fail due to temporary issues like rate limiting (429) or service unavailability (503).
  • Configurable Backoff: Implements exponential backoff to gradually increase wait times between retries, preventing further load on the target service.
  • Use Case: When making frequent calls to an external API, if you encounter a 429 Too Many Requests error, this skill will pause execution for a calculated duration before retrying the request, avoiding immediate failure and respecting API limits.

Quick Start

Use the retry-with-backoff skill to execute the provided curl command, retrying up to 5 times with exponential backoff on 429 or 503 errors.

Frequently Asked Questions about retry-with-backoff

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

FAQPage Schema
How do I retry API calls that fail with 429 or 503 errors?▼

To retry API calls failing with 429 or 503 errors, implement an exponential backoff strategy that pauses execution for a calculated duration before retrying the request, respecting API limits and avoiding immediate failure.

What is exponential backoff and how does it handle transient network errors?▼

Exponential backoff is a retry strategy that gradually increases wait times between attempts when encountering transient network errors like ECONNRESET or ETIMEDOUT, preventing overwhelming the target service with immediate repeated requests.

How do I execute curl commands with automatic retry on rate limiting?▼

Execute curl commands with automatic retry on rate limiting by applying a retry mechanism with a maximum limit of 5 attempts, using exponential backoff to calculate wait intervals based on the attempt number for 429 or 503 errors.

Can I configure a maximum retry limit for handling service unavailability?▼

Yes, you can configure a maximum retry limit for handling service unavailability. The retry mechanism defines wait intervals based on the attempt number and stops executing after reaching the maximum retry limit to prevent endless loops.

When should I use exponential backoff for API error handling?▼

Use exponential backoff for API error handling when making frequent calls to an external API that experiences temporary issues, ensuring robustness in automated processes by gracefully pausing execution during transient failures instead of failing immediately.