agentsclimarketplace

Idempotency

Skill vaibhavsaxena022/skills/idempotency

Make a mutating endpoint safe to retry. Use when a create/POST or payment-like operation could arrive twice (client retries, at-least-once queues). Adds idempotency keys so duplicates don't double-apply.From its SKILL.md

Install
npx -y skills add vaibhavsaxena022/skills --skill idempotency

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 201 tokens by cl100k_base, as published. Nobody here has run it

Idempotency

Ensure "send it twice" behaves like "send it once".

Approach

  1. The client sends an Idempotency-Key (or derive one from a natural business key).
  2. On receipt, look up the key:
    • new → process, then store {key → result} atomically.
    • seen, completed → return the stored result; don't re-process.
    • seen, in progress → return 409/425 (or wait); don't double-process.
  3. Store keys with a TTL matching your retry window.

Rules

  • The check-and-store must be atomic (unique constraint or transaction) to survive concurrent retries.
  • Scope keys to the operation + caller so they can't collide.
  • Idempotency protects writes; reads are already idempotent.
  • For queue consumers, dedupe on a message/business id the same way.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.