project-formal-verification
Project Formal Verification Recipes
Adapted from Cursor pstack's create-formal-verification-skill and maintain-formal-verification-skill (MIT, Copyright (c) 2026 Lauren Tan). Automatic tool installation, mandatory statechart rendering, and ceremonial reruns are not adopted.
This explicitly requested generator/maintainer owns verification artifacts, not product repairs. Load agent-guardrails for scope, evidence, and correction limits; if unavailable, stop and request it without installing anything. verification-before-completion owns completion claims. Skill creation grants no dependency installation, production access, service restart, product-code repair, or publication authority. Temporary fault injection needs authorization covering the isolated scratch work.
Select the property and method
Start with the named area, or resolve one bounded area from the request; do not scan the whole repo for a harder problem. Identify one promise, its independent source, and a reachable harmful violation. Ask only about missing intent or authority. If the promise conflicts with approved requirements, return to shape-design rather than choosing a new contract.
Prefer an existing check and tool. Use a small model for ordering or protocol questions, a code-level verifier for properties of actual code, and a deductive proof when finite bounds cannot establish the required claim. Explain the cheapest suitable choice. Generated-input tests against real code are an empirical alternative, not a formal proof; do not silently substitute them or a hand-copied function model for the requested claim. A missing tool blocks execution, not permission to install one.
Create mode
- Inspect the relevant callers, state writers, failure paths, and atomic or transactional boundaries. Map each modeled action to actual code; do not make several interruptible operations atomic to obtain a pass.
- Generate
.agents/skills/verify-<project>-<area>/SKILL.mdusing the recipe template. Respect existing names and verification directories. Without an established location, keep owned model/harness files with the recipe; ask before adopting another layout. Reuse existing helpers; add no generic runner. - Fill actual paths, property source, method, assumptions, bounds, tool version/configuration, command, result interpretation, code correspondence, and change triggers. Keep unknowns explicit. An unexecuted recipe is a draft, never proof of the property.
- Within the authorized budget, follow the generated recipe as a cold-start user once. Include one targeted negative control for the selected property and restore the starting state afterward; retain evidence outside disposable scratch. Without execution or fault-injection authority, report the exact unproved part instead of performing it.