Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

principle-separate-before-serializing-shared-state

БесплатноБез исполняемых скриптовНе проверен

WHEN concurrent writers share mutable state; NOT independent read-only data; separate ownership or enforce the shared invariant atomically.

mintuzот mintuz★ 38 звёзд на GitHub

Об этом скилле

Separate Before Serializing Shared State

Separate independent writers first; serialise only where one shared invariant is real.

Identify each writer, mutable target and invariant, including retries and crashes. For each concurrent actor, ask what another actor can invalidate. Ask whether writers publish independent facts or maintain one canonical truth.

Separate independent facts into owned files, keys, branches or state objects, then combine at the read/report boundary. Different fields in one read-modify-write file still share a write target. Define how readers handle missing, stale or partial publications.

Keep truly atomic invariants together: splitting capacity and reservations across independent copies can oversell. Enforce shared ownership structurally with a transaction, compare-and-swap, exclusive writer or appropriate lock. Define contention, recovery and retry behaviour; instructions and PID-only claims are not concurrency control.

Distinct from: principle-make-operations-idempotent (an operation repeats or resumes after interruption), principle-derive-from-one-owner (the same fact is computed or stored twice), principle-narrow-state-lifetime (mutable state outlives the work that needs it).

Done: overlapping writes, interruption and retries were exercised, and both independent progress and preservation of the shared invariant hold before the race is called fixed.

Установить principle-separate-before-serializing-shared-state в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл principle-separate-before-serializing-shared-state?

WHEN concurrent writers share mutable state; NOT independent read-only data; separate ownership or enforce the shared invariant atomically.

Как установить скилл principle-separate-before-serializing-shared-state?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл principle-separate-before-serializing-shared-state запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить principle-separate-before-serializing-shared-state с