Agent skill

Event Model

by ObneyAI in ObneyAI/grain

Read, write, and validate Grain's service-area-first Event Model topology.

MITAuto-check passedBusiness, Finance & HR

Install Event Model

skills CLI
$ npx skills add ObneyAI/grain --skill event-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ObneyAI/grain event-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ObneyAI/grain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/event-model .claude/skills/event-model && rm -rf skills-src

Use ~/.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/

Facts

Skill name
event-model
GitHub stars
123
Token cost
~536 tokens
SKILL.md length
153 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Read, write, and validate Grain's service-area-first Event Model topology.

  • Defeventmodel EDN
  • SKILL.md covers Behavioural trace and Oracle
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Grain CQRS blocks and flows

What it does

Event Model is an agent skill from ObneyAI/grain. Read, write, and validate Grain's service-area-first Event Model topology. Use for defeventmodel EDN, Grain CQRS blocks and flows, live registry reconciliation, boot mandates, or :grain/allium trace links. Event Model describes topology only; route observable behavioural rules and test obligations to Allium.

Its SKILL.md is about 540 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 Event-driven systems and Accounting and bookkeeping. The repository describes itself as: Build Reasonable Applications with Clojure in the World of Natural Language Programming. The licence is MIT.

When your agent uses it

  • Defeventmodel EDN
  • Grain CQRS blocks and flows
  • Live registry reconciliation
  • :grain/allium trace links

Example prompts

  • “/event-model”

What it can do on your machine

Read from SKILL.md and the folder at commit dbf5b52. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are clojure).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Event Model loads about 536 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 153 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~536

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from ObneyAI/grain at commit dbf5b52, republished under its MIT licence (© ObneyAI). 153 words, ~536 tokens.

Download SKILL.mdSave it as .claude/skills/event-model/SKILL.md (or your agent's skills folder).
name
event-model
description
Read, write, and validate Grain's service-area-first Event Model topology. Use for defeventmodel EDN, Grain CQRS blocks and flows, live registry reconciliation, boot mandates, or :grain/allium trace links. Event Model describes topology only; route observable behavioural rules and test obligations to Allium.

Event Model

An Event Model is {area -> service-area} EDN. Areas contain :commands, :events, :read-models, :queries, :todo-processors, :periodic-tasks, :screens, and :flows. Blocks use :<area>/<name> keys; identity is [kind name] because kinds come from structural position.

Legal flow adjacency:

text
command -> event -> read-model -> query -> screen
                                  query -> todo-processor -> command
screen -> command
read-model -> command
periodic-task -> command | event

Processor :subscribes is event trigger wiring, not a flow input. Commands and queries :reads target read models. Production/read declarations at def* sites use :grain.event-model/produces and :grain.event-model/reads.

Behavioural trace

Commands must link to at least one Allium rule and screens to at least one Allium surface for the dev/CI composition gate:

clojure
:grain/allium
[{:spec "components/orders/orders.allium"
  :kind :rule
  :name "PlaceOrder"}]

Paths are safe repository-relative .allium paths. Optional references on other blocks and flows must also resolve. Never add :given-when-thens; behavior lives in Allium.

Oracle

Over the project nREPL, require:

clojure
[ai.obney.grain.event-model.interface :as em]
[ai.obney.grain.event-model-validator.interface :as emv]
[ai.obney.grain.code-agent-tools.interface :as tools]

Use (em/registered-model), (tools/catalog), (emv/validate-event-model model {:strict true}), (tools/event-model-coverage model), and (tools/validate-spec-composition model {:project-root "." :event-model-opts {:strict true}}). The last call requires the Allium CLI and is dev/CI-only. Production boot uses emv/verify-or-throw! and never requires Allium source or tooling.

© ObneyAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/event-model of ObneyAI/grain.

Open the folder on GitHubat commit dbf5b52

Compare with similar skills

Event Model 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.

Event Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Event Model this skillObneyAI/grain123—~536Automated safety check: PassMIT
Sync State Invariantsopenchamber/openchamber11k—~2.7kAutomated safety check: PassMIT
Persona Performance Tuningjeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT
Sync Upstreamnyaruka/phonenumbers1.6k—~2.8kAutomated safety check: PassMIT
Longbridge Value Investinghelsome/folio2692 repos~1.2kAutomated safety check: PassMIT
Radiology Tablehuang-sir1/radiology-skills1.9k—~1.3kAutomated safety check: PassCustom licence

Similar skills

  • Sync State Invariants

    openchamber/openchamber

    A skill your agent uses when changing session synchronization, bootstrap or reconnect state, event reducers, polling, optimistic updates, message queues, live activity, ordering/reconciliation…

    11k GitHub stars~2.7k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Persona Performance Tuning

    jeremylongshore/tons-of-skills-marketplace

    Improve Persona integration latency and throughput with event-driven processing, bounded reconciliation, and evidence-based measurement.

    2.8k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Sync Upstream

    nyaruka/phonenumbers

    Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.

    1.6k GitHub stars~2.8k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed
  • Value investing analysis using Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) methodologies.

    269 GitHub starsUsed in 2 repos~1.2k tokens
    Business, Finance & HRAuto-check passed
  • Radiology Table

    huang-sir1/radiology-skills

    Create/audit editable publication tables with source reconciliation; not figures or statistical inference.

    1.9k GitHub stars~1.3k tokensUpdated 16 days ago
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    420 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

