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


