/ilo:ilofrom ilo
Write, run, debug, and explain programs in ilo, a token-optimised programming language for AI agents. Covers syntax, builtins, error codes, tools, engines, and agent integration.
Ships in ilo. 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.
Read when SKILL.md points to them; scripts run unread.
Before writing or running ilo code, ensure ilo is installed and up to date:
scripts/ensure-ilo.sh
Run this at the start of every ilo task. It installs ilo if missing, or updates it if a newer version is available.
This file is a thin bootstrap. The rich, version-matched ilo skill content is served by the installed ilo binary, not embedded here. To discover it:
ilo skill listilo skill get <name>ilo skill list --jsonEvery skill subcommand accepts --json (short alias -j, ILO-442). The envelope is {schemaVersion: 1, ...}, matching the rest of ilo's CLI JSON contract. -j works on every CLI subcommand — ilo check -j, ilo spec -j ai, ilo run -j, etc.
Twelve task-focused skills cover the surface. Load only the slices the current task needs (typical: 1-2 modules):
ilo-language writing or reviewing .ilo source: syntax, types, guards, match, pipes, Results, loops, lambdas.ilo-language-records writing ilo code with record types: declarations, construction, field access, destructuring, update syntax, safe navigation. Load alongside ilo-language when your code uses type.ilo-builtins-core core builtins: type coercions (len str num trm), list ops, HOFs, map ops.ilo-builtins-math math builtins: arithmetic, trig, constants (pi tau e), random, statistics.ilo-builtins-io I/O builtins: file read/write, HTTP, JSON, path ops, env, time, process.ilo-builtins-text text builtins: manipulation, regex, formatting (fmt fmt2), CSV/TSV, date parsing (dtfmt, dtparse, dtparse-rel for relative phrases), calendar arithmetic (add-mo, last-dom, next-business-day, day-of-week).ilo-errors reading ILO-XXXX codes: lex / parse / type / runtime classes with one-line cause + fix.ilo-tools declaring and using external tools: MCP servers and HTTP providers.ilo-engines picking an execution backend: tree, VM, JIT, AOT.ilo-agent integrating ilo into an agent loop: discovery, running, output contract.ilo-examples finding a runnable pattern: curated index of examples/*.ilo by task shape.ilo-edit-loop recovering from failures: the repair cycle, JSON diagnostics, common fixes.The content lives in skills/ilo/<name>.md. The installed binary serves the same files via include_str!, so the bundled copy and the served copy cannot drift.
Script mode - no main>_; wrapper needed (ILO-439). Bare top-level statements are collected into a synthetic main. prnt +2 2 alone in a file prints 4. Mixing with declarations works when each statement starts its own top-level line:
tri n:n>n;/(*n +n 1) 2
prnt tri 10 -- own line -> becomes main's body; prints 55
Do NOT glue the call to the declaration's line - tri n:n>n;...;prnt tri 10 puts the call inside tri's body, making it call itself (rejected as ILO-V500 unconditional recursion). Don't combine bare statements with an explicit main (ILO-P104).
Text concatenation - three builtins, three jobs. Pick by shape, not by habit:
+ a b - two-arg text/number concat (also list concat). + "hi " name -> "hi alice".fmt "x={} y={}" x y - template formatting (variadic; {} placeholders filled left-to-right, count must equal arg count, no list splat). {name} slots auto-desugar to a lookup of the binding name.cat xs sep - join a list of text with a separator. cat ["a" "b" "c"] "," -> "a,b,c". NOT two-string concat; reach for + for that.label:value form. dtfmt epoch:e fmt:"%Y" ≡ dtfmt e "%Y". Order is free; mix positional + labelled freely (positional fill from left, labels fill remaining slots by name). Works in postfix and paren form. Unknown label → ILO-P019 with known-params list.HTTP custom headers. Every verb in the cluster (get pst put pat del hed opt) accepts an optional trailing M t t headers map. The two-arg get url headers and three-arg pst url body headers forms are real, not workarounds. Build the map with mmap + mset:
hs=mset (mset mmap "Authorization" tok) "Accept" "application/json"
r=get! "https://api.example.com/v1/users" hs
jpth is dot-path, not JSONPath. jpth body "user.addresses.0.city" works. Leading $, *, and [...] are rejected with a diagnostic - don't reach for JSONPath wildcards. Numeric list indices are bare numbers in the path, segment-separated by ..
Every builtin name, builtin alias, and control-flow keyword is reserved. Using any as a binding triggers ILO-P011 at parse time. Use 4+ character descriptive names (item, rows, accum, total, count, index, result) to stay clear of this class of error permanently.
Lexer keywords (reserved tokens, never identifiers): fn def let var const if return true false nil type tool use
1-char: e (Euler's number — math constant)
2-char: at ct hd rd tl wr wh (while-loop keyword)
3-char builtins: abs avg cap cat cel chr cos det dot env exp fft fld flt fmt frq get grp has inv log lsd lst lwr map max min mod now ord pi pow pst rdb rdl rev rgx rnd rou run sin slc spl srt sum tan tau trm unq upr wra wrl zip
3-char control-flow: brk (break) cnt (continue) ret (return). ret from inside any loop body (@x xs, @i a..b, wh) returns from the enclosing fn directly - no sentinel-flag pattern needed.
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul matvec mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile rand-bytes range rdb rdin rdinl rdjl rdl rndn rsrt setdiff setinter setunion sleep solve sqrt stdev take transpose uniqby variance walk where window wra wrl
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul matvec mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile rand-bytes range rdb rdin rdinl rdjl rdl rndn rsrt setdiff setinter setunion sleep solve sqrt stdev take transpose uniqby variance walk window wra wrl
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile range rdb rdin rdinl rdjl rdl rndn rsrt seed setdiff setinter setunion sleep solve sqrt stdev take transpose uniqby variance walk window wra wrl
Builtin aliases (long-form names that resolve to short builtins, also reserved): length→len, head→hd, tail→tl, reverse→rev, sort→srt, slice→slc, unique→unq, filter→flt, fold→fld, flatten→flat, concat→cat, contains→has, group→grp, average→avg, print→prnt, trim→trm, split→spl, format→fmt, regex→rgx, read→rd, readlines→rdl, write→wr, writelines→wrl, ceil→cel, round→rou, rand/random→rnd, rng→range, string→str, number→num.
Agents reach for these names constantly — pick the listed alternative and move on:
fn (keyword) → f, fv, func, or a descriptive name like callback / predicatedef (keyword) → d, defn, defvlet / var / const (keywords) → l/lv/letv, v/value, c/k/constvif / return (keywords) → cond/flag/iff, result/out/ret_vale (math constant) → event, evt, entry, elem, errenv (builtin) → ev, envir, environ, envvlog (math builtin) → lg, logger, entry, recordnow (time builtin) → tnow, current, nowts, timestampiter (not reserved today, but agents often pair with builtins — prefer descriptive) → i, idx, step, cursorchars (builtin) → cs, glyphs, lettershead / tail / length (aliases) → hd/tl/len directly, or first/rest/sizefilter / sort / concat / fold (aliases) → flt/srt/cat/fld directly, or keep/sorted/joined/reducedfld (fold builtin) → field, folder, recordcnt / brk (loop control) → count/index, brake/stopWhen in doubt: pick a 4+ char descriptive name. The token cost of an extra character is dwarfed by the cost of an ILO-P011 retry round-trip.
For unbounded input streams (e.g. tail -f, a producer that never closes stdin), use for-line instead of rdinl:
-- rdinl buffers ALL of stdin before returning — blocks on infinite/slow producers.
-- for-line "stdin" yields one line at a time as the pipe delivers it.
main>n;n=0;@line (for-line "stdin"){prnt line;n=+ n 1};n
for-line takes exactly one arg: the text "stdin". It is iterable directly with @binding foreach. On WASM it returns Err. Tree + VM engines only (Cranelift JIT follow-up). Keep using rdinl when you need random access to all lines (e.g. to sort them).
now and now-ms are not the whole surface. Full set: now (Unix seconds), now-ms (Unix ms), dtfmt ts fmt (timestamp to text), dtparse s fmt (text to timestamp, R n t), dtparse-rel s now (relative phrase like "in 3 days" / "last monday" anchored at now, R n t). Reach for dtparse-rel before hand-rolling phrase parsers. Details in ilo skill get ilo-builtins-text.
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul matvec mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile rand-bytes range rdb rdin rdinl rdjl rdl rndn rsrt setdiff setinter setunion sleep solve sqrt stdev take transpose uniqby variance walk window wra wrl
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul matvec mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile range rdb rdin rdinl rdjl rdl rndn rsrt setdiff setinter setunion sleep solve sqrt stdev take transpose uniqby variance walk window wra wrl
4-char+: acos asin atan argmax argmin argsort basename chars chunks clamp cprod cumsum dirname dot drop dtfmt dtparse dtparse-rel enumerate flat flatmap fmod fmt2 fsize glob ifft inv isdir isfile jdmp jkeys jpar jpth len mapr matmul mdel median mget mhas mkeys mmap mpairs mset mtime mvals padl padr partition pathjoin prnt prod quantile range rdb rdin rdinl rdjl rdl rndn rsrt setdiff setinter setunion sleep solve sqrt stdev take transpose tz-offset uniqby variance walk window wra wrl
No tuple type. zip xs ys returns L (L n) — a list of two-element lists, not a list of tuples. Destructure pairs with at pair 0 / at pair 1, never pair.0 / pair.1 where pair is unbound. ILO-T004 on tup.0 / pair.0 carries a hint naming the exact at <name> <N> call to write.
-- DON'T: zs=zip xs ys; +tup.0 tup.1 -- tup is unbound; ilo has no tuple type
-- DO: zs=zip xs ys; map (pair:L n>n;+at pair 0 at pair 1) zs
(pair.0 itself is valid sugar for list indexing once pair is bound to an L T parameter; the diagnostic only fires when the identifier is unbound.)
ilo has no borrow checker, no lifetime annotations, no ownership rules. Values are RC-managed; the type checker enforces shape only. There is no &, no &mut, no 'a. If an agent is reaching for lifetime-style reasoning in ilo, it has the wrong mental model.
If the binary is available, the fastest path is:
ilo skill list --json | jq
ilo skill get ilo-language
ilo skill get ilo-edit-loop
That gives the modular reference, the repair loop, and the discovery contract in three commands.
ilo-agent.md (opens in a new tab)ilo-builtins-core.md (opens in a new tab)ilo-builtins-io.md (opens in a new tab)ilo-builtins-math.md (opens in a new tab)ilo-builtins-text.md (opens in a new tab)ilo-edit-loop.md (opens in a new tab)ilo-engines.md (opens in a new tab)ilo-errors.md (opens in a new tab)ilo-examples.md (opens in a new tab)ilo-language-records.md (opens in a new tab)ilo-language.md (opens in a new tab)ilo-tools.md (opens in a new tab)scripts/ensure-ilo.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (ilo-lang/ilo) — no native marketplace selected
npx claudepluginhub p/ilo-lang-iloOther plugins' skills for the same job