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.
npx skills add ShipWithAI/shipwithai-plugins --skill idempotent-endpointgit clone --depth 1 https://github.com/ShipWithAI/shipwithai-pluginsWrote 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.
[](https://agentmods.dev/skills/shipwithai/shipwithai-plugins/idempotent-endpoint)<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/idempotent-endpoint"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/idempotent-endpoint/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.
<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/idempotent-endpoint"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/idempotent-endpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.00863 |
| Opus 5.5 | $0.00043 | $0.00345 |
| Sonnet 5.5 | $0.00022 | $0.00173 |
| Haiku 4.5 | $0.00011 | $0.00086 |
Grade A, and why
idempotent-endpoint 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Idempotent Endpoint — Scaffold
Unsafe POSTs get retried — by clients, proxies, and message queues. Without
idempotency a retry charges the card twice or creates two orders. This scaffolds a
filter that makes a retry carrying the same Idempotency-Key replay the original
response, so the side effect happens exactly once.
Step 1 — Detect conventions (do not assume)
Read before generating:
- Existing filter chain: look for
OncePerRequestFilter/FilterRegistrationBeanconfig and a….web/….configpackage; place the filter there and register it the same way the project registers other filters. - Storage available: check for Redis (
spring-data-redis) or a relational DB. The filter depends only on theIdempotencyStoreSPI — pick the backing store that already exists; do not add a new datastore. - Existing idempotency: if the project already keys retries somewhere, extend that instead of adding a parallel mechanism.
Step 2 — Render templates
From assets/, substitute {{PACKAGE}}:
IdempotencyStore.java.tmpl→<pkg>/web/idempotency/IdempotencyStore.java(the SPI)IdempotencyKeyFilter.java.tmpl→<pkg>/web/idempotency/IdempotencyKeyFilter.java
The filter logic:
- Only guards
POSTrequests that carry anIdempotency-Keyheader; everything else passes straight through. - Computes a fingerprint = hash of method + URI + body.
store.find(key):- hit, same fingerprint → replay the stored status/body, skip the handler.
- hit, different fingerprint →
422(the key was reused for a different request). - miss → run the handler, then
store.save(key, response).
Step 3 — Implement the store
Generate (or point the user to write) one IdempotencyStore implementation:
@Component
class RedisIdempotencyStore implements IdempotencyStore {
// SET key <json> NX EX <ttl>; GET key. Use a short TTL (minutes–hours), not forever.
// A DB variant: unique column on key + an inserted-at for expiry.
}
Register the filter (e.g. a FilterRegistrationBean<IdempotencyKeyFilter>) scoped to
the POST routes that need it — not every endpoint.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 79 lines · 108 tokens per session scan A 2f9c75160566
idempotent-endpoint is a skill published in the GitHub repository ShipWithAI/shipwithai-plugins (9 stars, last pushed 3mo ago), licensed MIT. It adds 108 tokens to every session and 863 once invoked, about $0.0004 per session on Opus 5.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-31.
idempotent-endpoint compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| idempotent-endpointShipWithAI/shipwithai-plugins | Skill | 9 | 3mo ago | MIT | A | 108 | Claude Code |
| api-auditgreglas75/zuvo | Skill | 7 | today | MIT | A | 135 | Claude Code |
| performance-auditgreglas75/zuvo | Skill | 7 | today | MIT | A | 90 | Claude Code |
| nodejsxobotyi/cc-foundry | Skill | 23 | yesterday | MIT | B | 50 | Claude Code |
| ccc-saasKevinZai/commander | Skill | 6 | today | MIT | A | 43 | Claude Code |
| zogxobotyi/cc-foundry | Skill | 23 | yesterday | MIT | B | 45 | Claude Code |
| dddzdanovichnick/dotnet-pilot | Skill | 5 | 9d ago | MIT | A | 36 | Claude Code |