Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Idempotency And Retries?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-idempotency-and-retries)
---
name: forge-idempotency-and-retries
description: Make writes, webhooks and jobs safe to retry with idempotency keys, dedupe and exactly-once effects
---
<!-- Generated from catalog/skills/idempotency-and-retries/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Idempotency and retries
Networks retry. Clients double-click. Queues redeliver. Every write path must survive running twice.
## Idempotency keys
- Clients send an `Idempotency-Key` on create/charge requests; the server stores key → result and returns the stored result on replay.
- Scope keys per user and endpoint; expire them after a defined window.
## Consumers and webhooks
- Record processed event ids (unique constraint) in the same transaction as the side effect.
- Verify webhook signatures; acknowledge quickly and process asynchronously.
## Retries
- Retry only retryable failures (timeouts, 429, 5xx), with exponential backoff, jitter and a cap.
- Use a dead-letter queue for messages that keep failing, with alerting.
## Verify
A test sends the same request (or event) twice concurrently and asserts exactly one side effect (one row, one charge, one email).