← 返回 Skills 市场
2233admin

http-retry

作者 2233admin · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
818
总下载
0
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install http-retry
功能描述
Automatically retries HTTP requests with exponential backoff, timeout control, and connection pooling to handle network errors and rate limits.
使用说明 (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)));
    }
  }
}
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install http-retry
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /http-retry 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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, 网络超时.
元数据
Slug http-retry
版本 1.0.0
许可证
累计安装 7
当前安装数 7
历史版本数 1
常见问题

http-retry 是什么?

Automatically retries HTTP requests with exponential backoff, timeout control, and connection pooling to handle network errors and rate limits. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 818 次。

如何安装 http-retry?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install http-retry」即可一键安装,无需额外配置。

http-retry 是免费的吗?

是的,http-retry 完全免费(开源免费),可自由下载、安装和使用。

http-retry 支持哪些平台?

http-retry 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 http-retry?

由 2233admin(@2233admin)开发并维护,当前版本 v1.0.0。

💬 留言讨论