/tlaplus:tla-setupfrom tlaplus
This skill verifies and configures TLA+ tools installation (Java, tla2tools.jar, CommunityModules, MCP server). It should be used when the user asks to "setup TLA+", "install TLA+", "TLA+ not working", "tools missing", "java not found", "verify TLA+ installation", "check TLA+ tools", "TLA+ prerequisites", "configure TLA+", "MCP server not connecting", "fix TLA+", "SANY not working", "reinstall TLA+", "environment check", or "check prerequisites".
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.
Interactive guide to verify and setup TLA+ tools (Java, tla2tools.jar, CommunityModules).
IMPORTANT: Always use the MCP tools listed above for TLA+ operations. Only use Bash for system checks like java -version. Never fall back to running Java or TLC commands via Bash for parsing or model checking.
/tla-setup
Note: This skill does not require a spec file argument. It validates the TLA+ tools installation.
IMPORTANT: This skill does NOT mutate repository state unless explicitly instructed by the user within the session.
Step 1: Welcome Message
Print:
═══════════════════════════════════════════════════════════
TLA+ TOOLS SETUP & VERIFICATION
═══════════════════════════════════════════════════════════
This guide will verify your TLA+ tools installation.
Checking:
1. Java (JDK 11+)
2. TLA+ Tools (tla2tools.jar, CommunityModules-deps.jar)
3. MCP Server Connection
4. Basic Functionality
─────────────────────────────────────────────────────────
Step 2: Check Java
Run via Bash:
java -version
Parse output to extract version number.
If Java not found:
Java not found
Java 11 or higher is required to run TLA+ tools.
Installation instructions:
macOS: brew install openjdk@17
Linux: sudo apt-get install openjdk-17-jdk
Windows: Download from https://adoptium.net/
After installing, verify with: java -version
If Java version < 11:
Java version too old (found: <version>, required: 11+)
Please upgrade Java:
macOS: brew install openjdk@17
Linux: sudo apt-get install openjdk-17-jdk
Windows: Download from https://adoptium.net/
If Java version >= 11:
Java found: <version>
Step 3: Check TLA+ Tools
Check for tools in expected locations using Read tool:
tools/tla2tools.jar (relative to repository root)tools/CommunityModules-deps.jar (relative to repository root)If tools not found:
TLA+ tools not found
Expected location: tools/tla2tools.jar (relative to repository root)
To download tools, run:
npm run setup
Or manually download:
1. Visit: https://github.com/tlaplus/tlaplus/releases
2. Download tla2tools.jar
3. Place in: tools/tla2tools.jar (relative to repository root)
For CommunityModules:
1. Visit: https://github.com/tlaplus/CommunityModules/releases
2. Download CommunityModules-deps.jar
3. Place in: tools/CommunityModules-deps.jar (relative to repository root)
If tools found:
TLA+ tools found
- tla2tools.jar: <size> bytes
- CommunityModules-deps.jar: <size> bytes
Step 4: Check MCP Server Connection
Try calling mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_modules to list available modules.
If MCP call fails:
MCP server connection failed
The MCP server may not be running or configured correctly.
Troubleshooting:
1. Verify plugin is loaded: /plugin list
2. Check MCP server logs
3. Rebuild: npm run build
4. Restart Claude Code
If MCP call succeeds:
MCP server connected
Available TLA+ modules: <count>
Step 5: Run Verification Tests
Test basic functionality by parsing a simple spec.
Create temporary test spec in memory:
---- MODULE SetupTest ----
EXTENDS Naturals
VARIABLE x
Init == x = 0
Next == x' = x + 1
====
Write to temporary file: /tmp/tlaplus-setup-test.tla
Call mcp__plugin_tlaplus_tlaplus__tlaplus_mcp_sany_parse with the test file.
Note: If /tmp is not writable, use another temporary location such as the current working directory. Clean up the test file after verification.
If parse succeeds:
SANY parser working
If parse fails:
SANY parser test failed
This may indicate a problem with the TLA+ tools or Java setup.
Check the error message above for details.
Clean up temporary file.
Step 6: Summary Report
Print final summary:
─────────────────────────────────────────────────────────
SETUP VERIFICATION SUMMARY
─────────────────────────────────────────────────────────
<if all checks passed>
All checks passed!
Your TLA+ tools are ready to use.
Next steps:
1. Create a TLA+ specification (.tla file)
2. Run: /tla-parse <spec.tla>
3. Run: /tla-symbols <spec.tla>
4. Run: /tla-smoke <spec.tla>
5. Run: /tla-check <spec.tla>
For learning TLA+, ask: "teach me TLA+"
<else>
Some checks failed
Please address the issues above before using TLA+ tools.
Common issues:
- Java not installed or too old -> Install Java 11+
- TLA+ tools missing -> Run: npm run setup
- MCP server not running -> Rebuild and restart
Need help? Check https://github.com/tlaplus/tlaplus or ask for assistance.
<endif>
═══════════════════════════════════════════════════════════
Step 7: Offer Interactive Setup
If any checks failed, ask user:
Would you like me to help fix these issues? (yes/no)
If user says yes:
npm run setup (ask permission first)IMPORTANT: Only mutate repository state (e.g., run npm run setup) if user explicitly agrees.
═══════════════════════════════════════════════════════════
TLA+ TOOLS SETUP & VERIFICATION
═══════════════════════════════════════════════════════════
This guide will verify your TLA+ tools installation.
Checking:
1. Java (JDK 11+)
2. TLA+ Tools (tla2tools.jar, CommunityModules-deps.jar)
3. MCP Server Connection
4. Basic Functionality
─────────────────────────────────────────────────────────
Java found: openjdk 17.0.2
TLA+ tools found
- tla2tools.jar: 15234567 bytes
- CommunityModules-deps.jar: 8765432 bytes
MCP server connected
Available TLA+ modules: 47
SANY parser working
─────────────────────────────────────────────────────────
SETUP VERIFICATION SUMMARY
─────────────────────────────────────────────────────────
All checks passed!
Your TLA+ tools are ready to use.
Next steps:
1. Create a TLA+ specification (.tla file)
2. Run: /tla-parse <spec.tla>
3. Run: /tla-symbols <spec.tla>
4. Run: /tla-smoke <spec.tla>
5. Run: /tla-check <spec.tla>
For learning TLA+, ask: "teach me TLA+"
═══════════════════════════════════════════════════════════
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.