agentsclimarketplace

Tla smoke

Skill photoszzt/tlaplus-ai-tools/skills/tla-smoke

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".From its SKILL.md

Install
npx -y skills add photoszzt/tlaplus-ai-tools --skill tla-smoke

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, as published. Nobody here has run it

TLC Smoke Test

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.

Usage

/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.

What This Does

  1. Validates and normalizes the spec path from the argument
  2. Applies deterministic .cfg selection algorithm (see below)
  3. Calls mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_smoke to run random simulation
  4. Reports results (states explored, violations found)

Implementation

Step 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

  • Check path ends with .tla
  • Use the Read tool to verify the file exists on disk
  • If validation fails, print error and exit

Step 3: Parse Flags

Extract --seconds <N> from the argument:

  • Default: SECONDS=3
  • If --seconds <N> present: SECONDS=<N>
  • Validate <N> is a positive integer

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: Call MCP Tool

Invoke TLC smoke test:

mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_smoke
  --fileName "<SPEC_PATH>"
  --cfgFile "<FINAL_CFG>"
  --seconds <SECONDS>

Step 7: Report Results

Print summary:

Spec path: <SPEC_PATH>
CFG used: <FINAL_CFG>
Smoke duration: <SECONDS> seconds

<TLC output>

Smoke test complete

If violations found:

  • Print Violations detected. Run /tla-check for full trace.

If no violations:

  • Print No violations found in smoke test. Run /tla-check for exhaustive verification.

Example Output

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.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.