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


