Skip to content
Back to skills

Idempotency

ASecurity

Idempotent APIs and jobs: idempotency keys, unique constraints, upserts and safe retries.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsapibackend

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill idempotency --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Idempotency?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Idempotency
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-idempotency/badge)](https://www.skillsdirectory.com/skills/karthikrshet-idempotency)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: idempotency
description: "Idempotent APIs and jobs: idempotency keys, unique constraints, upserts and safe retries."
tags: [payments, backend, api]
---

# Idempotency

## When to use

- Payments, orders, any retried write

## Procedure

1. Accept an Idempotency-Key header
2. Store key + request hash + response
3. Return the stored response on replay
4. Use unique constraints for natural keys
5. Make consumers dedupe by message ID

## Checklist

- [ ] Concurrent duplicate requests tested

## Anti-patterns

- Check-then-insert without a constraint

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.