/work:formal-verify [area, property or bug] | refreshfrom work
Formally verify one critical property of the code and leave a project skill that rechecks it, or bring an existing formal check back in line with the code.
Ships in work. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run this skill only when the user asked for it by name, as a command or in words. If you loaded it on your own, stop and tell the user what it does and how to start it.
A test checks the cases someone thought to write. Formal verification checks every case in a stated scope: every order of steps in a model, every input up to a bound, or every input. Use it only where a bug costs the most and tests reach the least: concurrency, retries, state machines, parsers, unsafe code.
If a project skill named formal-<area> already exists and the user asked for a refresh, or the covered code changed since its sync commit, skip to Refresh.
Find the promise whose break hurts users most and whose breaking case tests rarely reach: "a payment is captured at most once", "two writers never both hold the lock". If the user named an area or a bug, start there. Choose the strongest target, not the easiest to verify.
| The question | Tool |
|---|---|
| Can events happen in a bad order? | A model checker over a small model of the design; TLA+ is the default in any language. |
| Does the code itself hold for every input (memory safety, overflow, a data-structure invariant)? | A verifier that runs on the code, such as Kani for Rust, CBMC for C, or Dafny. |
| No verifier exists for the language | Property-based tests with generated inputs on the real code, not a hand model of it. |
| Must hold at every size, where a bound is not enough | A proof assistant. |
Prefer a tool the repo's developers can install and run. Propose the property, the tool and why in a few lines, and build only after the user agrees: installing a toolchain is their call.
Write .agents/skills/formal-<area>/SKILL.md from references/formal-skill-template.md, with the model, harness and property files beside it, and agents/openai.yaml with interface.display_name and interface.short_description. The skill records which files and functions each check covers and the commit at which the model last matched them: the sync commit.
If the repo uses Claude Code (AGENTS.md says so, there is a .claude/ folder or a CLAUDE.md, or you are Claude Code), also write .claude/skills/formal-<area>/SKILL.md with the same name and description and this body: "This skill lives in .agents/skills/formal-<area>/. Read its SKILL.md from the repository root and follow it, resolving its paths from that folder."
Follow the new skill once, as the next agent would, on a scratch change that breaks the property, made and undone as references/safe-break.md describes. It must catch the break, and pass again once the tree is back.
Tell the user what is verified, with which tool and why, the bounds, what the check found in plain words, how to run it, and what it does not cover.
When code changes and the model does not, the check keeps passing while describing code that no longer exists. That pass is the dangerous case. Edit only the verification (models, harnesses, properties, the project skill); report bugs instead of fixing them.
Report each check's outcome: in sync, updated, bug, or blocked (with exactly why). Keep verification updates in a change of their own, separate from any product fix.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
24 skills in this plugin
/awayRun work unattended under a written contract, with a pass/fail done check, an append-only decision log and a morning report./code-reviewReview the changes since a fixed point on two separate axes, Standards and Spec, each in its own subagent, and report them side by side. Use when asked to review a branch, a pull request or work in progress, and after building a feature./cosmos-explainExplain a physical AI term (NVIDIA Cosmos, world foundation model, VLA, diffusion, sim2real, Isaac Lab, post-training, eval metrics) to an engineer from a software or test background, in four fixed parts that end with what to test. Use when such a term comes up unexplained, when the person asks what one means, or when a reply about robotics or world models used jargon the person did not follow./create-verifyCreate or refresh the verify skill for an app, a project skill that drives the app the way a user does and saves evidence. Run once per app, and again when the app changes./eval-regressionRun a golden set against a new model checkpoint or config, several seeds per case and several judges per output, compare with the baseline by threshold, and give a pass or fail verdict with evidence./glossaryKeep the project's shared language in GLOSSARY.md and its hard-to-reverse decisions in docs/adr/. Use when a project term is coined, renamed, disputed or used loosely, or when a decision is hard to reverse, surprising without context and a real trade-off.npx claudepluginhub duy-tung/work --plugin work