- name
SKILL.md
技能檔案保留在發布者的儲存庫中。
在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a cursor -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a claude-code -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a codex -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a grok -y在 Grok Bot 聊天中傳送複製的訊息。Bot 會從 GitHub 取得這個 SKILL.md,並加入你所有 Bot 共用的技能中。
Install this skill: https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-separate-before-serializing-shared-state來自發布者
When concurrent actors might share mutable state, first ask whether they need the same mutable object. If not, eliminate the sharing. When sharing is real, enforce serialization structurally: lockfiles, sequential phases, exclusive ownership. Instructions and conventions are not concurrency control.
Why: Concurrent writes to shared state create race conditions that are intermittent, hard to reproduce, and expensive to debug.
Pattern:
lastX field into one state.json is still shared mutation. indexer-state.json + metrics-state.json is not.Apply when concurrent actors might write to the same file, branch, key, or state object. Eliminate the sharing first; serialize structurally only when one shared writer is a real invariant.
---name: principle-separate-before-serializing-shared-statedescription: Apply when concurrent actors might write to the same file, branch, key, or state object. Eliminate the sharing…---# plugins/pstack/skills/principle-separate-before-serializing-shared-state/SKILL.md常見問題
從發布者下載 plugins/pstack/skills/principle-separate-before-serializing-shared-state/SKILL.md,或複製路徑後開啟儲存庫。PlugMCP 只收錄這項技能,不代管檔案。
發布者將它存放在 https://github.com/michael-denyer/pstack-claude。
Claude、Cursor、Codex 和 Grok Build 可以讀取你從發布者儲存庫加入的 SKILL.md。在聊天中傳送技能的 GitHub 資料夾連結,Grok Bot 就會安裝它。