trove-principle-idempotency

trove-principle-idempotency is a skill for Claude Code from bravew/trove. It costs 70 tokens per session (284 once invoked), scanned A, original, MIT.

A guideline for making an operation reach the same final state when it runs more than once, starts after a crash, or is retried. This property is often called idempotency.

In plain words
What is it for?
Use it when designing commands, deployment steps, background jobs, queue processing, or lifecycle actions that may crash, restart, or be retried.
Why use it?
Jobs, deployments, and queue handlers may be restarted or run again, and repeated work can otherwise duplicate or corrupt results.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the trove-workflow plugin — 24 skills shipped together

Good fit Use it when designing commands, deployment steps, background jobs, queue processing, or lifecycle actions that may crash, restart, or be retried.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bravew/trove/trove-principle-idempotency
View source ↗ bravew/trove
Install

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.

Any agent
npx skills add bravew/trove --skill trove-principle-idempotency
Clone the repo
git clone --depth 1 https://github.com/bravew/trove

Made for: Claude Code.

Or install trove-workflow, the plugin that ships this one along with the rest of its 24 skills.

Wrote 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.

agentmods badge for trove-principle-idempotency

README.md
[![agentmods](https://agentmods.dev/badge/skills/bravew/trove/trove-principle-idempotency/github.svg)](https://agentmods.dev/skills/bravew/trove/trove-principle-idempotency)
Your own site
<a href="https://agentmods.dev/skills/bravew/trove/trove-principle-idempotency"><img src="https://agentmods.dev/badge/skills/bravew/trove/trove-principle-idempotency/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.

agentmods 80×15 button for trove-principle-idempotency

Your own site · 80×15
<a href="https://agentmods.dev/skills/bravew/trove/trove-principle-idempotency"><img src="https://agentmods.dev/badge/skills/bravew/trove/trove-principle-idempotency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 284 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00284
Opus 5.5 $0.00028 $0.00114
Sonnet 5.5 $0.00014 $0.00057
Haiku 4.5 $0.00007 $0.00028

Measured 20d ago against content hash da5591c0bad6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trove-principle-idempotency 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 20d 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.

plugins/trove-workflow/.agents/skills/trove-principle-idempotency/SKILL.md · 20 lines

What it actually says

Principle: Make Operations Idempotent

An operation should converge to the correct end state no matter how many times it runs or where a previous run stopped.

Derive each step from the state you observe, not from an assumption about where the last run stopped. A step that checks what is already true and does only the remaining work converges on its own. A step that assumes a fresh start needs a guard, and a guard is one more thing that can be wrong after a crash.

Before shipping an operation, run it twice, kill it halfway and run it again, and confirm both end at the same state.

Highly relevant to trove-jobs (SQS/SNS retries), CDK/Terraform deploys, and Lambda handlers — anything the platform will retry on your behalf.

Changes

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.

  1. 20d ago Changed · -1 lines · +1 tokens per session da5591c0bad6
  2. 2mo ago First seen · 21 lines · 69 tokens per session scan A b3f414debade

Subscribe to this mod's changes

trove-principle-idempotency is a skill published in the GitHub repository bravew/trove (11 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 284 once invoked, about $0.0003 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-09-11.

Related

trove-principle-idempotency compared with skills from other repositories

trove-principle-idempotency next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trove-principle-idempotencybravew/troveSkill11todayMITA70Claude Code
mem0-oss-to-platformmem0ai/mem0Skill70k4d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3ktodayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill695yesterdayMITA105Claude Code, Codex