reproduce-and-fix-issu…
Reproduce triaged Slack bugs through a configured app-control adapter, verify existing fixes, and open a bounded draft pull…
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.
Claude Code
$ npx -y skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state --agent claude-code
Codex
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a codex -y
Cursor
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a cursor -y
Gemini CLI
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a gemini-cli -y
GitHub Copilot
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a github-copilot -y
OpenCode
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a opencode -y
Windsurf
$ npx skills add backnotprop/pstack --skill principle-separate-before-serializing-shared-state -a windsurf -y
name: principle-separate-before-serializing-shared-state description: "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." disable-model-invocation: true
When concurrent actors might write the same file, branch, key, or object, first ask whether they need one shared object or are publishing independent facts. Default to giving each actor its own file, key, branch, or state directory, and merge only where the state is read. Two workers writing their own field into one `state.json` is still shared mutation.
Only when one shared write target is a real invariant, serialize access structurally (a lockfile, a single writer, sequential phases, compare-and-swap). Instructions are not concurrency control, and "we need a lock" is a smell to check first.
i'm poteto. i'm not a president or ceo, but i've worked with millions of lines of code at Meta, Netflix, and Cursor. i'm also on the react core team where i help build and maintain react compiler. there's a growing sense that ai writes too much slop code.
Reproduce triaged Slack bugs through a configured app-control adapter, verify existing fixes, and open a bounded draft pull…
Configure Benny and prepare its triage and repro automations. Use when installing Benny or changing its Slack, tracker,…
Triage Slack issue reports with one thread-only verdict, evidence review, cause-aware routing, tracker dedupe, and fail-closed…
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\",…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…