/delavalom-stack:principle-separate-before-serializing-shared-statefrom delavalom-stack
Guides separating shared mutable state before serializing access, reducing race conditions from concurrent file, branch, key, or state-object writes.
Ships in delavalom-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When concurrent actors might share mutable state, first ask whether they truly 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. Telling agents or goroutines to "take turns" does not work.
Pattern:
lastX field into one state.json is still shared mutation; indexer-state.json + metrics-state.json is not.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
concurrency, race-conditions, shared-state, serialization, lockfiles
npx claudepluginhub delavalom/delavalom-stack --plugin delavalom-stack38 skills in this plugin
/adversarial-reviewReview a diff with reviewers that never saw the reasoning behind it, on model families that did not write it. Use for /adversarial-review, 'review this properly', 'have another model check this', or before committing anything broad, subtle, or security-adjacent./app-demo-videoRecord a real web app (prod URL or local dev) as crisp 1080p footage and cut it into a polished demo or launch video with camera push-ins, captions, mock "before" scenes, synced key and click sounds, and music. Use when someone asks to screen-record their app, make a demo, walkthrough, or launch video of a product they built, or show the app working on video. Pairs with /brag or /brag-slim (story and share copy), /hyperframes (composition), /motion-design (timing), and /media-use (assets)./12 plugins ship this exact skill · first indexed Jun 9, 2026
Other plugins' skills for the same job