Agent Skills
› wibus-wee/see
› principle-make-operations-idempotent
principle-make-operations-idempotent
GitHub指导设计幂等操作,确保重复执行收敛至相同正确状态,避免副作用叠加。适用于命令、生命周期步骤、重试、循环及崩溃恢复等场景。
Trigger Scenarios
处理重试逻辑
设计崩溃恢复机制
实现循环或生命周期步骤
Install
npx skills add wibus-wee/see --skill principle-make-operations-idempotent -g -y
SKILL.md
Frontmatter
{
"name": "principle-make-operations-idempotent",
"description": "Design repeated execution to converge on the same correct end state rather than multiplying side effects. Use when for commands, lifecycle steps, retries, loops, or crash recovery."
}
Make Operations Idempotent
Trigger
For commands, lifecycle steps, retries, loops, or crash recovery.
Rule
Design repeated execution to converge on the same correct end state rather than multiplying side effects.
Application
- Name the concrete decision this principle changes.
- Apply the rule to that decision, not as a decorative citation.
- Prefer evidence from the current repository/runtime over generic preference.
- If the principle conflicts with an explicit user constraint, keep the constraint and state the tradeoff.
Version History
- b47adae Current 2026-11-26 00:11


