principle-make-operations-idempotent
Apply when designing commands, lifecycle steps, or processing loops that run amid crashes, restarts, and retries. Converge to the same end state regardless of partial prior runs.
How do I install this agent skill?
npx skills add https://github.com/cursor/plugins --skill principle-make-operations-idempotentIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides architectural guidance on designing idempotent operations and contains no executable code or security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Make Operations Idempotent
Design every state-changing operation to converge to the correct state however many times it runs and wherever the previous run stopped.
Derive each step from the state that exists, not from what the previous run meant to do. Read the current state, compare it to the goal, and apply only the difference.
Anything a run leaves behind (a lock, a temporary file, a half-written record, a claimed job) must be recognizable as stale by the next run, by evidence that holds wherever the previous run could have stopped. Write to a temporary path and rename it into place.
The test: what happens if this runs twice? What if the previous run crashed at every possible point? If the answer depends on what was left behind, add a reconciliation step.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/cursor/plugins/principle-make-operations-idempotent">View principle-make-operations-idempotent on skillZs</a>