mcpField
I
idempotent-redundancy

idempotent-redundancy

github.com/parcadeiDevelopment3.9k491 installsUpdated 39w ago
Repository

About idempotent-redundancy

idempotent-redundancy is a development skill for making fallback and other redundant paths idempotent. It recommends guarded writes, atomic file operations, and repeatable reconciliation to reduce loops, churn, and data corruption.

Key features

  1. 01Check for existing values before writing
  2. 02Use atomic writes and renames
  3. 03Make reconciliation steps repeatable
  4. 04Avoid unconditional fallback writes
  5. 05Prevent repair actions from triggering more repairs

Use cases

  1. 01Add conditional writes to missing-value fallbacks
  2. 02Design repair steps that can safely rerun
  3. 03Avoid partial updates during file operations
  4. 04Reduce data overwrites from multiple writers

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/parcadei/continuous-claude-v3 --skill idempotent-redundancy

After installing, type/idempotent-redundancyin Claude Code to confirm it loaded.

Details

From the project README

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"

Comments

Markdown supported