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


