- name
SKILL.md
O arquivo da skill permanece no repositório do publicador.
Cole o comando copiado em um terminal. Ele instala este SKILL.md nesse agente.
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a cursor -yCole o comando copiado em um terminal. Ele instala este SKILL.md nesse agente.
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a claude-code -yCole o comando copiado em um terminal. Ele instala este SKILL.md nesse agente.
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a codex -yCole o comando copiado em um terminal. Ele instala este SKILL.md nesse agente.
npx skills add michael-denyer/pstack-claude --skill principle-separate-before-serializing-shared-state -a grok -yEnvie a mensagem copiada em um chat do Grok Bot. O Bot busca este SKILL.md no GitHub e o adiciona às skills que todos os seus Bots compartilham.
Install this skill: https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-separate-before-serializing-shared-stateDo publicador
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.mdPerguntas frequentes
Baixe plugins/pstack/skills/principle-separate-before-serializing-shared-state/SKILL.md do publicador ou copie o caminho e abra o repositório. O PlugMCP lista a skill e não hospeda o arquivo.
O publicador o mantém em https://github.com/michael-denyer/pstack-claude.
Claude, Cursor, Codex e Grok Build conseguem ler um SKILL.md que você adiciona a partir do repositório do publicador. O Grok Bot o instala quando você envia em um chat o link da pasta da skill no GitHub.