
Principle Separate Before Serializing Shared State
Eliminate shared write targets first, and serialize structurally only when a shared writer is a true invariant.
- CCM score
- 58 of 100
- skills.sh installs
- 5.7K
- GitHub stars
- 19.4K
- last updated
- Nov 25, 2026
Own this skill? Claim it
What it does
- Covers concurrent writers touching the same file, branch, key, or state object, and default separation of each actor's state before any locking
- Explains that two workers writing separate fields into one
state.jsonstill counts as shared mutation - Guides serializing access only when a shared write target is a real invariant, using a lockfile, single writer, sequential phases, or compare-and-swap
- Warns that instructions alone are not concurrency control and that reaching for a lock should be checked first
Install
$ npx -y skills add cursor/plugins --skill principle-separate-before-serializing-shared-state -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Separate Before Serializing Shared State
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.
Details
- Repository
- github.com/cursor/plugins
- Category
- Writing & Content
- First seen
- Nov 25, 2026
More from cursor/plugins
All 93- Show Me Your Work5.7K
- Principle Model The Domain5.7K
- Principle Never Block On The Human5.7K
- Principle Migrate Callers Then Delete Legacy Apis5.6K
- Maintain Verification Skill5.6K
- Principle Outcome Oriented Execution5.6K
- Principle Sequence Verifiable Units5.6K
- Figure It Out5.3K
- Setup Pstack5.3K
- Reflect5.2K
- Bro5K
- Automate Me4.9K
- No Comments4.9K
- Teach4.8K
- Recall4.7K
- Swarm4.7K
- Tdd4.5K
- Principle Attack The Premise3.6K
- Principle Test Behavior Not Implementation3.5K
- Make Pr Easy To Review3.5K
- Thermo Nuclear Review3K
- Fix Merge Conflicts3K
- Control Cli2.8K
- What Did I Get Done2.8K
Similar to Principle Separate Before Serializing Shared State
More Writing & Content
humaniseur-frsamber/cc-skills5.7K installsRemove AI-writing patterns from French text and inject voice, personality, and soul. Use when editing, reviewing, rewriting, or cleaning up French content that
copywriting-ctasamber/cc-skills5.6K installsDesign end-of-article CTAs (calls-to-action placed at the bottom of blog posts, newsletters, essays, articles, or any long-form content). Use this skill wheneve
technical-article-writersamber/cc-skills5.6K installsWrite compelling technical articles and blog posts for developer audiences. Use this skill whenever the user asks to write a blog post, technical article, or an
avoid-ai-writingconorbronsdon/avoid-ai-writing5.5K installsAudit and rewrite content to remove AI writing patterns ("AI-isms"). Use this skill when asked to "remove AI-isms," "clean up AI writing," "edit writing for AI
ux-copyanthropics/knowledge-work-plugins5.4K installsWrite or review UX copy — microcopy, error messages, empty states, CTAs. Trigger with "write copy for", "what should this button say?", "review this error messa
copywriting-prose-creatorsamber/cc-skills5.4K installsCodifies how someone or a brand writes — prose mechanics (lexicon, syntax, rhythm, structure, signature moves) independent of emotional tone. Output: PROSE.md.