create-formal-verification-skill
Skill0 starsChanged 7 days agoMITView on GitHub
Use only when the user asks for /create-formal-verification-skill, to model-check a race, retry, state machine, parser, or unsafe code, or to prove an invariant that tests cannot reach.
50 other projects use a version of this, 44 of them edited; most edited versions we compared are an older text (32 of 44); 8 new projects in the last 4 weeks, against 1 the 4 before.
How people change it
Most projects run an older version: 32 of 44 add nothing and lack rules this one has, most likely added since.
Of the 44 edited versions we compared: 32 are an older text, 12 made changes of their own.
Not in older versions
- Every run, before judging targets or writing verification code: [code-quality.md](../rules/code-quality.md), [code-structure.md](../rules/code-structure.md).missing from 32 of 32
- Before asking the user anything: [asking the user](../rules/writing-style.md#asking-the-user).missing from 32 of 32
Rules people drop
- Every run, before judging targets or writing verification code: [code-quality.md](../rules/code-quality.md), [code-structure.md](../rules/code-structure.md).dropped by 12 of 12
- Before asking the user anything: [asking the user](../rules/writing-style.md#asking-the-user).dropped by 12 of 12
- True to the code. Every part of the model or proof points to code a reviewer can open. What the verification treats as one indivisible step is one indivisible step in the code. Names come from this repo.dropped by 1 of 12
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Surging: 8 new projects took it in the last 4 weeks, 8× the 4 weeks before.thin data
Most recently taken up by
- Gabriel-Lafrance/Skillsword for word, first seen Nov 29, 2026
- pasevin/pstack-portable-skillsedited, first seen Nov 29, 2026
- itsmeyaw/skillsedited, first seen Nov 29, 2026
- MondayNotAGoodDay/skillsedited, first seen Nov 29, 2026
- jaydubya818/MissionControledited, first seen Nov 29, 2026
- karanmrn/karanagentskillsedited, first seen Nov 29, 2026
Used with
Projects with it also use ketchup-video, make-bot-ui and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shiwenbin1617Skillketchup-video
Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.
Also in 15 projects that use this
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 9 projects that use this
bnemaSkillsetup-pstack
Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.
Also in 11 projects that use this
rohunvoraSkillreframe
This skill should be used when the user is stuck, obvious solutions aren't working, constraints feel impossible, or they keep circling back to bad options. Use when designs keep getting rejected or the user is solving symptoms instead of root causes.
Also in 8 projects that use this
AnasX7Skillshow-me
Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.
Also in 4 projects that use this
MicrosoftSkillwriting-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Also in 3 projects that use this
Other versions50 projects use a version of this.
Word for word · 1
- Gabriel-Lafrance/Skills★ 0100% same
Edited · 44
- backnotprop/pstack★ 5.4k44% same
- jtaroreh/agystack★ 14214% same
- Dimon94/dverity★ 10739% same
- Dimon94/skills★ 10739% same
- dsebban/skills★ 8245% same
- TencentBlueKing/bk-lite★ 7744% same
- stealth-factory/opscope★ 4048% same
- painhardcore/pstack★ 2243% same
- TheOnlyFusionCube/potetos-for-everyone★ 2146% same
- creedants/pstack-t3★ 1942% same
34 more not listed
Wrote their own version · 5
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- requie/endostack★ 4same name
- fullerzz/agent-skills★ 2same name
- B16B1RD/bb-writ★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ask-gabrielSkill
- babysit-prSkill
- councilSkill
- gabriel-modeSkill
- grill-meSkill
- hillclimbSkill
- maintain-formal-verification-skillSkill
- review-loopSkill
- reviewSkill
- rulesSkill
- setup-gabriel-skillsSkill
- statechartSkill
- takeover-prSkill
- taskSkill
- test-auditSkill
- verificationSkill
- write-ticketSkill
The file
We split this skill into the rules it gives an agent
4 rules. 2 are common, 2 are distinctive, and 0 are very specific to this project.
2
Common
Most of the 48 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Every run, before judging targets or writing verification code: code-quality.md, code-structure.md.
- Distinctive: line 17
Before asking the user anything: asking the user.
- Common: line 25
True to the code: Every part of the model or proof points to code a reviewer can open.
- Common: line 27
Findings stay findings: When the current code breaks the property, report it with the counterexample in the code's terms.
“Common” is measured: kept by at least 6 in 10 of the 48 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create a formal verification skill
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. 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.
Adapted from pstack's create-formal-verification-skill (MIT).
Read when
- Every run, before judging targets or writing verification code: code-quality.md, code-structure.md.
- Before asking the user anything: asking the user.
- Writing the hand-off: plain language.
Process
- Choose the target from the code. Answer from the codebase, and ask the user only what you cannot observe. If the user named an area or a bug, start there. A 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.
- Let the question choose the tool. Use a small TLA+ model for ordering or a code verifier for properties such as overflow or data-structure invariants. A property at every size may require a proof assistant. Prefer a tool the repo's developers can install and run. If no verifier fits, report the limit. Probe the real code with generated inputs in scratch or propose a persistent test through verification, which writes only accepted tests. Report sampled results as sampled, and stop before generating a formal skill if no formal check can run.
- Hold the bars.
- True to the code. Every part of the model or proof points to code a reviewer can open. What the verification treats as one indivisible step is one indivisible step in the code. Names come from this repo.
- Able to fail. Show each property failing after a scratch change that removes a guard or reorders a step. For a standalone model, translate the same change into the model and replay its counterexample against the broken code.
- Findings stay findings. When the current code breaks the property, report it with the counterexample in the code's terms. Do not weaken the property or the model until it passes, and do not change product code unless the user asks.
- Honest about scope. Say what is verified, under which bounds and assumptions, and what is left out. A pass covers the model or the bound, not the whole system.
- Readable without the tool. State the property and the harm in one plain sentence each. Tell a counterexample as a short sequence of steps in the code's words.
- Cheap to rerun. One command, a reproducible tool version, and a run short enough that the next agent will use it on every relevant change.
- Kept in step with the code. Record which files and functions each check covers, and the commit at which you last confirmed the verification describes them. When covered code changes after that commit, the next agent can see the verification needs another look.
- Generate the verify skill. Write it in the project's existing skill root, with frontmatter that names the area and when to use it. Name the covered code, commands, bounds, and how to distinguish a code bug from a modeling error. Record the commit matching the checked code when one exists. If covered code is uncommitted, record the checked revision and diff, leaving the sync commit unset until confirmed on committed code. For TLA+ results, point to
/statechartby name in the generated skill. It provides counterexamples and draws the chart within its chart budget. Keep its internal paths and options out of the generated skill. - Prove it before you hand off. Run the generated skill as written on the scratch variant from step 3. It must catch the break. Drop the scratch code and model changes and confirm the original result returns. If a step misses the break or cannot run, fix the skill or verification before handoff.
- Hand off. Tell the user what you verified, which tool you used and why, the bounds, what the check found in plain words, how to run it, and what it does not cover. Suggest a second target only if you found a close one. Point the user at
/maintain-formal-verification-skillfor bringing the verification back in line after changes that did not recheck it.
Anti-patterns
- Choosing the target that is easiest to verify instead of the promise whose break costs most
- Hand-modeling a function in a checker language when no verifier runs on the code, instead of testing the real code with generated inputs
- Weakening the property or the model until the current code passes
- Handing off a generated skill that was never run end to end
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

