/tlaplus:tla-symbolsfrom tlaplus
This skill extracts symbols (constants, variables, operators) from a TLA+ specification and generates a TLC configuration file. It should be used when the user asks to "generate config", "create cfg file", "no config file", "what's in my spec", "extract symbols", "generate .cfg", "list symbols", "show constants", "show variables", "set up TLC config", "prepare for model checking", "show operators", "analyze my spec", "what constants does my spec have", "what variables are defined", "what operators are in my spec", "include extended modules", "symbols from imported modules", "help me create a config", "set up model checking config", or needs a .cfg file for model checking.
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.
Extract symbols (constants, variables, operators) from a TLA+ specification and generate a TLC configuration file.
IMPORTANT: Always use the MCP tools listed above. Never fall back to running Java or TLC commands via Bash.
Preferred (always works):
/tla-symbols test-specs/Counter.tla
/tla-symbols test-specs/Counter.tla --extended
Both forms work identically. See skills/shared/path-normalization.md for path normalization rules.
mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_parse to check for syntax errorsmcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_symbol to extract symbols.cfg file with best-guess configurationStep 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 Spec
Call mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_parse with fileName=<spec_path>
If parse errors exist, print them and exit.
Step 4: Extract Symbols
Determine includeExtendedModules:
--extended, set to truefalseCall mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_symbol with:
fileName=<spec_path>includeExtendedModules=<flag>If the symbol extraction fails or returns an error, print the error message and exit. Do not proceed to config generation with incomplete data.
Step 5: Generate Config File
From the symbol extraction result (SymbolExtractionResult schema):
Determine output filename:
Counter.tla -> Counter)<SpecName>.cfg does NOT exist: write to <SpecName>.cfg<SpecName>.generated.cfgGenerate config content following this template:
\* TLC Configuration for <SpecName>
\* Generated by /tla-symbols
\*
\* To run model checking:
\* /tla-check <spec> <this-cfg>
<BEHAVIOR_SPEC>
<INVARIANTS>
<PROPERTIES>
<CONSTANTS_STUBS>
Where:
BEHAVIOR_SPEC (use bestGuess, never invent):
bestGuess.spec exists: SPECIFICATION <bestGuess.spec.name>bestGuess.init AND bestGuess.next exist:
INIT <bestGuess.init.name>
NEXT <bestGuess.next.name>
\* INIT <TODO>
\* NEXT <TODO>
\* SPECIFICATION <TODO>
\* Run /tla-parse and inspect operators; update cfg accordingly.
INVARIANTS (use bestGuess.invariants, never invent):
bestGuess.invariants: INVARIANT <inv.name>PROPERTIES (use bestGuess.properties, never invent):
bestGuess.properties: PROPERTY <prop.name>CONSTANTS_STUBS (use candidates.constants, never invent values):
candidates.constants is non-empty, emit commented stubs:
\* Constants detected by SANY; TLC requires concrete assignments before model checking.
\* Example: CONSTANT Max = 10
\*
\* CONSTANT <ConstName> = <TODO>
(Repeat last line once per constant)Step 6: Write File
Use Write tool to create the config file.
Print CFG written: <filename>
Step 7: Advise User
Print:
Next steps:
1. Edit <cfg-file> to assign constant values
2. Run: /tla-smoke <spec> <cfg-file>
3. Fix any TLC errors
4. Run: /tla-check <spec> <cfg-file>
Spec path: test-specs/Counter.tla
Parse successful
Symbols extracted
Symbols found:
Constants: MaxValue
Variables: count
Init: Init
Next: Next
Spec: Spec
Invariants: TypeInvariant, BoundInvariant
CFG written: test-specs/Counter.cfg
Next steps:
1. Edit test-specs/Counter.cfg to assign constant values
2. Run: /tla-smoke test-specs/Counter.tla test-specs/Counter.cfg
3. Fix any TLC errors
4. Run: /tla-check test-specs/Counter.tla test-specs/Counter.cfg
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.