event-model-distill

event-model-distill is a skill for Claude Code from ObneyAI/grain. It costs 63 tokens per session (199 once invoked), scanned A, original, MIT.

A workflow for mapping an existing Grain system: its commands, events, data views, queries, processors, schedules, screens, and user flows. Grain is the application framework being inspected, while Allium is used to describe intended observable behavior.

In plain words
What is it for?
Use it to inspect a Grain codebase or live catalog, build an application topology, connect commands and screens to Allium declarations, and check the result structurally.
Why use it?
It gives the codebase a documented map and links system actions and screens to their intended rules, while marking uncertain conclusions instead of guessing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the grain plugin — 8 skills shipped together

Good fit Use it to inspect a Grain codebase or live catalog, build an…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obneyai/grain/event-model-distill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ObneyAI/grain --skill event-model-distill
Clone the repo
git clone --depth 1 https://github.com/ObneyAI/grain

Made for: Claude Code.

Or install grain, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for event-model-distill

README.md
[![agentmods](https://agentmods.dev/badge/skills/obneyai/grain/event-model-distill.svg)](https://agentmods.dev/skills/obneyai/grain/event-model-distill)
Your own site
<a href="https://agentmods.dev/skills/obneyai/grain/event-model-distill"><img src="https://agentmods.dev/badge/skills/obneyai/grain/event-model-distill.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00199
Opus 5 $0.00032 $0.00100
Sonnet 5 $0.00013 $0.00040
Haiku 4.5 $0.00006 $0.00020

Measured 7d ago against content hash 746db343c0a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

event-model-distill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/event-model-distill/SKILL.md · 18 lines

What it actually says

Event Model Distill

Run Allium distill to capture intentional observable behaviour. Independently inspect Grain def* sites and, when available, the live catalog to construct the service-area topology. Treat registries and schemas as authoritative facts; infer design-only screens and flows from boundaries and data movement.

Link each command to its matching distilled Allium rule and each screen to its surface. Mark uncertain topology as an open question instead of inventing it. Validate structurally, then run the composition gate. Review intended versus accidental behavior in Allium before treating the result as durable context.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 18 lines · 63 tokens per session scan A 746db343c0a1

Subscribe to this mod's changes

event-model-distill is a skill published in the GitHub repository ObneyAI/grain (118 stars, last pushed 3d ago), licensed MIT. It adds 63 tokens to every session and 199 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

workflow-orchestration-patterns

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

wshobson/agents · 49 tokens

microservices-patterns

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

wshobson/agents · 38 tokens

python-sdk

Implement or modify Python SDK behavior under python/composio, including tools, toolkits, sessions, auth configs, connected accounts, client integration, and shared Python models. Use for Python core runtime/API work; pair with python-testing and cross-sdk-parity when TypeScript must match.

ComposioHQ/composio · 60 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens