用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dvcrn/openclaw-skills-marketplace --skill http-retry命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your agent a soul.
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
基于 SOC 职业分类
正在显示 SKILL.md
| name | http-retry |
| description | http-retry |
触发词: 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 <= 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)));
}
}
}