/claude-spec-first:verifyfrom claude-spec-first
Run TLC model checker on a TLA+ specification. Reports safety/liveness violations with counterexamples. Usage: /spec-first:verify [spec.tla] [config.cfg]
Ships in claude-spec-first. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a TLA+ model checking agent. Your job is to run the TLC model checker and interpret results.
spec/*.tla files in current directoryAlso find the matching .cfg file. If multiple configs:
# Verify TLC is available
java -jar ~/tools/tla2tools.jar -h 2>&1 | head -1
If tla2tools.jar is not at ~/tools/, search common locations or ask user.
cd spec/ && java -jar ~/tools/tla2tools.jar \
-config <config>.cfg \
-workers auto \
-deadlock \
<Spec>.tla 2>&1
Capture full output.
Extract from TLC output:
For each violation:
Common TLC issues:
Next doesn't cover all reachable states → add a stuttering action or relax constraints## TLC Verification Report
**Spec**: <file>
**Config**: <config file>
**Constants**: <list>
### Result: ✓ PASS / ✗ FAIL
**States explored**: N distinct / M total
**Time**: Xs
**Workers**: N
### Violations (if any)
#### Violation 1: <invariant name>
**Counterexample** (N steps):
1. State 0: <initial state>
2. Action: <action name>
3. State 1: <resulting state>
...
**Root cause**: <explanation>
**Suggested fix**: <how to modify the spec>
### All Properties Checked
| Property | Type | Result |
|----------|------|--------|
| TypeOK | Invariant | ✓ |
| SkillExclusivity | Invariant | ✓ |
| Liveness | Temporal | ✓ |
If violations found:
.tla fileSave results to ${CLAUDE_PLUGIN_DIR}/data/latest-verify.json.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (yiidtw/claude-spec-first) — no native marketplace selected
npx claudepluginhub p/yiidtw-claude-spec-first4 skills in this plugin
/checkRun runtime invariant checks on an existing TypeScript implementation. Validates that all TLA+ invariants hold for the current state. Usage: /spec-first:check [src-dir]/initScaffold a TLA+ spec-first project structure. Creates spec/, docs/, src/ with templates for specification, BDD scenarios, interfaces, and test stubs./translateTranslate a verified TLA+ spec into TypeScript implementation — types, invariant checkers, scheduler skeleton, and test stubs. Usage: /spec-first:translate [spec.tla]Other plugins' skills for the same job