/grain:grain-schemafrom grain
Defines Malli payload schemas for Grain commands, queries, events, and keyed projections. Helps validate envelopes and payloads.
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.
Put the schema on the declaration that uses it.
defevent and its payload :schema. Event definitionsdefreadmodel, put the per-instance state shape in :state-schema.
Put the stored output shape in :result-schema when :result transforms it.defeventmodel, match each block’s :schema to its runtime declaration.
A read-model block describes state.defcommand and defquery look up inputs by qualified name. Register those
inputs with defschemas, which also supports shared named Malli types.Load the declarations, then check a payload with (tools/validate schema-name payload)
or a full envelope with (tools/validate kind schema-name envelope), where kind
is :command, :query or :event. Validation API
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (obneyai/grain) — no native marketplace selected
npx claudepluginhub p/obneyai-grain18 skills in this plugin
/event-model-propagateDerive Grain tests for registered topology, boot validation and Allium trace links.Other plugins' skills for the same job