/tlaplus:tla-smokefrom tlaplus
This skill runs a quick 3-second random simulation to catch obvious bugs in a TLA+ specification. It should be used when the user asks for a "quick test", "fast check", "test my spec", "try out my spec", "smoke test", "simulate my spec", "random simulation", "quick check", "sanity check", "run simulation", "try my spec", "does my spec work", or "quick simulation".
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 a quick 3-second random simulation to catch obvious bugs in a TLA+ specification.
IMPORTANT: Always use the MCP tools listed above. Never fall back to running Java or TLC commands via Bash.
/tla-smoke test-specs/Counter.tla
/tla-smoke test-specs/Counter.tla test-specs/Counter.cfg
/tla-smoke test-specs/Counter.tla --seconds 10
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_smoke to run random simulationStep 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 --seconds <N> from the argument:
SECONDS=3--seconds <N> present: SECONDS=<N><N> is a positive integerStep 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: Call MCP Tool
Set TIMEOUT_MS = max(120000, (SECONDS + 30) * 1000) to allow startup time
and avoid cutting off a longer requested simulation. The tool has no seconds
argument; its default three-second stop time is overridden by extraJavaOpts.
Invoke TLC smoke test:
mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_smoke
--fileName "<SPEC_PATH>"
--cfgFile "<FINAL_CFG>"
--extraJavaOpts ["-Dtlc2.TLC.stopAfter=<SECONDS>"]
--timeoutMs <TIMEOUT_MS>
Step 7: Report Results
First inspect isError, exit code, and output. Report parser/config failures,
timeouts, cancellation, and resource failures as incomplete simulations. Only
report no violations when the simulation finishes successfully with exit code zero.
Print summary:
Spec path: <SPEC_PATH>
CFG used: <FINAL_CFG>
Smoke duration: <SECONDS> seconds
<TLC output>
Smoke test complete
If violations found:
Violations detected. Run /tla-check for full trace.If the simulation completed successfully with no violations:
No violations found in smoke test. Run /tla-check for exhaustive verification.Spec path: test-specs/Counter.tla
Phase 1: Spec.cfg exists
Phase 2: Using default Spec.cfg
CFG used: test-specs/Counter.cfg
Smoke duration: 3 seconds (default 3s unless overridden)
TLC2 Version 2.18 of 10 January 2024
Running in simulation mode with seed 1234567890
Explored 1523 states in 3 seconds
No violations found in smoke test. Run /tla-check for exhaustive verification.
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-checkThis 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"./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.