Event Model
ObneyAI/grain
Read, write, and validate Grain's service-area-first Event Model topology.
A skill your agent uses when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation…
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install openchamber/openchamber sync-state-invariants --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sync-state-invariants .claude/skills/sync-state-invariants && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .claude/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariantsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install openchamber/openchamber sync-state-invariants --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/sync-state-invariants .agents/skills/sync-state-invariants && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .agents/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install openchamber/openchamber sync-state-invariants --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/sync-state-invariants .cursor/skills/sync-state-invariants && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .cursor/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/openchamber/openchamber.git --path .agents/skills/sync-state-invariants--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install openchamber/openchamber sync-state-invariants --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/sync-state-invariants .gemini/skills/sync-state-invariants && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .gemini/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install openchamber/openchamber sync-state-invariantsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/sync-state-invariants .github/skills/sync-state-invariants && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .github/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openchamber/openchamber --skill sync-state-invariants -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install openchamber/openchamber sync-state-invariants --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openchamber/openchamber.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/sync-state-invariants .opencode/skills/sync-state-invariants && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sync-state-invariants" agent skill from https://github.com/openchamber/openchamber/tree/main/.agents/skills/sync-state-invariants into .opencode/skills/sync-state-invariants/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-state-invariants", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sync-state-invariantsA skill your agent uses when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation…
Sync State Invariants is an agent skill from openchamber/openchamber. Use when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation, runtime-scoped caches, or directory-dependent session behavior.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR, covering State management, Accounting and bookkeeping and Event-driven systems. The repository describes itself as: Agentic Development Environment based on OpenCode AI agent. The licence is MIT.
Read from SKILL.md and the folder at commit 74b79d4. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sync State Invariants loads about 2.7k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 1,401 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from openchamber/openchamber at commit 74b79d4, republished under its MIT licence (© openchamber). 1,401 words, ~2,694 tokens.
.claude/skills/sync-state-invariants/SKILL.md (or your agent's skills folder).Read packages/ui/src/sync/DOCUMENTATION.md and the nearest owning module documentation before editing. Context gathering is complete when every changed state has an identified owner, authority, scope, and lifecycle.
Before editing behavior a user can reach, write the surface list from ui-api-decoupling, Name The Surfaces Before Editing: one line per runtime, including the ones this change appears to leave alone. State that reconciles differently per runtime is a parity decision, not an implementation detail.
Classify every input before deriving state:
| Input | Valid use |
|---|---|
| Directory child store | Live per-directory session/message/status/permission state |
| Global sessions store | Complete global active/archived cache and retention/sidebar coverage |
| Persisted history/cache | Startup continuity and context restoration, never proof of current activity |
| Optimistic shadow state | Temporary UI continuity until authoritative reconciliation |
Prefer deterministic authoritative records over heuristics. Derive live behavior from live channels, not historical anomalies.
Give each state and its invariants one owner. Callers request domain transitions from that owner; they do not inspect one field, mutate another collection, and repair status externally. Split ownership only when the states have genuinely independent lifecycles.
Represent mutually exclusive lifecycle states with discriminated unions or equally precise contracts. Avoid boolean/nullable field combinations that permit impossible states. Reject invalid transitions at the owning boundary so downstream reducers and effects receive trusted state.
Any authoritative loader whose result can replace, delete, or clear state must distinguish failure from successful empty data.
Use an existing pattern:
T | null when follow-up work must continue and null exclusively means fetch failure.Never swallow an SDK/API error into [], {}, or another valid empty success. Verify that callers skip destructive replacement after failure.
Track completeness at the smallest entity/scope. One failed project or directory blocks destructive work for itself, not for unrelated complete scopes.
Inferring destructive cleanup from disappearance between snapshots requires an established authoritative baseline. This is separate from applying a complete snapshot whose contract explicitly authorizes first-load replacement.
For streaming-frequency work, also load performance-engineering.
opencode-v2), so a refresh over every store is a fan-out.An entry acquired during render but protected only after commit is unprotected for the whole render pass. Eviction that runs on acquisition therefore disposes entries that are actively mounting; the next render recreates them in a loading state, which issues another fetch, which repeats forever. The symptom is an endless request loop and sawtoothing listeners, heap, and CPU, and it appears only once live entries outnumber the limit, so it never reproduces on a small workspace.
When state exists in memory and one or more persistent stores, define an explicit authority and ordering protocol:
Cover every applicable lifecycle branch, not only static state. Verification is complete when failure cannot masquerade as empty success, stale or partial data cannot cause destructive replacement, and each transition remains with its owner:
© openchamber, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/sync-state-invariants of openchamber/openchamber.
Open the folder on GitHubat commit 74b79d4
Sync State Invariants next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sync State Invariants this skillopenchamber/openchamber | 11k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Event ModelObneyAI/grain | 123 | — | ~536 | Automated safety check: Pass | MIT | |
| Persona Performance Tuningjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Longbridge Intelhelsome/folio | 270 | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Configure Authdotnet/skills | 5.6k | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Page Langsadobe/skills | 197 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 |
ObneyAI/grain
Read, write, and validate Grain's service-area-first Event Model topology.
jeremylongshore/tons-of-skills-marketplace
Improve Persona integration latency and throughput with event-driven processing, bounded reconciliation, and evidence-based measurement.
helsome/folio
Market intelligence: strategy screener, popularity rankings, top movers with news correlation, quote anomalies, index/ETF constituent stocks, morning briefings, catalyst monitoring for watchlist…
dotnet/skills
Add authentication and authorization to a Blazor Web App, accounting for the app's render mode.
adobe/skills
Detect all languages used on a webpage — both declared (html@lang, hreflang alternate links, nested lang= attributes, meta content-language) and actually present in the body text (Google CLD3 via…
JoelLewis/finance_skills
Analyze alternative investments including hedge funds, private equity, and venture capital.
openchamber/openchamber
A skill your agent uses when creating or modifying OpenChamber UI components, styling, colors, buttons, visual states, themes, or icons.
openchamber/openchamber
A skill your agent uses when creating or modifying OpenChamber shared UI data access, OpenCode SDK calls, RuntimeAPIs, runtime fetch/auth/URLs, authenticated browser assets, bridges/proxies, runtime…
openchamber/openchamber
A skill your agent uses when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially @dnd-kit, touch/mobile interactions, variable-width items, or wrapping layouts.
openchamber/openchamber
A skill your agent uses when creating or modifying OpenChamber UI text, labels, buttons, placeholders, aria labels, empty states, toasts, dialogs, settings copy, navigation labels, or any…
openchamber/openchamber
A skill your agent uses when implementing or reviewing code on interaction, render, event, polling, synchronization, list-processing, store-selector, cache, indexing, or high-volume data paths; when…
openchamber/openchamber
A skill your agent uses when working with the OpenChamber iOS Simulator app without opening Xcode - boot/install/launch the Capacitor iOS app, start a browser stream, tap/type/gesture/rotate…
A skill your agent uses when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation…. Sync State Invariants is an agent skill from openchamber/openchamber. Use when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation, runtime-scoped caches, or directory-dependent session behavior.
Sync State Invariants fits situations like: changing session synchronization; reconnect state; optimistic updates; ordering/reconciliation.
Run `npx skills add openchamber/openchamber --skill sync-state-invariants -a claude-code`. Or copy the skill folder (.agents/skills/sync-state-invariants in openchamber/openchamber) into .claude/skills/sync-state-invariants in your project. Claude Code loads it when a task matches its description.
Run `npx skills add openchamber/openchamber --skill sync-state-invariants -a codex`. Or copy the skill folder (.agents/skills/sync-state-invariants in openchamber/openchamber) into .agents/skills/sync-state-invariants in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openchamber/openchamber --skill sync-state-invariants -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sync-state-invariants, .gemini/skills/sync-state-invariants, .github/skills/sync-state-invariants and .opencode/skills/sync-state-invariants in your project.
SKILL.md names no scripts, command-line tools or credentials: Sync State Invariants is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sync State Invariants is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sync State Invariants: Event Model (ObneyAI/grain, 123 stars), Persona Performance Tuning (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Longbridge Intel (helsome/folio, 270 stars) and Configure Auth (dotnet/skills, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
openchamber (a GitHub organization) maintains it in openchamber/openchamber, which has 11,308 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.
Source: openchamber/openchamber on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.