Idempotency keys
The unique constraint on the key is the lock; store the response so a replay returns the same answer instead of doing the work twice.
What this skill helps you build
Let clients safely retry unsafe writes — a client-supplied key makes a payment, job, or record creation happen at most once.
The production takeaway
The unique constraint on the key is the lock; store the response so a replay returns the same answer instead of doing the work twice.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.