retry-strategist

retry-strategist is a skill for Claude Code, Codex from khalilbenaz/claude-skills-collection. It costs 86 tokens per session (2,179 once invoked), scanned A, original, MIT.

A guide for deciding how to respond when a software agent fails, including when to retry and when to use another option.

In plain words
What is it for?
Use it to classify errors, add delays between retries, set retry limits, and plan fallbacks or recovery for long-running tasks.
Why use it?
It prevents wasted retries for permanent errors while handling temporary problems such as timeouts, rate limits, and service outages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to classify errors, add delays between retries, set retry limits, and plan fallbacks or recovery for long-running tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khalilbenaz/claude-skills-collection/retry-strategist
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add khalilbenaz/claude-skills-collection --skill retry-strategist
Clone the repo
git clone --depth 1 https://github.com/khalilbenaz/claude-skills-collection

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retry-strategist

README.md
[![agentmods](https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/retry-strategist/github.svg)](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/retry-strategist)
Your own site
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/retry-strategist"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/retry-strategist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retry-strategist

Your own site · 80×15
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/retry-strategist"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/retry-strategist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.02179
Opus 5.5 $0.00034 $0.00872
Sonnet 5.5 $0.00017 $0.00436
Haiku 4.5 $0.00009 $0.00218

Measured 3mo ago against content hash 7e744aa29598, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

retry-strategist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-skills/retry-strategist/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Retry Strategist

Quand utiliser ce skill

Dès qu'un sous-agent peut échouer et que l'échec ne doit pas remonter brutalement. Cas typiques : pipelines de production avec erreurs transitoires (rate limit, timeout, 503), architectures multi-modèles avec quota par provider, traitements longs nécessitant des checkpoints.


Workflow — 10 étapes actionnables

Étape 1 — Classifier l'erreur avant tout retry

Classe Signaux Action
TRANSIENT 429, 503, timeout, connexion reset Retry avec backoff
PERMANENT 400 schéma invalide, content policy, token limit Fallback ou escalade — jamais de retry
UNKNOWN Toute autre exception Retry prudent (max 1–2 fois)
TRANSIENT_SIGNALS = ["rate limit", "429", "503", "timeout", "connection", "temporarily"]
PERMANENT_SIGNALS = ["token limit", "content policy", "invalid schema", "401", "403", "400"]

def classify_error(error: Exception) -> str:
    s = str(error).lower()
    if any(x in s for x in TRANSIENT_SIGNALS): return "transient"
    if any(x in s for x in PERMANENT_SIGNALS):  return "permanent"
    return "unknown"

Étape 2 — Choisir la retry policy selon le contexte

Stratégie Formule délai Usage
immediate 0 s 429 avec Retry-After: 1
fixed base_delay service interne fiable
exponential base × 2^attempt API externe instable
jittered exponential × random(0.5–1.5) défaut recommandé — évite thundering herd
def compute_delay(attempt: int, base: float = 1.0, jitter: bool = True) -> float:
    delay = base * (2 ** attempt)          # 1s, 2s, 4s, 8s...
    if jitter:
        delay *= 0.5 + random.random()     # ±50% de bruit
    return min(delay, 60.0)               # plafond à 60 s

Étape 3 — Circuit breaker (3 états)

CLOSED ──N failures──► OPEN ──recovery_timeout──► HALF-OPEN
  ▲                                                    │
  └─────────────────── succès ────────────────────────┘

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 216 lines · 86 tokens per session scan A 7e744aa29598

Subscribe to this mod's changes

retry-strategist is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 86 tokens to every session and 2,179 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

retry-strategist compared with skills from other repositories

retry-strategist next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retry-strategistkhalilbenaz/claude-skills-collectionSkill273mo agoMITA86Claude Code, Codex
explainsoftspark/ai-toolkitSkill18013d agoApache-2.0A34Claude Code
finance-econ-literacymodu-ai/moai-coworkSkill3201mo agoApache-2.0A128Claude Code
exposure-guidanceellmos-ai/skillsSkill10todayMITA117Claude Code, Codex
systemisch-loesungsfokussiertellmos-ai/skillsSkill10todayMITA127Claude Code, Codex
trauma-psychoeducationellmos-ai/skillsSkill10todayMITA40Claude Code, Codex
act-techniquesellmos-ai/skillsSkill10todayMITA127Claude Code, Codex