/tlaplus:tla-checkfrom tlaplus
This skill runs exhaustive model checking to verify all reachable states of a TLA+ specification using TLC. It should be used when the user asks to "check my spec", "run TLC", "verify my TLA+ spec", "find invariant violations", "exhaustive model checking", "check for bugs in my spec", "model check", "exhaustive check", "verify all states", "run model checker", "verify invariants", "check properties", "check temporal properties", "check liveness", "full check", "check all states", "check safety", or "verify properties".
Ships in tlaplus. 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.
Run exhaustive model checking to verify all reachable states of your TLA+ specification.
IMPORTANT: Always use the MCP tools listed above. Never fall back to running Java or TLC commands via Bash.
/tla-check test-specs/Counter.tla
/tla-check test-specs/Counter.tla test-specs/Counter.cfg
/tla-check test-specs/Counter.tla --workers 4 --heap 2G
/tla-check test-specs/Counter.tla test-specs/Counter.cfg --workers 4
All forms work identically. See skills/shared/path-normalization.md for path normalization rules.
.cfg selection algorithm (see below)mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_check to run exhaustive model checkingStep 1: Normalize Spec Path
Take the spec file path provided as the argument to this skill. If it starts with @, strip the leading @.
Print Spec path: <spec_path>
Step 2: Validate File
.tlaStep 3: Parse Flags
Extract flags from the argument:
--workers <N>: Number of worker threads (default: omit, let TLC decide)--heap <SIZE>: JVM heap size, e.g., 2G, 1024m (default: omit)TLC’s -depth applies to simulation, so do not use it to bound exhaustive checking.
For sample traces of a chosen length, use /tla-explore --length <N>.
Step 4: Determine CFG Argument
Parse the second token from the argument (split by space, take second). If it ends with .cfg, treat it as the CFG_ARG.
Step 5: Apply CFG Selection Algorithm
Apply the CFG Selection Algorithm documented in skills/shared/cfg-selection-algorithm.md.
Step 6: Build MCP Tool Arguments
Construct extraOpts array:
WORKERS is set: add ["-workers", "<WORKERS>"]Construct extraJavaOpts array:
HEAP is set: add ["-Xmx<HEAP>"]Step 7: Call MCP Tool
Invoke TLC model checker:
mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_check
--fileName "<SPEC_PATH>"
--cfgFile "<FINAL_CFG>"
--extraOpts <EXTRA_OPTS>
--extraJavaOpts <EXTRA_JAVA_OPTS>
Step 8: Report Results
Print summary:
Spec path: <SPEC_PATH>
CFG used: <FINAL_CFG>
TLC options:
Workers: <WORKERS> (or TLC default)
Heap: <HEAP> (or JVM default)
<TLC output>
First inspect the MCP isError flag, exit code, and TLC output. Missing files,
parser/config errors, timeouts, cancellation, and resource failures are incomplete
checks; report the cause without claiming verification. An invariant/property
violation or deadlock is a model result to explain from its counterexample.
If violations found:
Violations detected. See counterexample above.Use /tla-debug-violations to work through the counterexample and isolate the failing action.Only if exit code is zero, TLC reports completed exhaustive checking, and there are no violations or fingerprint-collision warnings:
Model checking complete. No violations found.All reachable states in this model configuration checked against its configured invariants and properties.If state space too large:
State space explosion detected. Consider: 1. Add state constraints to limit exploration 2. Reduce constant values 3. Use symmetry sets 4. Increase --heap sizeSpec path: test-specs/Counter.tla
Phase 1: Spec.cfg exists
Phase 2: Using default Spec.cfg
CFG used: test-specs/Counter.cfg
TLC options:
Workers: 4
Heap: 2G
TLC2 Version 2.18 of 10 January 2024
Running breadth-first search with 4 workers
Explored 1,234,567 states in 45 seconds
Diameter: 12 states
Model checking complete. No violations found.
All reachable states in this model configuration checked against its configured invariants and properties.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub photoszzt/tlaplus-ai-tools --plugin tlaplus12 skills in this plugin
/tla-create-animationsThis skill guides the creation of animations that visualize TLA+ specifications during model checking or trace exploration. It should be used when the user asks to "create animation", "animate my spec", "visualize state transitions", "show me what's happening", "TLA+ animation", "trace visualization", "see state changes", "render animation in terminal", "ASCII animation", "SVG animation", or "show animation in browser"./tla-debug-violationsThis skill provides a systematic workflow to isolate and diagnose TLA+ invariant or property violations. It should be used when the user mentions "invariant violated", "TLC found a bug", "counterexample", "property failed", "violation trace", "debugging TLA+ violations", "error trace", "why did TLC fail", "fix my spec", "TLC error", "trace analysis", "deadlock found", or "lasso-shaped counterexample"./tla-exploreThis skill generates example behavior traces from a TLA+ specification using TLC simulation. This skill should be used when the user asks to "explore states", "generate trace", "show me a behavior", "example execution", "trace exploration", "what happens when", "simulate", "run a simulation", "sample behavior", "show example states", "walk through the spec", "run an example", or wants to see how a spec executes step by step./tla-getting-startedThis skill provides introductory guidance for learning TLA+ and writing first specifications. It should be used when the user asks to "learn TLA+", "what is TLA+", "TLA+ tutorial", "get started with TLA+", "first TLA+ spec", "TLA+ basics", "new to TLA+", "TLA+ introduction", "how to write TLA+", "TLA+ help", "TLA+ example", "write a spec", "TLA+ spec template", "formal specification", "create a spec", "model a system", or the user mentions wanting to understand TLA+ fundamentals./tla-model-checkingThis skill orchestrates the full model checking workflow: parse, configure, smoke test, and exhaustive check. It should be used when the user asks to "model check", "run TLC", "verify specification", "check invariants", "run model checker", "check my spec", "validate spec", "full verification workflow", "end-to-end TLC", "check properties", "check liveness", or mentions model checking workflow and TLC configuration./tla-parseThis skill parses and validates TLA+ specification syntax and semantics using SANY. It should be used when the user asks to "check syntax", "validate my spec", "is my spec valid", "parse errors", "syntax errors", "SANY errors", "SANY", "parse my TLA+ file", "check my TLA+ syntax", "does my spec compile", "find errors in my spec", "is my TLA+ correct", "lint my spec", "check for errors", "why won't my spec parse", or "check my spec for errors".