retry-optimizer
БесплатноЗапускает вложенные скриптыНе проверенOptimize retry patterns for flaky or slow agents/services. Use when you see fixed-interval retries, repeated 30s/60s wait loops, Retrying... messages, wrapper…
от 147258xuan189 установок в других каталогахОб этом скилле
Retry Optimizer
Optimize brittle retry loops into efficient backoff with jitter, circuit breaking, and bounded retries.
When to Use
- Wrapper/agent keeps printing
Retrying in 30s... - Same command fails repeatedly with fixed sleep
- Retry storms under load
- No timeout / max-retry guard
Quick Start
# Analyze current retry config
node skills/retry-optimizer/scripts/optimize.js analyze <config.json>
# Generate optimized config
node skills/retry-optimizer/scripts/optimize.js generate <config.json>
# Validate a retry config
node skills/retry-optimizer/scripts/optimize.js validate <config.json>
Config Format
{
"retries": 3,
"initialDelayMs": 1000,
"maxDelayMs": 30000,
"backoffFactor": 2,
"jitterMs": 500,
"timeoutMs": 5000,
"retryOn": ["ECONNRESET", "ETIMEDOUT", "5xx"],
"abortOn": ["4xx", "auth_failed"]
}
Strategy
- Replace fixed delay with exponential backoff
- Add jitter to prevent synchronized retries
- Cap max delay to avoid excessive waits
- Set max retry limit to prevent infinite loops
- Add per-attempt timeout
- Classify errors: retryable vs abort
Benchmark Results
| Scenario | Fixed Interval | Backoff + Jitter | Improvement |
|---|---|---|---|
| 30s fixed (5 attempts) | 150,000ms | 32,208ms | 78.5% faster |
| 60s fixed (5 attempts) | 300,000ms | 32,580ms | 89.1% faster |
| 10s fixed (5 attempts) | 50,000ms | 16,315ms | 67.4% faster |
Run benchmark:
node skills/retry-optimizer/scripts/benchmark.js
node skills/retry-optimizer/scripts/benchmark.js --scenarios=3 --attempts=5
Notes
- Avoid unbounded retries; always set max retries
- Prefer backoff + jitter over fixed sleep
- Add circuit breaker for repeated failures
- Benchmark shows 67-89% reduction in total wait time
Установить retry-optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл retry-optimizer?
Optimize retry patterns for flaky or slow agents/services. Use when you see fixed-interval retries, repeated 30s/60s wait loops, Retrying... messages, wrapper timeouts, or performance bottlenecks caused by retry storms.
Как установить скилл retry-optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл retry-optimizer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic