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★ 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic