/relux:initfrom relux
Scaffolds a Relux test suite in a project without one, creating Relux.toml, directory layout, and a smoke test. Idempotent; hands off to relux:configure if a suite already exists.
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.
Scaffold the manifest, directory layout, and an initial smoke test in a
project that does not yet have a Relux suite. The CLI does the file work
(relux init, relux new --test); this skill is the discipline around
when to invoke them, where the suite lives, and what the first
authoring move should be.
User phrasings:
Agent-task signals:
.relux file but Relux.toml does
not exist anywhere on the ancestor chain of the current working
directory.relux check returns a "no manifest found" error and the project has
no Relux history.Out of scope: if Relux.toml already exists, this skill does
nothing -- adjusting shell, timeouts, jobs, or flaky retries is the
relux:configure skill's territory. If the user wants a new module
inside an existing suite, that is the relux:test-write /
relux:effect-write / relux:function skills' territory; organizing
the relux/lib/ directory is a future lib-organize leaf (not yet
drafted).
Direct invocation (/relux:init). No clarification needed;
the workflow detects whether a suite already exists by walking upward
from the current directory. If one exists, the skill exits with a
pointer to relux:configure. If not, the current directory becomes
the suite root.
relux --version -- confirms the binary is on PATH. If not, hand
off to the relux:install skill before continuing; the workflow
below assumes a working relux binary.
pwd -- the suite root will live here. Confirm the path matches
the user's intent (project root, not a subdirectory).
Walk the ancestor chain for an existing Relux.toml:
```bash
D="$PWD"
while [ "$D" != "/" ]; do
[ -f "$D/Relux.toml" ] && { echo "found at $D"; break; }
D="$(dirname "$D")"
done
```
If found, **stop**: the suite is already initialized. Surface the
path to the user and hand off to `relux:configure`. Do not
re-scaffold.
Check the cwd for a relux/ directory that might predate the
manifest -- a partial scaffold from a prior aborted run. If
present, surface to the user before overwriting.
relux init
This creates:
Relux.toml with every default commented out (an empty manifest is
valid).relux/tests/ and relux/lib/ (empty).relux/.gitignore containing out/ so per-run artifacts are not
committed.The default manifest is empty on purpose -- every field has a default
documented in ../../references/project-layout.md. Do not edit Relux.toml
during init; tuning belongs to relux:configure.
relux new --test smoke
This writes relux/tests/smoke.relux with a single test that runs
echo hello-relux and matches the output. The point of the smoke test
is twofold: it gives relux check something to validate, and it gives
the user a known-passing baseline to point new tests at.
If the user has a specific first test in mind (an entry point for the
real authoring work), use that name instead of smoke. The template is
identical regardless.
relux check
Confirms the manifest parses, the test file lexes/parses, and the
resolver is happy. A failure here points at a malformed default
template, a stale relux binary, or a stray Relux.toml in a
subdirectory (the layout pitfall in ../../references/project-layout.md).
Ask the user whether they want to run the smoke test now. On consent:
relux run
The first run produces relux/out/<run-id>/ with per-test artifacts
(events.json, event.html, index.html). Surface the path to
index.html so the user can open the run summary.
.envA committed suite-root .env is how a Relux suite becomes reproducible
(see ../../references/environment.md). Offer to seed one from the values
the project already depends on -- do not write it silently.
.env / .env.example beside the project root,env: blocks in docker-compose.yml / compose.yaml,env: blocks in CI workflow files (.github/workflows/*.yml),${VAR} the scaffolded smoke test references..env at the suite root: the discovered keys, one
per line, with values copied from .env.example where present and left
blank otherwise. Show it to the user.relux/../.env (beside Relux.toml) only on consent. Frame it as the
reproducibility mechanism: committed here, every developer and CI
machine sees the same environment without exporting by hand..gitignorerelux init writes relux/.gitignore to exclude out/. If the
project has a root .gitignore, append relux/out/ to it as well so
the exclusion survives git clean -fd from the project root and
matches conventions for repos that consume sub-.gitignore files
differently.
# If a root .gitignore exists and does not already mention relux/out/:
grep -qE '^relux/out/?$' .gitignore || echo 'relux/out/' >> .gitignore
relux:editor-plugin skill if the user has not yet
installed .relux syntax support. Do not invoke unprompted.Close by naming the four subcommands the user will reach for daily,
in one sentence each. Flags and full shapes live in
../../references/cli-reference.md; don't restate them.
relux new -- scaffold a new test, effect, or library module.relux check -- parse and resolve every .relux file without
spawning shells; the fast feedback loop while authoring.relux run -- execute tests, writing relux/out/<run-id>/
with index.html plus per-test events.json / event.html.relux history -- aggregate analysis across past runs
(flakiness, first-fail bisection, duration trends). Mention it
now so the user knows where to go later; useless on a fresh
suite.Relux.toml exists at the cwd (now the suite root).relux/tests/ and relux/lib/ exist.relux/.gitignore excludes out/; the project-root .gitignore
(if any) excludes relux/out/.relux check passes..env seeded from the project's
existing env sources (and either declined or had one written).relux new /
relux check / relux run / relux history.relux:install -- pre-flight handoff when relux --version fails.relux:editor-plugin -- offered after step 5 on consent.relux:configure -- handoff when Relux.toml already exists at or
above the cwd, or after init if the user wants to tune shell /
timeouts / jobs.relux:effect-write -- natural next step once the smoke test
passes. A real test virtually always starts by modelling the SUT
(or its dependencies) as an effect, and relux:test-write would
hard-switch back here anyway if no effect exists yet; entering
via relux:effect-write skips the round trip.../../references/project-layout.md -- Relux.toml fields, directory
convention, file discovery rules, layout pitfalls.../../references/cli-reference.md -- relux init, relux new,
relux check, relux run argument shapes.../../references/environment.md -- .env discovery, layering,
precedence, and why a committed .env makes the suite reproducible.The nested-manifest rule (a Relux.toml inside another suite
becomes a sub-project boundary that breaks outer-suite discovery)
lives in ../../references/project-layout.md with the canonical
layout sketch. The pre-flight ancestor walk is the discipline
that keeps relux init from creating one; do not skip it.
Relux.toml during initThe default manifest is intentionally empty (every field has a
default). Editing it during init couples scaffolding to tuning and
makes the first commit harder to review. Leave defaults; let
relux:configure own the tuning step when the user has a concrete
reason to deviate (custom shell, longer timeouts, parallel jobs).
relux check passesIf the smoke test fails to check after scaffold, something is wrong
with the template, the binary, or the layout. Authoring a real test on
top of an unverified scaffold buries the original fault under new
material. Get relux check clean against the smoke test before moving
on.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job