idempotent-redundancy
仓库创建 2025年12月23日最近提交 6 个月前SkillHot 收录 21 天前
▸ 精选理由
提高系统鲁棒性,防止重试或回退导致错误。
这个 Skill 做什么
关于将冗余路径设计为幂等以避免循环和数据损坏的规范。
在加冗余路径(fallback、重试、多条链路)时要保证操作是幂等的,意思是同一操作跑多次不会重复写入或引发循环,避免数据损坏和无限重试。适用于分布式系统、同步对账和降级逻辑设计,作为避免不一致和回环的规范。常见做法包括先检查再写、使用原子写入/重命名和让对账步骤可重复安全运行。
▸ 展开 SKILL.md 英文原文
Idempotent Redundancy
3.9k
Stars
298
Forks
40
仓库内 Skill
+18
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/idempotent-redundancy/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/idempotent-redundancy/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Idempotent Redundancy When adding redundant paths (fallbacks, belt-and-suspenders), make them idempotent. ## Pattern Redundancy without idempotency causes loops, churn, or data corruption. ## DO - Use `_is_merge: true` for Braintrust updates - Check if value exists before writing (fallback only if missing) - Use atomic write/rename for file operations - Make reconciliation steps safe to run repeatedly ## DON'T - Write unconditionally in fallback paths - Allow multiple writers to overwrite each other - Fire "repair" actions that can trigger more repairs ## Source Sessions - a541f08a: "Redundancy is good only if idempotent" - 1c21e6c8: "Belt-and-suspenders, but make it idempotent" - 6a
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有