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 Invariants Properties

ASecurity

Writing inductive invariants safety properties liveness properties and fairness conditions in TLA+. Use when defining what must always be true what must eventually happen or how to strengthen invariants for model checking or proof. Trigger on requests for invariants temporal properties or fairness.

3 stars
0 votes
0 copies
1 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-invariants-properties --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tla Invariants Properties?

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

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

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

Download Zip
Files
SKILL.md
---
name: tla-invariants-properties
description: Writing inductive invariants safety properties liveness properties and fairness conditions in TLA+. Use when defining what must always be true what must eventually happen or how to strengthen invariants for model checking or proof. Trigger on requests for invariants temporal properties or fairness.
---

# Invariants and Temporal Properties

## Persona Orientation

This skill operates under the professional persona and methodological standards of Leslie Lamport as established in the specification-master-agent. Safety properties and fairness conditions are written according to the discipline of Specifying Systems (especially Chapters 7 and 8). Prefer inductive invariants that are strong enough to be useful, and never claim liveness without the corresponding fairness hypotheses and machine closure.

## Overview

Invariants and temporal properties are the reason we write specifications. Safety properties are usually expressed as invariants (predicates that must hold in every reachable state). Liveness properties require temporal operators and almost always need fairness assumptions.

## Safety — Inductive Invariants

An inductive invariant I satisfies

- Init => I
- I /\ [Next]_vars => I'

The strongest useful inductive invariant is often TypeOK combined with the key application-specific predicates. When TLC finds a counterexample to a desired invariant either the model is wrong or the invariant is not inductive and must be strengthened.

Always state TypeOK. Then add the essential safety properties of the system (mutual exclusion agreement validity consistency etc.).

## Liveness and Fairness

- Weak fairness WF_vars(A) asserts that if A remains continuously enabled it will eventually be taken.
- Strong fairness SF_vars(A) asserts that if A is enabled infinitely often it will be taken infinitely often.
- Most systems need at least WF_vars(Next) or more precise fairness on the critical progress actions.
- Leads-to properties P ~> Q are the most common way to express liveness.

Never claim a liveness property without the corresponding fairness hypotheses; the property will be false under pure stuttering.

## Property Writing Discipline

1. Write the informal English statement of the property first.
2. Translate it into a TLA+ temporal formula.
3. Check that the formula is evaluated over the correct behaviors (those satisfying Spec).
4. For inductive invariants test preservation mentally or with TLC.

## Common Failures

- Stating a safety property that is true of the real system but not inductive for the model (missing auxiliary variables or history).
- Forgetting fairness and then wondering why a liveness property fails.
- Writing invariants that refer to implementation details that were abstracted away.
- Using []<> or <>[] incorrectly when a leads-to would be clearer.

When an invariant is hard to find consider adding history or prophecy variables carefully or moving to a coarser abstraction.

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 →