Principle Separate Before Serializing Shared State
Separate independent state per actor before reaching for locks, since shared writes are the real hazard.
- CCM score
- 63 of 100
- skills.sh installs
- 13.2K
- GitHub stars
- 5.5K
- last updated
- Nov 30, 2026
Own this skill? Claim it
What it does
- Covers the default of giving each concurrent actor its own file, key, branch, or state directory before any merge
- Warns that two workers writing separate fields into one
state.jsonstill counts as shared mutation - Reserves structural serialization such as lockfiles, a single writer, sequential phases, or compare-and-swap for true invariants
- Treats instructions alone as no concurrency control and checks any "we need a lock" claim first
- Designed for agent workflows where several actors might write to the same file, branch, key, or object
Install
$ npx -y skills add backnotprop/pstack --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/backnotprop/pstack
- Category
- Writing & Content
- First seen
- Nov 30, 2026
More from backnotprop/pstack
All 44- Principle Experience First13.2K
- Make Bot Ui12.8K
- Correct12.5K
- Principle Explain The Number12.3K
- How14.1K
- Why13.9K
- Arena13.9K
- Principle Fix Root Causes13.8K
- Interrogate13.7K
- Blast Radius13.7K
- Poteto Mode13.7K
- Architect13.6K
- Create Verification Skill13.6K
- Typescript Best Practices13.5K
- No Comments13.5K
- Setup Pstack13.5K
- Reflect13.5K
- Show Me Your Work13.4K
- Bro13.4K
- Principle Type System Discipline13.4K
- Swarm13.4K
- Figure It Out13.4K
- Principle Prove It Works13.4K
- Maintain Verification Skill13.4K
Similar to Principle Separate Before Serializing Shared State
More Writing & Contentkorean-character-countnomadamas/k-skill12.6K installsCount Korean text deterministically with exact grapheme, line, and byte contracts for self-intros and form limits.
korean-slang-writingnomadamas/k-skill11.9K installsUse curated Korean trending-slang candidates plus best-effort Namu Wiki lookups to write witty Korean text with up-to-date slang, with conservative safety and f
brand-voiceaffaan-m/ecc11.8K installsBuild a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and so
portfolio-case-study-writerparamchoudhary/resumeskills11.6K installsTransform resume bullets into detailed portfolio case studies
korean-humanizernomadamas/k-skill11.6K installsAI가 쓴 티가 나는 한국어 글을 자연스러운 사람 글로 고친다. 번역체, AI 상투어, 과도한 명사화·피동, 3의 법칙, 과장된 의의 부여, 마무리 상투구, 챗봇 잔재, 줄표·곡선따옴표 같은 한국어 특유의 AI 흔적을 심각도(S1/S2/S3)로 분류해 잡아내고 의미는 보존하면서 다시 쓴
korean-middle-koreannomadamas/k-skill10.8K installsConvert incoming Korean text into a deterministic Korean Middle Korean-style rewrite with archaic particles, endings, Hanja hints, and tone-mark flavor.