
Principle Make Operations Idempotent
Design state-changing operations to converge to the correct state across crashes, restarts, and retries.
- CCM score
- 58 of 100
- skills.sh installs
- 5.7K
- GitHub stars
- 19.4K
- last updated
- Nov 25, 2026
Own this skill? Claim it
What it does
- Covers each step deriving its actions from current state, comparing it to the goal, and applying only the difference
- Requires leftovers like locks, temp files, half-written records, and claimed jobs to be recognizable as stale by the next run
- Enforces writing to a temporary path and renaming it into place, plus a reconciliation step when outcomes depend on leftover state
- Designed for commands, lifecycle steps, and processing loops that run amid crashes and retries
Install
$ npx -y skills add cursor/plugins --skill principle-make-operations-idempotent -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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.
Details
- Repository
- github.com/cursor/plugins
- First seen
- Nov 25, 2026
More from cursor/plugins
All 93- Principle Exhaust The Design Space5.7K
- Principle Experience First5.7K
- Principle Separate Before Serializing Shared State5.7K
- Show Me Your Work5.7K
- Principle Model The Domain5.7K
- Principle Never Block On The Human5.7K
- Principle Migrate Callers Then Delete Legacy Apis5.6K
- Maintain Verification Skill5.6K
- Principle Outcome Oriented Execution5.6K
- Principle Sequence Verifiable Units5.6K
- Figure It Out5.3K
- Setup Pstack5.3K
- Reflect5.2K
- Bro5K
- Automate Me4.9K
- No Comments4.9K
- Teach4.8K
- Recall4.7K
- Swarm4.7K
- Tdd4.5K
- Principle Attack The Premise3.6K
- Principle Test Behavior Not Implementation3.5K
- Make Pr Easy To Review3.5K
- Thermo Nuclear Review3K
Similar to Principle Make Operations Idempotent
cavemanjuliusbrussee/caveman646.1K installsUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels
grill-memattpocock/skills1.6M installsA relentless interview to sharpen a plan or design.
improveshadcn/improve43.4K installsSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s
systematic-debuggingobra/superpowers346.5K installsUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes
find-skillsvercel-labs/skills4.5M installsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int
hyperframes-cliheygen-com/hyperframes1.7M installsUse the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes,