/formal-verification:setup [check|apply] [install-model-checker|install-renderer] [--unattended]from formal-verification
Checks and installs the formal-verification toolchain: TLC model checker, Java, script runtime, and chart renderer. Reports missing tools with remedies; installs only on explicit user approval.
Ships in formal-verification. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments. [check|apply] [install-model-checker|install-renderer] [--unattended].
e.g. /formal-verification:setup, /formal-verification:setup apply install-model-checker
The plugin's settings have two owners, and this skill writes neither:
| Setting | Owner |
|---|---|
| Paths to the model checker jar, Java and the script runtime | Plugin options, set through /plugin configure. For headless use, the routes and caveats are in docs/contracts/plugin-reconfiguration/README.md of this marketplace's repository. |
| Version pins and default bounds | The consumer's docs/conventions/formal-verification.yaml, keys per ${CLAUDE_PLUGIN_ROOT}/schemas/formal-verification.schema.json; an absent key takes ${CLAUDE_PLUGIN_ROOT}/defaults.json. |
What this skill may install, and who installs the rest:
| Tool | Who installs it |
|---|---|
| Node, Bun or Deno, and Java | The user. The install hints come from check. |
| The model checker jar | apply install-model-checker, typed by the user. |
| The renderer, needed only for an image of a chart | apply install-renderer, typed by the user. |
Typing an apply install-* subaction is the interactive yes: nothing installs without it. With
--unattended, or in a run with no person present (a loop lane, CI, a background session), install
nothing: run check, and when it fails, report blocked: toolchain missing with its FAIL rows and
stop.
check (read-only, default)${CLAUDE_PLUGIN_ROOT}/scripts/toolchain.mjs owns the toolchain probes and
${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.mjs the declared prerequisites. Run both:
node "${CLAUDE_PLUGIN_ROOT}/scripts/toolchain.mjs" check --data-dir "${CLAUDE_PLUGIN_DATA}" --project-dir "$PWD" --jar '${user_config.model_checker_jar}' --java '${user_config.java}' --runtime '${user_config.script_runtime}'
node "${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.mjs" check "${CLAUDE_PLUGIN_ROOT}" --data-dir "${CLAUDE_PLUGIN_DATA}"
Keep the quoted option tokens exactly as shown: the script treats an unset option as unset. Each
prints one row per tool and a summary, and exits 1 when a required tool is missing. Report the rows
as printed, each FAIL with its remedy. The declared tla2tools row cannot see the plugin data
directory or the jar option, so it warns even with the jar present: the first command's
model-checker row decides. Then print the resolved pins and bounds:
node "${CLAUDE_PLUGIN_ROOT}/scripts/settings.mjs" --project-dir "$PWD"
A line it prints on stderr names a convention key that failed the schema; its shipped value stands. Report it.
apply install-model-checkerBefore downloading, tell the user the version (the model_checker.version setting), and the URL
and pinned SHA-256 that ${CLAUDE_PLUGIN_ROOT}/releases.json gives for it, and the destination
folder. URLs and checksums come only from that shipped file: the script refuses a repository
convention file that sets one, and a version the file does not pin. Then:
node "${CLAUDE_PLUGIN_ROOT}/scripts/toolchain.mjs" install model-checker --data-dir "${CLAUDE_PLUGIN_DATA}" --project-dir "$PWD"
It prints the jar's path and exits 0, skipping a jar already present and matching. On a failed
download or a checksum mismatch it exits 1 with the reason and keeps no file. Report the path or the
error, then run check and report its rows as the observed state.
apply install-rendererThe same, with the renderer keys and install renderer:
node "${CLAUDE_PLUGIN_ROOT}/scripts/toolchain.mjs" install renderer --data-dir "${CLAUDE_PLUGIN_DATA}" --project-dir "$PWD"
The download must be https, under the script's size cap and timeout. The tarball is kept only when
its sha512 integrity string matches the pin in releases.json; it is unpacked into the
plugin data directory, and no package script runs.
Bare apply has nothing to configure: say so and name the two install subactions.
/formal-verification:chart <SPEC.tla>
check names the one in use.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/chartChart: TLA+ with TLCModel-check a TLA+ spec with TLC and draw it as a Mermaid statechart of how a system moves between states, such as a product flow, a protocol or a service; the report gives the shortest path to each state that breaks a rule, for a person to judge. Use when a formal-area skill's Run names it, or to show a bug as a path through states. TLA+ with TLC only./specifyWrite, check and refresh formal-area skills: bare proposes what to prove; create PROMISE writes the model and skill, proving a seeded break is caught; check gates the contract; refresh realigns checks with changed code. Use when: 'what should we formally verify', 'model-check this race', 'prove this invariant', 'check our formal skills', 'is the model still true', or a race or state machine needs more than tests.npx claudepluginhub melodic-software/claude-code-plugins --plugin formal-verificationOther plugins' skills for the same job