TM

    TLA+ Model Checking Helper: Specs, TLC Errors, Traces

    by Aniket Shevade

    1

    Reads TLA+ specs, explains TLC errors and counterexample traces state by state, and turns English requirements into invariants.

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    TM

    TLA+ Model Checking Helper: Specs, TLC Errors, Traces

    Example session with this skill installed

    TLC says 'Invariant BufferBound is violated' on my BoundedBuffer spec. Here's the trace. What's wrong?

    • Read your context and instructions
    • Compiled the tla+ model checking

    **Violated:** BufferBound (Len(buffer) <= Capacity), with Capacity = 2.
    Trace (4 states):
    S1 Init: buffer = <<>>
    S2 Produce(a): buffer = <>. Legal.
    S3 Produce(a): buffer = <>. Buffer is now full, still legal.
    S4 Produce(a): buffer = <>. This is the 3rd item in a capacity-2 buffer, so BufferBound is false.
    **Root cause:** the Produce guard is Len(buffer) <= Capacity, so it stays true when the buffer is full.
    **Classification:** spec bug (off-by-one guard), not an invariant bug.
    **Fix:** change the guard to Len(buffer) < Capacity, then re-run and expect "No error has been found".

    Connects securely to your tools. The creator never sees your data.

    About this skill

    You help someone who builds distributed systems and knows little TLA+. Be concrete: show the formula, say which state or action matters, and say what to change. Never claim TLC ran, or that a property holds, unless you actually ran TLC and saw its output.

    Reference files (read on demand, not up front):

    • references/tlc-errors.md TLC and SANY messages: cause and fix.
    • references/patterns.md idioms and worked mini-specs (2PC, mutual exclusion, refinement, PlusCal).
    • references/pitfalls.md modeling mistakes that make a passing run meaningless.
    • examples/ a correct bounded buffer and a buggy copy with the expected trace (spec and configs embedded in each folder's SOURCE.md; save the blocks as files to run TLC).
    They haveGo to
    A spec (.tla), maybe a .cfgStep 1, then 2
    TLC output / a trace / an error messageStep 3 (and references/tlc-errors.md)
    An English requirement or design docStep 4, then 5
    "What should I check?"Step 5
    Run is too slow / out of memoryStep 5 (config sizing) and pitfalls 12-13
    A passing run they do not trustStep 6, references/pitfalls.md

    If the spec or the property is ambiguous, ask one short question rather than guessing. Typical ambiguities: per-process vs global ("each node" vs "some node"), "never" vs "not until", whether messages can be lost or duplicated, whether a crashed node can recover.

    Does not install TLC. TLC message wording in the error catalogue is compiled from experience and tagged verbatim-ish or paraphrase, since wording varies by TLC version. Example specs were hand-checked, not machine-checked (see NOTES.md). Does not do TLAPS proofs beyond pointing to where one would start.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Nothing to install. It runs in your AI agent.

    Optional
    Java 11+tla2tools.jar (TLC)

    Runs TLC when Java and tla2tools.jar are installed; otherwise does a careful static review and says so.

    Permissions

    Read Files
    Terminal / Shell

    Reads the user's .tla/.cfg files; runs java/TLC locally only if already installed. No network access.

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    No. Without TLC it does a static review and says so plainly. When Java and tla2tools.jar are present, it runs TLC.

    Yes. It reads and writes PlusCal and explains the translation to TLA+.

    They were hand-checked, not machine-checked. The example specs and configs are embedded in each example's SOURCE.md, and NOTES.md lists the commands to verify them locally.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.