Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Tla Syntax

ASecurity

Authoritative reference and generation rules for pure TLA+ surface syntax. Use when writing or correcting TLA+ modules operators expressions modules EXTENDS INSTANCE VARIABLES Init Next Spec priming UNCHANGED fairness or any syntactic construct. Trigger on requests for correct TLA+ syntax examples or when fixing SANY errors.

3 stars
0 votes
0 copies
3 views
Added 9/11/2026
documentationexpress

Security Analysis

A100/100

Scanned 9/11/2026

Install to Claude Code

$npx -y skills add DylanCkawalec/Mermate --skill tla-syntax --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tla Syntax?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Tla Syntax
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dylanckawalec-tla-syntax/badge)](https://www.skillsdirectory.com/skills/dylanckawalec-tla-syntax)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: tla-syntax
description: Authoritative reference and generation rules for pure TLA+ surface syntax. Use when writing or correcting TLA+ modules operators expressions modules EXTENDS INSTANCE VARIABLES Init Next Spec priming UNCHANGED fairness or any syntactic construct. Trigger on requests for correct TLA+ syntax examples or when fixing SANY errors.
---

# TLA+ Syntax

## Persona Orientation

This skill operates under the professional persona and methodological standards of Leslie Lamport as established in the specification-master-agent. All syntactic decisions defer to the mathematical style and clarity requirements of Specifying Systems. Prefer the classic ASCII operators that Lamport uses throughout the book and the official tools. Never introduce programming-language habits.

## Overview

Produce only syntactically valid TLA+ that passes SANY. Prefer the classic ASCII operators. Never emit programming-language syntax (semicolons != = for definition backticks Unicode operators unless the user explicitly requests Unicode).

## Core Syntax Rules

- Definition operator is == (never =)
- Inequality is # (never !=)
- Conjunction is /\   Disjunction is \/   Negation is ~
- Implication is =>   Equivalence is <=>
- Primed variable is x'   (the value in the next state)
- Stuttering-tolerant next-state relation is [Next]_vars
- Module terminator is ====
- Comments use \* for single line or (* ... *) for blocks

## Module Skeleton (Always Start From This)

```
---------------------------- MODULE ModuleName ----------------------------
EXTENDS Integers, Sequences, FiniteSets, TLC   \* add only what is needed

CONSTANTS ...
VARIABLES ...

vars == << ... >>     \* tuple of all variables

TypeOK == ...         \* type invariant

Init == ...

Action1 == ...
Action2 == ...
Next == Action1 \/ Action2 \/ ...

Spec == Init /\ [][Next]_vars /\ WF_vars(Next)   \* adjust fairness

=============================================================================
```

## Critical Constructs

**Variables and priming**
- Every variable that may change must appear primed in at least one action or be declared UNCHANGED.
- An action that does not mention a variable leaves its value unconstrained. Always write UNCHANGED <<v1, v2, ...>> for the variables that stay the same.

**Operators**
- Recursive operators need the RECURSIVE keyword and careful domain restriction.
- Higher-order operators are allowed and useful for abstraction.

**Quantifiers and set constructs**
- \A x \in S : P(x)
- \E x \in S : P(x)
- {x \in S : P(x)}
- [x \in S |-> e]   for functions
- CHOOSE x \in S : P(x)

**Temporal operators**
- []P     always
- <>P     eventually
- P ~> Q  leads-to
- WF_vars(A)   weak fairness
- SF_vars(A)   strong fairness

## Common Syntax Errors to Prevent and Repair

- Using = instead of == for definitions
- Using != instead of #
- Missing module header or ==== terminator
- Forgetting to list all variables in vars or in UNCHANGED
- Priming a constant or an expression that is not a variable
- Nested temporal operators without proper parentheses
- Unicode operators (∨ ∧ ≠) unless the environment supports them and the user requests them

## Generation Discipline

When writing a full module always emit the complete text including the MODULE line and the terminating ====.  
When repairing an existing fragment identify the exact SANY error class and rewrite only the offending construct while preserving the surrounding logic.

## References

For deeper examples of well-formed modules see the standard TLA+ Examples repository patterns and the companion skills on state machines and invariants.

Attribution

DylanCkawalecDylanCkawalec
View sourceMore from DylanCkawalec →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Context Fundamentals

Understand the components, mechanics, and constraints of context in agent systems. Use when designing agent architectures, debugging context-related failures, or optimizing context usage.

179001 votes

release-notes

Draft release notes and changelog entries from git history or merged PRs between two refs (tags/SHAs/branches), including breaking changes, migrations, and upgrade steps. Use when the user asks for release notes, changelog updates, or a GitHub Release draft.

1301 votes

docs-style-guide

Documentation style guide enforcer by @planetabhi. Applies and reviews the writing style guide when authoring or editing product documentation and tutorials. Use to check prose for voice, tense, word choice, inclusive language, formatting, code block, UI, Markdown, and number/date conventions.

11 votes

Caveman Help

Quick-reference card for all caveman modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman".

1023330 votes

How It Works

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

929660 votes
View all in documentation →