More from ObneyAI/grain

All 8 skills in this repo
  • Grain

    ObneyAI/grain

    Drive a Grain engineering goal through one composed Allium and Event Model loop.

    123 GitHub stars~482 tokensUpdated 13 days ago
    Auto-check passed
  • Grain Genome

    ObneyAI/grain

    Build or update Grain's interactive component genome. An agent skill from ObneyAI/grain.

    123 GitHub stars~445 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Distill

    ObneyAI/grain

    Distill Grain Event Model topology from an existing system as the topology companion to Allium distill.

    123 GitHub stars~248 tokensUpdated 13 days ago
    Auto-check passed
  • Generate Grain topology and composition contract tests after Allium propagates behavioural tests.

    123 GitHub stars~247 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Weed

    ObneyAI/grain

    Reconcile Grain Event Model topology with the live runtime and its linked Allium declarations as the topology phase after Allium weed.

    123 GitHub stars~241 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Elicit

    ObneyAI/grain

    Add Grain Event Model topology to an Allium intent-first elicitation.

    123 GitHub stars~249 tokensUpdated 13 days ago
    Auto-check passed

Questions about Event Model

What does Event Model do?

Read, write, and validate Grain's service-area-first Event Model topology. Event Model is an agent skill from ObneyAI/grain. Read, write, and validate Grain's service-area-first Event Model topology.

When should I use Event Model?

Event Model fits situations like: defeventmodel EDN; grain CQRS blocks and flows; live registry reconciliation; :grain/allium trace links.

How do I install Event Model in Claude Code?

Run `npx skills add ObneyAI/grain --skill event-model -a claude-code`. Or copy the skill folder (skills/event-model in ObneyAI/grain) into .claude/skills/event-model in your project. Claude Code loads it when a task matches its description.

How do I install Event Model in Codex?

Run `npx skills add ObneyAI/grain --skill event-model -a codex`. Or copy the skill folder (skills/event-model in ObneyAI/grain) into .agents/skills/event-model in your project. Codex loads it when a task matches its description.

Can I use Event Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ObneyAI/grain --skill event-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/event-model, .gemini/skills/event-model, .github/skills/event-model and .opencode/skills/event-model in your project.

What does Event Model need to run?

SKILL.md names no scripts, command-line tools or credentials: Event Model is instructions for the agent only.

Does Event Model access the network?

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.

Is Event Model safe to install?

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.

What licence does Event Model use?

Event Model is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Event Model use?

About 536 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Event Model?

Skills that share tags, products or a category with Event Model: Sync State Invariants (openchamber/openchamber, 11k stars), Persona Performance Tuning (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Sync Upstream (nyaruka/phonenumbers, 1.6k stars) and Longbridge Value Investing (helsome/folio, 269 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Event Model?

ObneyAI (a GitHub organization) maintains it in ObneyAI/grain, which has 123 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 24, 2026.

Source: ObneyAI/grain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.