Skip to content
Back to skills

Vformal

ASecurity

Builds an L3 formal check for one area with a stateful or concurrent protocol - lifecycle, sync, permissions, queues, retries, money movement. Picks one property and a tool, proves the check catches a broken variant, states its bounds and registers a recheck command in the repo overlay.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 29, 2026
ai-agentstypescriptpythonjavatesting

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add vocsong/VocsCode --skill vformal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vformal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vformal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vocsong-vformal/badge)](https://www.skillsdirectory.com/skills/vocsong-vformal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vformal
description: Builds an L3 formal check for one area with a stateful or concurrent protocol - lifecycle, sync, permissions, queues, retries, money movement. Picks one property and a tool, proves the check catches a broken variant, states its bounds and registers a recheck command in the repo overlay.
disable-model-invocation: true
---

# vformal — add an L3 check for one area

Read the **Shared vocabulary** section of `../vcore/SKILL.md` before starting.

Apply the overlay rules in `../vcore/SKILL.md` (including `notes/vformal.md` and `overrides/vformal.md`).

## 1. Pick the property

Name one property that must always hold, in a sentence a reviewer can check: "a session never
returns to running after it is stopped", "an approval never executes after it was denied", "every
queued message is delivered exactly once". One property per check; add more later.

## 2. Pick the tool

- **Default: model-based property tests in the repo's own language** (TypeScript: `fast-check`
  model-based testing; Python: Hypothesis stateful testing; others: the closest equivalent).
  Generate random command sequences, run them against the real code and a tiny model, and assert
  the property after each step. Runs in the normal test suite. The library is a dev dependency;
  ask first if the repo's rules require it.
- **Escalate to TLA+** (TLC model checker) only when the protocol spans processes or machines (sync,
  relays, distributed queues) and exhaustive state search matters. Needs Java; keep the spec beside
  the code it models. One atomic step in the model must be one atomic step in the code — a model
  that merges steps the code can interleave proves the wrong thing.

State the **bounds**: runs, command-sequence length, seed policy (fixed seed in CI, random locally
with the seed printed), and what the model leaves out.

## 3. Prove the check can fail

Introduce a deliberate bug that breaks the property (in a scratch branch or behind a test-only
switch), and show the check catches it with a readable counterexample. A check that has never failed
proves nothing. Revert the bug.

**Findings stay findings:** if the current code already breaks the property, report the
counterexample as a bug (`../vbugfix/SKILL.md`). Never weaken the property to make it pass.

## 4. Register it

Write `.vocs/playbooks/formal/<area>.md`:

```markdown
# <area>
Property: <one sentence>
Tool: fast-check model-based | TLA+
Covers: <the modules and entry points the model exercises; what it leaves out>
Paths: <globs that put a diff in this area>
Bounds: <runs, sequence length, seed policy>
Recheck: <exact command>
Broken-variant proof: <how it was shown failing, date>
Synced at: <commit sha the model was last checked against>
```

and add L3 to the area's row in `feature-map.md`. Ship both in the same PR as the check. When the
area's code changes, re-run the check and update `Synced at`; a pass on stale code is not a pass.

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.