/tlaplus:tla-model-checkingfrom tlaplus
This 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.
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.
Read when SKILL.md points to them.
Orchestrate the full model checking workflow: parse, configure, smoke test, and exhaustive check.
IMPORTANT: Always use the MCP tools listed above. Never fall back to running Java or TLC commands via Bash.
Reference: For detailed educational content on TLC configuration syntax, performance tuning, debugging, and best practices, read skills/tla-model-checking/reference.md on demand.
/tla-model-checking @Counter.tla
/tla-model-checking specs/MySpec.tla
Both forms work identically. See skills/shared/path-normalization.md for path normalization rules.
Step 1: Validate Argument
If no spec file path argument is provided, print Error: No file path provided. Usage: /tla-model-checking <path.tla> and stop.
Strip any leading @ from the argument to get SPEC_PATH. Print Spec: <SPEC_PATH>.
Step 2: Parse with SANY
Read the file first to confirm it exists and ends with .tla.
Call mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_parse with fileName set to SPEC_PATH.
isError is true or parsing fails: print the errors to the user and stop. Do not proceed.Parse: OK and continue.Step 3: Apply CFG Selection Algorithm
Apply the CFG Selection Algorithm documented in skills/shared/cfg-selection-algorithm.md.
Store the final cfg path in FINAL_CFG.
Step 4: Smoke Test
Call mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_smoke with:
fileName set to SPEC_PATHcfgFile set to FINAL_CFGUse the tool's default three-second simulation; do not pass a seconds argument.
Smoke test: Passed and continue.Step 5: Full Model Check
Call mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_tlc_check with:
fileName set to SPEC_PATHcfgFile set to FINAL_CFGInspect isError, exit code, and completion output. Report total states explored,
distinct states, diameter, and violations with full counterexamples. Mark success
only after completed exhaustive checking with exit code zero and no violations
or fingerprint-collision warnings. Report process/config/parser failures, timeout,
and cancellation as incomplete checks, even if no violation text is present.
If TLC reports OutOfMemoryError or runs excessively long, suggest reducing constant values, adding state constraints, or using /tla-smoke for quick feedback.
Step 6: Report Results
Summarize the full workflow:
Model Checking Summary for <SPEC_PATH>
Parse: OK
Config: <CFG_PATH>
Smoke test: <passed/violations found/incomplete>
Full check: <passed/violations found/incomplete>
States explored: <N>
Distinct states: <N>
If violations were found, suggest: "Use /tla-debug-violations to understand the counterexample."
If all passed, suggest: "Consider increasing constant values or adding more properties to strengthen 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".