event-model-weed

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

A workflow for comparing Grain's live event model with the running application and its Allium behavior declarations. An event model maps commands, events, data views, screens, and their connections; Allium describes intended observable behavior.

In plain words
What is it for?
Use it to investigate specification drift, validate runtime topology, check command-to-rule and screen-to-surface links, and resolve coverage or schema findings.
Why use it?
It exposes differences between specifications and code, broken links, missing coverage, and invalid runtime wiring before they become trusted documentation.

Skill for Claude Code

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

Part of the grain plugin — 8 skills shipped together

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.

agentmods
npx agentmods add skills/obneyai/grain/event-model-weed
Any agent
npx skills add ObneyAI/grain --skill event-model-weed
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-weed

README.md
[![agentmods](https://agentmods.dev/badge/skills/obneyai/grain/event-model-weed.svg)](https://agentmods.dev/skills/obneyai/grain/event-model-weed)
Your own site
<a href="https://agentmods.dev/skills/obneyai/grain/event-model-weed"><img src="https://agentmods.dev/badge/skills/obneyai/grain/event-model-weed.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00060 $0.00201
Opus 5 $0.00030 $0.00101
Sonnet 5 $0.00012 $0.00040
Haiku 4.5 $0.00006 $0.00020

Measured 6d ago against content hash 0c70df7b5a80, 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-weed 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 6d 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-weed/SKILL.md · 18 lines

What it actually says

Event Model Weed

Run Allium weed first to reconcile observable behavior. Then load the Grain app and compare (em/registered-model) with (tools/catalog) using strict Event Model validation and coverage. Classify every finding as model drift, implementation drift, or an intentional aspirational gap; resolve rather than suppress it.

Run validate-spec-composition to check required and optional Allium links. A renamed rule or surface must update the Event Model reference; topology must not copy the changed behavior. Finish only when tests, Allium verification, strict runtime topology, and the composition gate are all clean.

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. 6d ago First seen · 18 lines · 60 tokens per session scan A 0c70df7b5a80

Subscribe to this mod's changes

event-model-weed is a skill published in the GitHub repository ObneyAI/grain (118 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 201 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

adk-debug

Diagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model. Covers the adk run CLI and the adk web dev server with its session, trace, and debug HTTP endpoints. Use when an agent returns the wrong answer, ignores a tool or swallows a tool error, hangs…

google/adk-python · 191 tokens

typescript-testing

Select and run TypeScript SDK verification for packages, examples, type checks, linting, builds, Vitest suites, and runtime E2E tests. Use when adding tests, diagnosing TypeScript CI, choosing a focused test command, or validating TypeScript package changes. Do not use for Python-only checks.

ComposioHQ/composio · 65 tokens

cli-e2e

Write, modify, or debug Docker-based Composio CLI end-to-end tests under ts/e2e-tests/cli, including binary invocation, fixture isolation, output assertions, and package manifests. Use for CLI E2E test suites only; use cli-command for CLI source implementation.

ComposioHQ/composio · 62 tokens

potpie-cli

Use when the task is centered on running, explaining, configuring, or troubleshooting the potpie command: doctor, login, pot management, source registration, search, graph workbench reads/writes, and pot scope behavior.

potpie-ai/potpie · 50 tokens

rubber-duck

Adversarial "rubber duck" review that turns explaining-out-loud into a hallucination check. The main session is the PRESENTER (it did the work — a design doc, investigation, or analysis — and holds the real reasoning) and reconstructs the topic to a LISTENER — a spawned subagent pinned to a DIFFERENT-vendor model that…

kirodotdev/KiroCrew · 161 tokens

ios-simulator

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

callstack/agent-device · 69 tokens