/grain:grain-eventfrom grain
Defines Grain event types with defevent, emits instances, and validates payload schema compatibility for replay safety.
Ships in grain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Define every event type with defevent, including scheduled triggers and processor
outcomes. Put the Malli payload schema on the declaration. Load its namespace before
emitting the event.
(require '[ai.obney.grain.event-store-v3.interface :as es])
(es/defevent :inventory/item-renamed
"An inventory item received a new name."
{:schema [:map [:id :uuid] [:name :string]]})
(defn item-renamed [id new-name]
(es/->event {:type :inventory/item-renamed
:tags #{[:item id]}
:body {:id id :name new-name}}))
Consumers read :id and :name directly from the event. The store assigns
:event/id and :event/timestamp at append.
Keep the event type stable and test payload changes against previously stored
events. Match the event’s :schema in the service’s Event Model. Omit :history
for complete history. Bounded history
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/event-modelAuthor and validate Grain service topology, CQRS flows, registry declarations and links to Allium./event-model-distillRecover a Grain Event Model from existing code and live registries./event-model-elicitDiscover Grain service topology for a new feature or service area./event-model-propagateDerive Grain tests for registered topology, boot validation and Allium trace links./event-model-tendEdit an existing Grain Event Model when blocks, schemas, dependencies, flows or trace links change./event-model-weedDiagnose drift between a Grain Event Model, the live registries and linked Allium declarations.Generated from the plugin's indexed repository (obneyai/grain) — no native marketplace selected
npx claudepluginhub p/obneyai-grainOther plugins' skills for the same job