Agent skill

Grain

by ObneyAI in ObneyAI/grain

Drive a Grain engineering goal through one composed Allium and Event Model loop.

MITAuto-check passedBusiness, Finance & HR

Install Grain

skills CLI
$ npx skills add ObneyAI/grain --skill grain -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ObneyAI/grain grain --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ObneyAI/grain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/grain .claude/skills/grain && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
grain
GitHub stars
123
Token cost
~482 tokens
SKILL.md length
204 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Drive a Grain engineering goal through one composed Allium and Event Model loop.

  • Works in 5 steps: Gather durable context with Allium… → Use Allium propagate for behavioural… → Implement and run tests. Confirm new… → …
  • Specification work
  • SKILL.md covers Preflight and Composed loop
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Grain is an agent skill from ObneyAI/grain. Drive a Grain engineering goal through one composed Allium and Event Model loop. Use for Grain features, specification work, implementation, reconciliation, or when the user invokes Grain as the entry point. Delegate observable behaviour to installed Allium skills and add Grain service-topology work; continue until specs, tests, code, runtime validation, and trace links agree.

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Accounting and bookkeeping. The repository describes itself as: Build Reasonable Applications with Clojure in the World of Natural Language Programming. The licence is MIT.

When your agent uses it

  • Specification work
  • The user invokes Grain as the entry point

Example prompts

  • “/grain”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Gather durable context with Allium elicit or distill, then run the matching
  2. Use Allium propagate for behavioural tests. Use event-model-propagate for
  3. Implement and run tests. Confirm new behavioural tests were red before the
  4. Verify with Allium weed, allium check, and allium analyse; then run
  5. If behaviour was wrong, revise with Allium tend; if topology was wrong, use

What it can do on your machine

Read from SKILL.md and the folder at commit dbf5b52. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Grain loads about 482 tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 204 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~482

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ObneyAI/grain at commit dbf5b52, republished under its MIT licence (© ObneyAI). 204 words, ~482 tokens.

Download SKILL.mdSave it as .claude/skills/grain/SKILL.md (or your agent's skills folder).
name
grain
description
Drive a Grain engineering goal through one composed Allium and Event Model loop. Use for Grain features, specification work, implementation, reconciliation, or when the user invokes Grain as the entry point. Delegate observable behaviour to installed Allium skills and add Grain service-topology work; continue until specs, tests, code, runtime validation, and trace links agree.

Grain

Use Allium as the behavioural host and Event Model as its Grain topology extension. Never copy behavioural rules or Given/When/Then into Event Model.

Preflight

Confirm the Allium entry and verb skills are installed. If not, pause and give the installation command appropriate to the active editor from https://github.com/juxt/allium. Do not vendor or silently replace Allium.

Inspect .allium files, defeventmodel forms, the live Grain catalog when available, and current tests. Decide whether the goal changes behaviour, topology, or both.

Composed loop

  1. Gather durable context with Allium elicit or distill, then run the matching event-model-elicit or event-model-distill phase for topology.
  2. Use Allium propagate for behavioural tests. Use event-model-propagate for topology, boot-mandate, and composition contract tests.
  3. Implement and run tests. Confirm new behavioural tests were red before the implementation when doing spec-first work.
  4. Verify with Allium weed, allium check, and allium analyse; then run event-model-weed, strict runtime validation, and composition validation.
  5. If behaviour was wrong, revise with Allium tend; if topology was wrong, use event-model-tend. Re-propagate and repeat.

Finish only when behavioural specs, topology, generated tests, implementation, runtime registries, and Allium trace links agree and no open question remains.

Read the event-model skill for the Grain schema and exact REPL APIs.

© ObneyAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/grain of ObneyAI/grain.

Open the folder on GitHubat commit dbf5b52

Compare with similar skills

Grain next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Grain compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Grain this skillObneyAI/grain123—~482Automated safety check: PassMIT
Sync Upstreamnyaruka/phonenumbers1.6k—~2.8kAutomated safety check: PassMIT
Longbridge Value Investinghelsome/folio2692 repos~1.2kAutomated safety check: PassMIT
Radiology Tablehuang-sir1/radiology-skills1.9k—~1.3kAutomated safety check: PassCustom licence
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo420—~699Automated safety check: PassMIT
Beancount Closebex-co/beancount-io295—~1.4kAutomated safety check: PassMIT

Similar skills

  • Sync Upstream

    nyaruka/phonenumbers

    Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.

    1.6k GitHub stars~2.8k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed
  • Value investing analysis using Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) methodologies.

    269 GitHub starsUsed in 2 repos~1.2k tokens
    Business, Finance & HRAuto-check passed
  • Radiology Table

    huang-sir1/radiology-skills

    Create/audit editable publication tables with source reconciliation; not figures or statistical inference.

    1.9k GitHub stars~1.3k tokensUpdated 17 days ago
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    420 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Beancount Close

    bex-co/beancount-io

    Close an accounting period in a Beancount ledger by reconciling each active account through beancount-reconcile, checking assertions and recurring gaps, reviewing flags, then proposing a commit with…

    295 GitHub stars~1.4k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • ERPClaw ERP Controller

    avansaber/erpclaw

    Operates the ERPClaw self-hosted ERP in plain language: accounting, invoicing, inventory, purchasing, tax, HR, payroll and reports, treating the ERP as the single source of truth.

    114 GitHub stars~15k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed

