Tooluck logoTooluck
SKILL.md

create-formal-verification-skill

Agent skill frombacknotprop/pstack

Generate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, \"model-check this race\", \"prove this invariant\", or when concurrency, retries, state machines, parsers, or unsafe code need more than tests.

How to install create-formal-verification-skill

install create-formal-verification-skill
# install the pstack pack with the skills CLI
npx skills add backnotprop/pstack

# or add only this skill to Claude Code: copy the folder

skills/create-formal-verification-skill/

# into

~/.claude/skills/create-formal-verification-skill/ (all projects)

.claude/skills/create-formal-verification-skill/ (one project)

skills/create-formal-verification-skill/SKILL.md

MITFull file
1# Create a formal verification skill
2
3A test checks the cases that 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. This skill finds the part of the repo where that matters most, verifies one property of it, and leaves a project-local skill that lets the next agent check a change against that property. Write that skill for an agent who reads it cold, mid-change, and has never seen your work. The user must be able to trust the result and act on it without learning the verification language.
4
5## Choose the target from the code
6
7Answer from the codebase, and ask the user only what you cannot observe. If the user named an area or a bug, start there.
8
9A good target is a promise the code makes, where a break harms users and tests rarely reach the case that breaks it. Choose the strongest such target in the repo, not the one that is easiest to verify.
10
11## Let the question choose the tool
12…

Excerpt shown under the repository's MIT license.

More skills in pstack

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates