← Back to Skills Marketplace
2233admin

http-retry

by 2233admin · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
818
Downloads
0
Stars
7
Active Installs
1
Versions
Install in OpenClaw
/install http-retry
Description
Automatically retries HTTP requests with exponential backoff, timeout control, and connection pooling to handle network errors and rate limits.
README (SKILL.md)

HTTP 重试技能

触发词: timeouterror, econnreset, econnrefused, 429, retry, http error, 网络超时

问题

网络请求失败(超时、连接重置、限流)导致服务不稳定

解决方案

指数退避 + 超时控制 + 连接池复用

async function fetchWithRetry(url, options = {}, maxRetries = 3) {
  const { retryDelay = 1000, timeout = 30000 } = options;
  
  for (let attempt = 0; attempt \x3C= maxRetries; attempt++) {
    try {
      const controller = new AbortController();
      const timeoutId = setTimeout(() => controller.abort(), timeout);
      const response = await fetch(url, { ...options, signal: controller.signal });
      clearTimeout(timeoutId);
      
      if (response.status === 429 || response.status >= 500) {
        await new Promise(r => setTimeout(r, retryDelay * Math.pow(2, attempt)));
        continue;
      }
      return response;
    } catch (err) {
      if (attempt === maxRetries) throw err;
      await new Promise(r => setTimeout(r, retryDelay * Math.pow(2, attempt)));
    }
  }
}
Usage Guidance
This skill is a small, instruction-only HTTP retry helper and appears coherent with its description. Before using it: ensure your runtime provides fetch and AbortController (or add a polyfill for Node); configure sensible maxRetries, retryDelay, and timeouts; avoid automatic retries for non-idempotent requests (POST/DELETE) unless you have idempotency guarantees; consider honoring Retry-After headers for 429 responses; and remember this skill does not request or store credentials or install code by itself.
Capability Analysis
Type: OpenClaw Skill Name: http-retry Version: 1.0.0 The skill bundle provides a standard HTTP retry mechanism with exponential backoff and timeout control, implemented in JavaScript. The `SKILL.md` clearly describes the purpose and functionality, and the embedded code is a straightforward implementation of this logic using standard `fetch` API. There is no evidence of malicious intent, data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection attempts against the AI agent in any of the files.
Capability Assessment
Purpose & Capability
Name and description (HTTP retry, backoff, timeout, pooling) match the provided instructions and code example. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md contains a focused fetchWithRetry implementation and trigger words; it only performs network requests to caller-supplied URLs and implements retries/timeouts. It does not instruct reading files, accessing secrets, or contacting any fixed external endpoint. Note: the snippet assumes a runtime-provided fetch/AbortController (may require polyfill in some Node versions).
Install Mechanism
No install spec and no code files beyond an illustrative package.json and the SKILL.md snippet. Nothing is downloaded or written to disk by an installer. package.json is minimal and does not introduce installation behavior.
Credentials
The skill declares no required environment variables or credentials and the instructions do not reference any. No disproportionate secret access is requested.
Persistence & Privilege
always is false and the skill does not request persistent or system-level privileges or attempt to modify other skills' configuration. Autonomous invocation is allowed (platform default) but combined with the other factors this is not a concern.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install http-retry
  3. After installation, invoke the skill by name or use /http-retry
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of http-retry skill: - Provides automatic HTTP retry with exponential backoff for network errors and rate limiting (429, 5xx). - Implements timeout control for requests. - Supports reuse with connection pool. - Triggered by common network error keywords including timeouterror, econnreset, econnrefused, 429, retry, http error, 网络超时.
Metadata
Slug http-retry
Version 1.0.0
License
All-time Installs 7
Active Installs 7
Total Versions 1
Frequently Asked Questions

What is http-retry?

Automatically retries HTTP requests with exponential backoff, timeout control, and connection pooling to handle network errors and rate limits. It is an AI Agent Skill for Claude Code / OpenClaw, with 818 downloads so far.

How do I install http-retry?

Run "/install http-retry" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is http-retry free?

Yes, http-retry is completely free (open-source). You can download, install and use it at no cost.

Which platforms does http-retry support?

http-retry is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created http-retry?

It is built and maintained by 2233admin (@2233admin); the current version is v1.0.0.

💬 Comments