tlaplus-model-reduction

tlaplus-model-reduction is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 87 tokens per session (1,301 once invoked), scanned A, original, Apache-2.0.

A generator that turns C, C++, or Python source code into TLA+ specifications. The resulting model describes state, actions, and system behavior for formal checking with TLC.

In plain words
What is it for?
Generate models for distributed systems, consensus protocols, and concurrent algorithms from one or more source files, with configurable process counts.
Why use it?
Writing a model by hand can be difficult when starting from an existing implementation; extracting its structure provides a starting point for verification.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Generate models for distributed systems, consensus protocols, and concurrent algorithms from one or more source files, with configurable process counts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arabelatso/skills-4-se/tlaplus-model-reduction
Install

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.

Any agent
npx skills add ArabelaTso/Skills-4-SE --skill tlaplus-model-reduction
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for tlaplus-model-reduction

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/tlaplus-model-reduction/github.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/tlaplus-model-reduction)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/tlaplus-model-reduction"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/tlaplus-model-reduction/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.

agentmods 80×15 button for tlaplus-model-reduction

Your own site · 80×15
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/tlaplus-model-reduction"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/tlaplus-model-reduction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01301
Opus 5 $0.00044 $0.00651
Sonnet 5 $0.00017 $0.00260
Haiku 4.5 $0.00009 $0.00130

Measured 7d ago against content hash 23dd6bfa2f29, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tlaplus-model-reduction 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 7d 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.

skills/tlaplus-model-reduction/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TLA+ Model Reduction (Spec Minimizer)

Overview

This skill analyzes TLA+ specifications and produces minimized versions by eliminating redundancies while preserving all specified properties. The reduction process analyzes reachability, dependency relations, and property relevance to ensure semantic equivalence between the original and reduced specifications.

Workflow

Step 1: Input Analysis

Parse and understand the input TLA+ specification:

  1. Identify components:

    • State variables (VARIABLES declaration)
    • Initial state predicate (Init)
    • Next-state relation (Next)
    • Invariants (INVARIANT declarations)
    • Temporal properties (PROPERTY declarations)
    • Type invariants and constraints
  2. Extract structure:

    • List all actions (disjuncts in Next)
    • Identify action guards (enabling conditions)
    • Map variable dependencies
    • Note fairness constraints if present
  3. Understand properties:

    • Safety properties to preserve
    • Liveness properties to maintain
    • User-specified invariants

Step 2: Dependency Analysis

Build comprehensive dependency graphs:

  1. Variable dependency graph:

    • For each variable, identify which actions read/write it
    • Determine which variables are used in property specifications
    • Find derived variables (computed from others)
    • Identify unused variables
  2. Action dependency graph:

    • Map which actions enable/disable other actions
    • Identify independent vs. dependent action sequences
    • Find actions with identical effects
  3. Property dependency graph:

    • Determine which variables each property depends on
    • Identify which actions affect property satisfaction

Step 3: Identify Reduction Opportunities

Systematically find redundancies using the techniques in reduction_techniques.md:

  1. Redundant state variables:
    • Variables never referenced in actions or properties
    • Variables whose values are always derivable from others
    • Variables that remain constant after initialization

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 7d ago First seen · 165 lines · 87 tokens per session scan A 23dd6bfa2f29

Subscribe to this mod's changes

tlaplus-model-reduction is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (251 stars, last pushed 20d ago), licensed Apache-2.0. It adds 87 tokens to every session and 1,301 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

python

Use when writing, reviewing, or modernizing Python 3.11+ code. Produces fully type-annotated modules, async I/O, dataclasses and protocols, pytest suites, and a lint/type gate built on ruff and mypy --strict.

nimadorostkar/Claude-Skills-collection · 55 tokens

locust

When the user wants to design, implement, debug, or operate Locust load tests in Python. Use when the user mentions "Locust," "HttpUser," "@task," "TaskSet," "locustfile.py," "master/worker," "Locust web UI," "FastHttpUser," "constantpacing," "waittime," or "locust -f -u -r --headless." For k6 see k6. For JMeter see…

aks-builds/quality-skills · 116 tokens

pytest

When the user wants to design, implement, debug, or optimize pytest tests in Python. Use when the user mentions "pytest," "pytest fixtures," "conftest.py," "pytest.ini," "pyproject.toml pytest section," "@pytest.fixture," "@pytest.mark.parametrize," "pytest-xdist," "pytest-asyncio," "pytest-cov," "monkeypatch,"…

aks-builds/quality-skills · 129 tokens

pytest-optimizer-00-scan

Use when starting or re-baselining a pytest optimization pass by profiling tests and fixtures without editing the suite.

tony/skills · 30 tokens

pytest

Provides comprehensive guidance for pytest testing framework including test writing, fixtures, parametrization, mocking, and plugins. Use when the user asks about pytest, needs to write Python tests, use pytest fixtures, or configure pytest for Python projects.

Zephyrex21/claude-skills-vetted · 48 tokens

polars

High-performance DataFrame library for Python ETL, analytics, and pandas migration. Use for expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.

K-Dense-AI/scientific-agent-skills · 47 tokens