Skip to main content
ClaudeWave
Skill3.8k estrellas del repoactualizado 4mo ago

idempotent-redundancy

Idempotent Redundancy provides patterns for implementing safe fallback systems and redundant data paths that can run repeatedly without causing loops, data corruption, or cascading repairs. Use this skill when designing fault-tolerant architectures where multiple recovery mechanisms must coexist, ensuring operations like conditional writes, atomic file operations, and reconciliation steps remain safe regardless of execution frequency.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3 /tmp/idempotent-redundancy && cp -r /tmp/idempotent-redundancy/.claude/skills/idempotent-redundancy ~/.claude/skills/idempotent-redundancy
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

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"
- 6a9f2d7a: "Idempotent repair hooks"