retry-safety

retry-safety is a skill for Claude Code, Codex from escoffier-labs/brigade. It costs 71 tokens per session (873 once invoked), scanned A, original, MIT.

A review checklist for code that changes data or causes outside effects, such as database writes, file changes, network requests, payments, or queue messages. It checks whether repeating the operation is safe.

In plain words
What is it for?
Reviewing database writes, migrations, file and data changes, network calls, payments, queue messages, retry logic, and crash recovery.
Why use it?
Retries can happen after timeouts, crashes, or duplicate queue deliveries. This helps find cases where repeating an operation could create duplicate data or repeat harmful actions.

Skill for Claude CodeCodex

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

Good fit Reviewing database writes, migrations, file and data changes, network calls, payments, queue messages, retry logic, and crash recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/escoffier-labs/brigade/retry-safety
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 escoffier-labs/brigade --skill retry-safety
Clone the repo
git clone --depth 1 https://github.com/escoffier-labs/brigade

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-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/escoffier-labs/brigade/retry-safety/github.svg)](https://agentmods.dev/skills/escoffier-labs/brigade/retry-safety)
Your own site
<a href="https://agentmods.dev/skills/escoffier-labs/brigade/retry-safety"><img src="https://agentmods.dev/badge/skills/escoffier-labs/brigade/retry-safety/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-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/escoffier-labs/brigade/retry-safety"><img src="https://agentmods.dev/badge/skills/escoffier-labs/brigade/retry-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 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.00071 $0.00873
Opus 5 $0.00036 $0.00436
Sonnet 5 $0.00014 $0.00175
Haiku 4.5 $0.00007 $0.00087

Measured 12d ago against content hash 68ec3f84ef23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

retry-safety 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 12d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

registry/skills/retry-safety/SKILL.md · 69 lines

How it starts

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

retry-safety

Fire the same ticket twice and the kitchen must not charge the table twice. Timeouts, crashes, queue redeliveries, and impatient callers re-run operations constantly. The only question is whether the second run finishes the remainder or doubles the damage.

Core principle: the standard is idempotent read-modify-write at the side-effecting edge. The operation reads current state before writing, so a re-run over work already done completes the remainder and changes nothing else. Anything short of that needs a named reason it is still safe.

Read-only. This is a review lens. Fixing is a separate engagement. When the diff touches no side-effecting surface, say so in one line and stop.

The sweep

For each side-effecting edge in the diff, simulate two failure shapes: the whole operation retried after a timeout, and a crash halfway followed by a re-run.

Surface The double-run hazard
Database writes duplicate rows, double-applied increments, constraint violations on the second pass
Migrations re-running a completed step corrupts or aborts (see the migration section)
File and data writes appends that double, partial files clobbered, temp files orphaned
Network mutations the remote applied the first call and the retry applies it again (no idempotency key)
Payments and external calls double charge, double email, double webhook - the ones users notice
Queues and events redelivery is at-least-once almost everywhere, and consumers assume exactly-once
Caches and counters increments and TTL refreshes that drift under replay

A transaction is not an answer by itself: the transaction makes one attempt atomic, and then the caller retries the whole transaction.

Migrations carry a second hazard

Beyond re-run safety, a migration lives through a deploy window where old code runs against the new schema and new code runs against old data, and a partial failure leaves the two inconsistent. Flag a migration that:

Read the full file on GitHub · 69 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. 12d ago First seen · 69 lines · 71 tokens per session scan A 68ec3f84ef23

Subscribe to this mod's changes

retry-safety is a skill published in the GitHub repository escoffier-labs/brigade (72 stars, last pushed yesterday), licensed MIT. It adds 71 tokens to every session and 873 once invoked, about $0.0004 per session on Opus 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.