/relux:referencefrom relux
Answers questions about Relux syntax, semantics, runtime behavior, lifecycle, and project layout by routing to the plugin's reference library. Use when the user asks how Relux works or needs canonical explanations.
Ships in relux. 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.
The references bundled with this plugin (../../references/*.md relative
to this skill file) are the canonical source of truth for the Relux
language and runtime. This skill is the router: pick the references that
match the user's question, read them in full, then answer.
The catalog below is intentionally one line per reference. The goal is which file to open, not what it says -- if the catalog ever drifted, it would be worse than useless. Domain rules belong in the references; this skill points at them.
User phrasings:
fn and pure fn?" / "When does an effect get deduplicated?"/relux:reference directly.Agent-task signals:
relux:test-write, relux:effect-edit) hits a
semantics question outside its workflow. The sibling skill keeps its
authoring focus; this one supplies the rule.Out of scope. This is an explanatory skill, not an authoring one. If the user wants to do something -- write a test, add an effect, edit markers, scaffold a suite, install the binary -- defer to the appropriate sibling skill. The catalog here is a reading list, not an editing surface.
What category does the question fall into? Use the catalog headings below as the rubric:
.env.<? / <=, multimatch, fail patterns,
timeouts.fn / pure fn, effect identity
and expose, cleanup discipline, BIFs.# skip / # run / # flaky forms and propagation.relux CLI, CI integration, the
events.json schema and operational recipes, the test-log viewer.A question often spans two categories (e.g. "how does a start Db in a
test affect cleanup order?" touches effect identity and cleanup). Pick
all of them; reading two short references costs less than guessing.
Open the catalog in the section below. For each candidate reference, ask: if this file did not exist, could I answer the question correctly from the others alone? If no, read it.
Bias toward reading more rather than fewer. References are short (most under 200 lines) and the cost of a wrong answer grounded in stale recall is much higher than the cost of one extra read.
Use the Read tool, not Bash cat. Read the whole file -- references
are short and the section the user needs is not always announced by an
obvious heading.
When a reference points at another reference (Markdown link syntax in the body), follow the link if it bears on the question.
effects-identity.md
Identity tuple"*. The user can then go deeper without re-asking.
If the question turned out to be a precursor to an action, point at
the sibling skill that handles it -- "now that you know how expose
works, relux:effect-write is the authoring entry". Do not invoke the
sibling skill unprompted; the user asked a question, not for work.
Reference files live alongside this skill in the plugin. Read them via
../../references/<file>.md relative to this skill file.
project-layout.md -- Relux.toml fields, the
relux/{tests,lib,out} directory convention, file discovery, the
nested-manifest pitfall.imports.md -- import <module-path> forms (wildcard /
selective / aliased), module path resolution from the suite root, the
CamelCase-vs-snake_case disambiguation rule.environment.md -- hierarchical .env discovery, layer precedence
(host env / .env / __RELUX_*), ${VAR} resolution across layers,
and provenance in env.bootstrap.block-structure.md -- top-level forms (test, effect,
fn, pure fn, import), body section order, where let / start
/ shell / cleanup belong, multi-shell-same-name re-entry.statements.md -- statements inside shell / fn /
cleanup bodies (send, match, sleep, let, captures, control codes).interpolation.md -- ${...} substitution semantics,
bare vs interpolated forms, evaluation order.fail-patterns.md -- background fail guards on a
shell's output, operator forms, scope.timeouts.md -- match-operation deadlines, the two kinds
(per-match ~Ns / per-statement @Ns), CI multiplier interaction.matching.md -- the <? and <= operators, cursor
semantics, anchoring, captures.multimatch.md -- the <{ ... } block for any-order
matching, cursor behavior.functions.md -- fn (runs in caller's shell context)
vs pure fn (no shell context, compile-time evaluable in let),
shadowing rules, where each may live.effects-identity.md -- effect body section order, the
(name, expects) identity tuple, lifecycle (instantiate ->
cleanup), dedup semantics, per-test scope.effects-expose.md -- expose shell <name> and
expose let <name>, what callers can reach, expose-not-re-export
rules for wrapper effects.cleanup.md -- cleanup blocks on tests and effects,
the fresh implicit shell, uncancellable tokens, what statements are
legal.bifs.md -- built-in functions split by purity: which
BIFs are legal in pure fns / marker conditions / overlay
expressions, and which require a shell context.markers.md -- # skip / # run / # flaky forms,
polarity (if / unless), expression shapes, propagation rules
(skip propagates transitively), layer choice (test / effect / fn).cli-reference.md -- flags for scaffolding, validating,
running (parallelism, --timeout-multiplier, fail-fast),
dumping IR, analyzing run history, and shell completions.ci-integration.md -- report output formats, scaling
for slower environments via --timeout-multiplier, what to
archive.events-schema.md -- the canonical events.json shape,
top-level fields, event / span / buffer-event records.events-failures.md -- failure, cancellation, and
skip/marker-eval record shapes for non-passing tests, and
the marker_kind/decision table behind why a skip fired.events-recipes.md -- catalog of operational queries against
events.json (buffer state at a seq, variable scope, call stack,
dedup audit, per-shell timeline, regression diff). Routes the
non-trivial ones through the bundled tools/events.py CLI; the
trivial ones stay as inline jq one-liners. Verify field names
against events-schema.md before scripting anything new.viewer.md -- event.html is a self-contained Svelte
SPA. Human surface only -- the agent does not read it. Hand the
user a link when visual triage helps; use events-recipes.md
against events.json for any programmatic reconstruction.The plugin ships small executables alongside the references. They live
under ../../tools/ relative to this skill file and are referenced from
the recipes that use them.
tools/events.py -- python3 <plugin>/tools/events.py [--events PATH] <cmd>.
Subcommands: vars, stack, buffer, timeline, dedup,
pure-trace, diff. Replaces the inline Python and the more awkward
jq trees in events-recipes.md. Reach for it whenever a question
about a past run requires walking spans, projecting variable scope,
reconstructing a shell's buffer at a point in time, or comparing two
runs. The recipes reference is its manual; see Locating the tool
there for the absolute-path rule (the tool lives at
../../tools/events.py relative to this skill file).relux:init -- "how do I set up Relux in a new project?"relux:install / relux:editor-plugin -- "how do I install
Relux / get syntax highlighting?"relux:configure -- "how do I change the shell / a timeout / the
job count?"relux:test-write / relux:test-edit -- "write/change a test
that ..."relux:effect-write / relux:effect-edit -- "write/change an
effect for ..."relux:function -- "extract this into a helper / make a pure fn."relux:markers -- "skip this when ... / mark this as flaky."If the user's question is a precursor to one of these actions, answer the question first, then point at the sibling skill. Do not invoke it silently.
Recall drifts; the references are the canonical rule. Even when the answer feels obvious, open the file. The marginal cost of a Read is near zero; the cost of confidently asserting a stale rule (an operator that was renamed, a field that moved, a propagation rule that flipped) is large.
The user asked a question, not for a full transcript. Read the reference, then answer the specific question with a citation. If the user wants the whole picture, the citation is enough -- they can open the file.
If no reference covers the question, say so plainly. The next surface is the upstream Relux documentation at https://shizzard.github.io/relux/latest/ -- reference, DSL tutorial, suite tutorial. Speculation that sounds plausible but is unbacked is the worst possible answer.
viewer.md is explicit: event.html is a human surface.
For any question that boils down to what's in the structured log,
read events-schema.md + events-recipes.md and query events.json
directly.
If the user says "how do I write a test that ..." with a concrete
target, answer the semantics question if there is one, then hand off
to relux:test-write. This skill does not author .relux files.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
relux, reference, language-reference, semantics, runtime-behavior
npx claudepluginhub shizzard/relux --plugin relux11 skills in this plugin
/configurerelux:configureTune `Relux.toml` knobs -- shell command/prompt, match/test/suite timeouts, parallel jobs, flaky retries -- with a strong bias toward shipped defaults. Use when the user asks to change the shell Relux spawns, bump a timeout because something raced, parallelize the suite, enable flaky retries, rename the suite, or otherwise edit `Relux.toml`. Also fires when the agent encounters a `match-timeout` cancellation in `events.json` and the obvious fix is at the manifest level rather than per-test. Insist on keeping defaults unless the user has a concrete, evidenced signal -- a timeout cancellation, a known boot time, a measured wall-clock budget. Static per-test tuning via `test "name" ~30s` is the wrong tool; this skill or CI's `--timeout-multiplier` covers slow environments./editor-pluginrelux:editor-pluginInstall or update the relux editor plugin for VS Code (and Cursor / VSCodium / code-server) or JetBrains-family IDEs (IntelliJ IDEA, RustRover, CLion, PyCharm, GoLand, WebStorm). Use when the user asks for syntax highlighting on .relux files, wants to set up their editor for relux work, or upgrades an outdated plugin. Often invoked as a follow-up by relux:install after the binary is on PATH./effect-editrelux:effect-editModify an existing `effect` declaration -- changing its `expect` set, `expose` surface, `start <Dep>` graph, `let` / shell body, or cleanup -- with discipline about identity dedup deltas, caller-surface breakage, wrapper transparency, and verification rhythm. Use when the user asks to change an effect's body, add or remove an `expect` var, rename or drop an `expose`d shell or var, wire in a new dep, switch which shell is the service-running one, retune fail patterns, or split a bundled effect into Config+Service / layer chain. Fires on phrasings like "add a port to `Postgres`", "expose the service shell on `Db`", "drop `migrations_path` from `Database`", "split this effect's config rendering out", "the cleanup is wrong, it deletes the artifact". Authoring new effects is `relux:effect-write`; moving an effect between files or removing it are mechanical operations (grep + relocate / grep + delete callers) and have no skill of their own./effect-writerelux:effect-writeAuthor a new `effect` declaration -- `expect` set, deps, expose surface, shell body, and cleanup -- with discipline about identity (one effect per service, unique-resources rule), config decomposition (Config + Service when the service rejects ENV), and the wrapper-effect re-expose rule. Use when the user asks to write a new effect, add an effect for a service the suite does not yet manage, wrap an existing effect with seed data / migrations / post-init steps, or decompose a file-configured service into Config + Service. Fires on phrasings like "write an effect for X", "add a Postgres effect", "wrap Db with seeded data", "this service needs a config file -- how do I model it". Modifying an existing effect's body or surface is `relux:effect-edit`; moving an effect between modules or removing one are mechanical operations with no skill of their own. Authoring tests that use the effect is `relux:test-write` (which hard-switches here when a required service has no effect yet)./functionrelux:functionAdd, modify, remove, move, or extract `fn` / `pure fn` declarations. Use when the user asks to author a helper function, extract repeated inline code into a function, change a function's body or arity, promote a `fn` to `pure fn` (or demote), move a function between inline modules and `relux/lib/`, or delete a function. Fires on phrasings like "extract this into a helper", "make this a pure function", "move this to lib", "inline this single-caller helper", "add a default-argument version of `http_request`", "delete this function -- nothing uses it". The pure-vs-impure split decides what the function can do; the location decision (inline vs `relux/lib/`) decides who can import it. Marker placement on functions is the `relux:markers` skill's territory; this skill authors the declaration the marker attaches to./initrelux:initBootstrap a Relux test suite in a project that does not yet have one -- create `Relux.toml`, the `relux/{tests,lib,out}` layout, and a smoke test. Use when the user asks to start using Relux in a repo, scaffold a new suite, add Relux to an existing project, set up Relux from scratch, or initialize tests in a directory. Also fires when the agent is about to author a `.relux` file in a project where `Relux.toml` does not exist anywhere on the ancestor chain. Idempotent -- if a suite already exists at or above the current directory, hand off to `relux:configure` for tuning rather than re-scaffolding.Other plugins' skills for the same job