Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bilal140202/antigravity-tla-guard
Implements formal mathematical verification for Python AI agents.
Passed 17 of 21 test cases with the skill, and 8 of 21 without it.
and 18 more in the full report
13 fixed5 passed either way1 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
In `generate_tla_spec`, if `state` does not contain a `'pc'` key, what fallback string value should be assigned to `pc` in the initial state definition?
| Checked | Without skill | With skill |
|---|---|---|
| uses default value 'plan' when pc key is missing | Missed | Passed |
The instructions your model reads when the skill loads.
You are equipped to help developers add formal mathematical verification (based on TLA+ concepts) to their AI agent workflows. This ensures a zero-bug guarantee for state transitions and prevents dangerous LLM hallucinations from executing in production.
When building an agent pipeline, first identify the critical state transitions (the "program counter" or pc, e.g., plan → code → test → deploy).
Provide the developer with a tla_verify guardrail function. This function must be called before any critical state transition occurs.
Key requirements for the verifier:
NoDeployUntested (cannot transition to "deploy" without a "test_report" artifact).Integrate the verifier into the graph routing logic or state machine. Every node transition must pass the tla_verify check before proceeding.
When asked to implement this pattern, use the following standard Python file content:
from typing import Dict, List
def generate_tla_spec(state: dict):
"""
Generates a TLA+ specification string from the current agent state.
Used for formal verification before critical transitions.
"""
artifacts = state.get("artifacts", [])
# In state dict, artifacts might be Pydantic objects or dicts
artifact_types = []
for a in artifacts:
if isinstance(a, dict):
artifact_types.append(f'"{a.get("type")}"')
else:
artifact_types.append(f'"{a.type}"')
test cases passed, vs 8 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.