More from ObneyAI/grain

All 8 skills in this repo
  • Event Model

    ObneyAI/grain

    Read, write, and validate Grain's service-area-first Event Model topology.

    123 GitHub stars~536 tokensUpdated 13 days ago
    Auto-check passed
  • Grain Genome

    ObneyAI/grain

    Build or update Grain's interactive component genome. An agent skill from ObneyAI/grain.

    123 GitHub stars~445 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Distill

    ObneyAI/grain

    Distill Grain Event Model topology from an existing system as the topology companion to Allium distill.

    123 GitHub stars~248 tokensUpdated 13 days ago
    Auto-check passed
  • Generate Grain topology and composition contract tests after Allium propagates behavioural tests.

    123 GitHub stars~247 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Weed

    ObneyAI/grain

    Reconcile Grain Event Model topology with the live runtime and its linked Allium declarations as the topology phase after Allium weed.

    123 GitHub stars~241 tokensUpdated 13 days ago
    Auto-check passed
  • Event Model Elicit

    ObneyAI/grain

    Add Grain Event Model topology to an Allium intent-first elicitation.

    123 GitHub stars~249 tokensUpdated 13 days ago
    Auto-check passed

Questions about Grain

What does Grain do?

Drive a Grain engineering goal through one composed Allium and Event Model loop. Grain is an agent skill from ObneyAI/grain. Drive a Grain engineering goal through one composed Allium and Event Model loop.

When should I use Grain?

Grain fits situations like: specification work; the user invokes Grain as the entry point.

How do I install Grain in Claude Code?

Run `npx skills add ObneyAI/grain --skill grain -a claude-code`. Or copy the skill folder (skills/grain in ObneyAI/grain) into .claude/skills/grain in your project. Claude Code loads it when a task matches its description.

How do I install Grain in Codex?

Run `npx skills add ObneyAI/grain --skill grain -a codex`. Or copy the skill folder (skills/grain in ObneyAI/grain) into .agents/skills/grain in your project. Codex loads it when a task matches its description.

Can I use Grain in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ObneyAI/grain --skill grain -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/grain, .gemini/skills/grain, .github/skills/grain and .opencode/skills/grain in your project.

What does Grain need to run?

SKILL.md names no scripts, command-line tools or credentials: Grain is instructions for the agent only.

Does Grain access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Grain safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Grain use?

Grain is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Grain use?

About 482 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Grain?

Skills that share tags, products or a category with Grain: Sync Upstream (nyaruka/phonenumbers, 1.6k stars), Longbridge Value Investing (helsome/folio, 269 stars), Radiology Table (huang-sir1/radiology-skills, 1.9k stars) and Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 420 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Grain?

ObneyAI (a GitHub organization) maintains it in ObneyAI/grain, which has 123 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 24, 2026.

Source: ObneyAI/grain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.