What problem does it solve? Concurrent, distributed, and agentic systems fail in subtle interleavings that testing rarely catches. This Skill turns requirements, pseudocode, or source code into abstract TLA+/PlusCal models so you can verify safety invariants and liveness properties before writing production code. ## Core Features & Use Cases - Formal Modeling: Builds state-machine specifications with Init, named sub-actions, Next, TypeOK, safety invariants, and fairness constraints in TLA+ or PlusCal. - Verification Workflow: Runs TLC for exhaustive finite-state checking and simulation, escalates to Apalache for symbolic bounded checking, and uses TLAPS for proofs beyond finite instances. - Counterexample Analysis: Interprets TLC traces as design bugs, missing assumptions, or over-strong properties, and applies minimal fixes. - State-Space Explosion Control: Shrinks constants, replaces sequences with sets, adds symmetry, and splits oversized actions with program counters. - Use Case: Model a multi-agent coding workflow with a planner, executor, human approval gate, and fallible tool calls, then prove no file is committed without validation before implementing it. ## Quick Start Ask the assistant to model your concurrent or agentic workflow as a small TLA+ or PlusCal spec with bounded constants and check its safety invariants with TLC.