
principle-separate-before-serializing-shared-state
Apply when concurrent actors might write to the same file, branch, key
by cursorFree
Description
principle-separate-before-serializing-shared-state is an agent skill from Cursor's plugins collection that applies a working principle when concurrent actors, such as agents or workers, might write to the same file, branch, key or state object. The principle says that before serialising access, one should first ask whether the actors really need the same mutable object at all. If they do not, the shared write target should be eliminated. Each actor gets its own file, key, branch or state directory, and the results are merged only at the reading or reporting stage. If sharing is genuinely needed, the principle asks for serialisation to be enforced structurally, through lock files, sequential phases or exclusive ownership. It states that instructions and conventions are not concurrency control, so a note telling agents to take turns does not prevent conflicting writes. The reason given is that concurrent writes produce race conditions that are intermittent, hard to reproduce and expensive to debug. The skill suggests identifying shared mutable state, such as files that are both read and written, branches that more than one actor pushes to, and APIs that one actor defines and another consumes. It is useful when several agents or pipelines run in parallel over one repository. It is listed on skills.sh, where the page shows install counts and GitHub stars for the Cursor plugins repository. Install it with npx skills add https://github.com/cursor/plugins --skill principle-separate-before-serializing-shared-state.…
Highlights
- Eliminate shared write targets first
- Each actor owns its file or branch
- Merge at the reporting boundary
- Structural serialisation when needed
- Conventions are not concurrency control
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate principle-separate-before-serializing-shared-state.
People also visit
principle-separate-before-serializing-shared-state FAQ
When does this principle apply?
When concurrent actors might write to the same file, branch, key or state object.
What is the first step?
Ask whether the actors need the same mutable object at all, and if not, remove the sharing.
Is a written convention enough?
No. The skill says instructions and conventions are not concurrency control.
How do I install it?
Run npx skills add https://github.com/cursor/plugins --skill principle-separate-before-serializing-shared-state.
How popular is it?
The skill is listed in the cursor/plugins repository, which has 11.4K GitHub stars.
What are the best principle-separate-before-serializing-shared-state alternatives?
Popular alternatives to principle-separate-before-serializing-shared-state include parallel-agents, parallel-feature-development and dispatching-parallel-agents. See all principle-separate-before-serializing-shared-state alternatives












