/grain:grain-viewfrom grain
Composes Grain Datastar pages or fragments with navigation, command submissions, and query refreshes. Returns Hiccup with stable root IDs matching patch targets.
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.
Keep reads and authorization in the query.
Give the view the data it renders. Return Hiccup with a stable root ID that
matches the patch target. At the query boundary, return
{:datastar/hiccup (ui/hiccup (view data))} using ai.obney.grain.datastar.ui.
(ui/href query-name {:query-params params}).:on/submit {:effect (ui/dispatch command-name payload) :modifiers {:prevent true}}.(ui/refresh query-name params) when a filter or selection changes.
For event-driven updates, declare the query’s model subscriptions.Pass command and refresh inputs explicitly. Use a UI component when multiple views share an interaction.
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