/relux:installfrom relux
Installs, updates, or upgrades the relux binary on the host. Activates when relux is missing or outdated, or when the user requests installation.
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.
Bring the relux binary to a usable, up-to-date state. This skill handles
first-time install, re-install, and upgrade through the same workflow. The
canonical install path is cargo install relux; pre-built tarballs and a
from-source build are documented branches for when cargo does not fit.
User phrasings:
Agent-task signals:
Relux.toml but command -v relux fails.relux --version reports a version older than the latest published release.relux check or relux run for the first time.Direct invocation (/relux:install). No clarification needed; the
workflow always runs against the local host. Proceed straight to
pre-flight checks.
relux --version -- captures the installed version, or confirms absence.command -v cargo && cargo --version -- determines whether the cargo
path is available.uname -sm -- platform string for selecting the right pre-built asset.echo "$SHELL" -- needed for the completion install path.gh release view --repo shizzard/relux --json tagName -q .tagName
- curl -sL https://crates.io/api/v1/crates/relux | jq -r .crate.max_versionCompare the installed version against the latest published version and pick a branch:
Pick the install method in this order. Stop at the first that fits.
Cargo (default). Universal; requires Rust 1.85 or newer.
rustc --version # confirm >= 1.85
cargo install relux
If rustc --version reports a version older than 1.85, ask the user
before upgrading the toolchain; rustup update stable rewrites their
default channel and may pull in clippy / rustfmt / target updates they
weren't expecting.
# Confirm with the user before running this.
rustup update stable
If cargo is absent, stop and instruct the user to install Rust via
rustup. Also surface the pre-built branch as the
zero-toolchain workaround so the user can choose without leaving the
conversation.
Pre-built tarball. No Rust toolchain needed. Linux x86_64 and macOS aarch64 only.
Releases page: https://github.com/shizzard/relux/releases/latest.
Pick the asset target triple by uname -sm:
uname -sm | Asset target triple |
|---|---|
Darwin arm64 | aarch64-apple-darwin |
Linux x86_64 | x86_64-unknown-linux-gnu |
Download, extract, place on PATH:
TAG="$(gh release view --repo shizzard/relux --json tagName -q .tagName)"
TARGET="aarch64-apple-darwin" # pick per the table above
ASSET="relux-${TAG}-${TARGET}.tar.gz"
gh release download "${TAG}" --repo shizzard/relux --pattern "${ASSET}"
tar -xzf "${ASSET}"
chmod +x relux
mv relux ~/.local/bin/ # or any PATH directory
From source. Use when developing on relux itself, or when neither cargo
nor a pre-built target fits. The vendored viewer bundle at
crates/relux-runtime/vendor/relux-viewer.js.gz is committed and embedded
at compile time, so a bare cargo build produces a fully functional binary.
git clone [email protected]:shizzard/relux.git
cd relux
cargo build --release
# Symlink (tracks future rebuilds) -- preferred for active development:
ln -s "$(pwd)/target/release/relux" ~/.local/bin/relux
# Or copy (one-shot snapshot, won't track rebuilds):
# cp target/release/relux ~/.local/bin/
Identify the original install path so the upgrade command matches:
which relux # ~/.cargo/bin/relux -> cargo
# ~/.local/bin/relux -> pre-built or source
readlink "$(which relux)" # if a symlink, source is a from-source build
Pick the upgrade command:
cargo install relux --force (without --force, cargo silently
no-ops when the binary already exists).TAG.(cd <checkout> && git pull && cargo build --release)
-- the symlink picks up the new binary automatically.cargo build --release from the
checkout and re-copy.Before triggering the upgrade, surface what changed.
# Single-release gap -- render release notes inline:
gh release view "${NEW_TAG}" --repo shizzard/relux
# Multi-release gap -- link the compare view and stop:
echo "https://github.com/shizzard/relux/compare/${OLD_TAG}...${NEW_TAG}"
Render inline only when the gap spans one or two releases; for larger gaps, hand the user the compare link and let them browse.
relux --version
The reported version must match what was just installed or upgraded. If the
command is not found, the install location is not on PATH; inspect the user's
shell rc and add the relevant bin directory.
Ask the user whether they want shell completions installed for relux. Do
not install them unprompted -- completions write to the user's shell config
or completion directories, which is a touch outside the install itself.
Skip the prompt on a no-op same-version verification.
On consent, install for the user's shell:
relux completions --install # bash, fish: autodetect
For zsh, an explicit path is required:
mkdir -p ~/.zsh/completions
relux completions --shell zsh --install --path ~/.zsh/completions
# Then ensure ~/.zshrc has:
# fpath=(~/.zsh/completions $fpath)
# autoload -U compinit && compinit
.relux editor plugin for
VS Code or IntelliJ. On consent, hand off to relux:editor-plugin. Do
not hand off unprompted; the user may already have it installed or may
not use a supported editor. Skip the prompt entirely on a no-op
same-version verification.Relux.toml exists on the current directory's ancestor chain,
ask the user whether they want to bootstrap a suite here. On consent,
hand off to relux:init. Skip the prompt if a suite already exists
(the user is upgrading inside a known project) or on a no-op
same-version verification.https://shizzard.github.io/relux/v<X.Y.Z>/relux --version succeeds in a fresh shell and prints the expected version.relux:editor-plugin follow-up
(and either declined or had the handoff fire on consent).Relux.toml exists on the cwd's ancestor chain, the user has
been offered the relux:init follow-up (and either declined or had
the handoff fire on consent).relux:editor-plugin -- offered after step 5 on a fresh install
or upgrade, gated on user consent (see step 6).relux:init -- offered in step 6 when the cwd has no Relux.toml
on its ancestor chain, gated on user consent.../../references/cli-reference.md -- the subcommands the binary now exposes.A fresh cargo install places the binary in ~/.cargo/bin/. If that
directory is not on the shell's PATH, relux --version fails immediately
after install.
Don't:
cargo install relux
relux --version # command not found
Do:
cargo install relux
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc
exec "$SHELL" -l
relux --version
--forcecargo install <crate> on a host that already has the binary is a no-op,
even when a newer version exists on crates.io.
Don't:
cargo install relux # no upgrade; installed version unchanged
Do:
cargo install relux --force # forces the upgrade
relux --version # verify the new version
bash and fish autodetect; zsh does not. Skipping --path is silently a
no-op under zsh.
Don't:
relux completions --install # silent no-op under zsh
Do:
mkdir -p ~/.zsh/completions
relux completions --shell zsh --install --path ~/.zsh/completions
When working on relux itself, a copied binary drifts from the checkout on
every rebuild. A symlink tracks target/release/relux for free.
Don't:
cp target/release/relux ~/.local/bin/ # next rebuild is invisible
Do:
ln -s "$(pwd)/target/release/relux" ~/.local/bin/relux
What SKILL.md sets; muted values are Claude Code's defaults
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