Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sammcj/agentic-coding --skill tla-plusgit clone --depth 1 https://github.com/sammcj/agentic-codingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sammcj/agentic-coding/tla-plus)<a href="https://agentmods.dev/skills/sammcj/agentic-coding/tla-plus"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/tla-plus/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/tla-plus"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/tla-plus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.02011 |
| Opus 5.5 | $0.00019 | $0.00804 |
| Sonnet 5.5 | $0.00009 | $0.00402 |
| Haiku 4.5 | $0.00005 | $0.00201 |
Grade A, and why
tla-plus scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
A spec is trusted because of checker runs. Every claim made about a spec names the run behind it: the constants, the properties checked, the state count.
The checker is tla (tla-rs, written in Rust). This skill uses no Java tooling, so TLC, SANY, Apalache and the PlusCal translator are unavailable. Write pure TLA+.
Run command -v tla before the first check. If it is missing, ask the user whether to install it with cargo install tla-checker, and install only after they agree, because it downloads and compiles a third-party package. If they decline, write the spec and report that nothing was checked.
Workflow
To review or audit an existing spec, do steps 1 and 2, follow references/review.md in place of steps 3 to 8, then report as in step 9 with the findings in that file's format.
- Create a task per step below, phrased with its completion criterion, then work them to completion. With no task tool, keep the list in your reply.
- Scope. Read any existing
.tlaand.cfgfiles first. Then write one line for each of: the processes and their environment (network, clock, adversary); the failure model (crash, recovery, loss, duplication, reorder, Byzantine); what must never happen; what must eventually happen; the bounds of the model. Ask the user only what the code and documents cannot answer. - Sample behaviours. Before any module, write two behaviours as sequences of states: one normal run, and one containing the interleaving or failure most likely to break the design. Done when every step says which values change. The step boundaries give the grain of atomicity. Keep both in the module header comment, because step 6 replays them.
- Model in layers. Start from
assets/Template.tlaandassets/Template.cfg. Write constants, variables andTypeOK, thenInit, then one action at a time, thenNextandSpec, then the properties. Begin the.cfgwithCONSTANTSonly, and addSPECIFICATION,INVARIANTSandPROPERTYas each definition appears, because a cfg that names a missing definition fails. After each layer runpython3 scripts/tla_check.py Spec.tla --validate-onlyand fix what it reports before adding the next. - Skeleton check. Confirm all five before the first check run:
TypeOKhas one conjunct per variable, and every sentinel is excluded from its real domain by anASSUME.Initassigns every variable.Nextis a disjunction of named actions, each with a guard, an effect, andUNCHANGEDfor every other variable.- At least one invariant beyond
TypeOKstates what the system must guarantee, with a comment arguing why each action preserves it. - The module header lists the abstraction decisions and the grain of atomicity.
- Check. In the
.cfg, nameSPECIFICATIONand everyINVARIANTandPROPERTY, with the smallest constants that still exhibit the protocol. Replay both sample behaviours withpython3 scripts/tla_check.py Spec.tla --scenario FILEuntil each printsVERDICT: allowed(file format inreferences/modelling.md). Then runpython3 scripts/tla_check.py Spec.tla(--helplists the options). On a violation, read the trace as a behaviour and decide which is wrong: the model, the design or the property. Fix that one and run again. Done when a run printsVERDICT: pass.- When the design is wrong, keep that cfg as the failing variant. Put each candidate fix behind its own constant switch and check each alone before combining them. The smallest fix is the fewest switches that pass.
- Make it fail. A model that cannot fail shows nothing. Add a second
.cfg, or a constant switch, that removes a guard or enables a known attack, and run it with--expect violation --expect-property Name, naming the property you care about. Done when it printsEXPECTED violation Name: ok. A deadlock, or a different property failing, does not count. If the variant still passes, the property is too weak or the model never reaches the dangerous state. - Liveness, when claimed. Add it after safety passes. State the fairness assumption for each action that must make progress, and check the property through
PROPERTYin the cfg. The template'sFairnessandFinishesshow the shape. Delete them when no liveness is claimed. - Report. Give:
- the abstraction decisions: what the model leaves out and why
- each run: cfg, constants, properties checked, verdict, states and depth
- the scope: a pass for 3 processes is a bounded result, so say "checked for 3 processes", and name the checker and its version (
tla --version) - what was not checked: larger bounds, liveness, proofs
- for a design bug: the violating trace, restated in the system's own terms
What ships with it
42 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/examples/ai/AgentToolLoop.cfg 235 B
- assets/examples/ai/AgentToolLoop.tla 5.1 KB
- assets/examples/ai/IndAgentToolLoop.cfg 307 B
- assets/examples/ai/IndAgentToolLoop.tla 1.0 KB
- assets/examples/ai/MultiAgentOrchestrator.cfg 182 B
- assets/examples/ai/MultiAgentOrchestrator.tla 5.2 KB
- assets/examples/distributed/RingLeaderElection.cfg 141 B
- assets/examples/distributed/RingLeaderElection.tla 4.6 KB
- assets/examples/distributed/TwoPhaseCommit.cfg 100 B
- assets/examples/distributed/TwoPhaseCommit.tla 4.4 KB
- assets/examples/lean4/LockMutex.cfg 100 B
- assets/examples/lean4/LockMutex.lean 3.4 KB
- assets/examples/lean4/LockMutex.tla 2.7 KB
- assets/examples/ontology/AgentOntology.tla 5.5 KB
- assets/examples/ontology/MCAgentOntology.cfg 304 B
- assets/examples/ontology/MCAgentOntology.tla 1.4 KB
- assets/examples/security/NeedhamSchroeder.cfg 217 B
- assets/examples/security/NeedhamSchroeder.tla 4.9 KB
- assets/examples/security/NeedhamSchroederAttack.cfg 254 B
- assets/examples/security/TokenSession.cfg 226 B
- assets/examples/security/TokenSession.tla 5.5 KB
- assets/Template.cfg 223 B
- assets/Template.tla 2.3 KB
- CLAUDE.md 807 B
- evals/trigger.json 1.3 KB
- references/code-to-spec.md 1.9 KB
- references/domains/agent-ontologies.md 3.3 KB
- references/domains/ai-agents.md 3.3 KB
- references/domains/consensus.md 2.8 KB
- references/domains/distributed-programs.md 3.3 KB
- references/domains/industrial.md 2.4 KB
- references/domains/lean4.md 3.4 KB
- references/domains/security.md 3.6 KB
- references/modelling.md 3.1 KB
- references/pluscal.md 2.4 KB
- references/properties.md 3.8 KB
- references/refinement.md 3.3 KB
- references/review.md 2.2 KB
- references/sources.md 2.2 KB
- references/syntax.md 2.4 KB
- scripts/tla_check.py 9.2 KB runs code
- scripts/verify_examples.py 3.0 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 76 lines · 47 tokens per session scan A 425cef0572f5
tla-plus is a skill published in the GitHub repository sammcj/agentic-coding (174 stars, last pushed 3d ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,011 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
tla-plus compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tla-plussammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 47 | Claude Code |
| agentproto-llm-endpointagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 77 | Claude Code, Codex |
| ap-workflowsagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| agentproto-appsagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| ap-cronagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 70 | Claude Code, Codex |
| ap-lifecycleagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 77 | Claude Code, Codex |
| pb-new-agent-sessionagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 68 | Claude Code, Codex |