maintain-formal-verification-skill
Skill0 starsChanged 7 days agoMITView on GitHub
Use only when the user asks for /maintain-formal-verification-skill, asks whether a formal model is still true to the code, or after merges and refactors touched verified code without rechecking it.
47 other projects use a version of this, 41 of them edited.
Adopted by
Most recently taken up by
- Gabriel-Lafrance/Skillsword for word, first seen Nov 29, 2026
- pasevin/pstack-portable-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
- karanmrn/kstackedited, first seen Nov 29, 2026
Used with
Projects with it also use ketchup-video, make-bot-ui and 4 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 17 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 10 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 12 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 10 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
GoogleSkilldomain-modeling
Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.
Also in 3 projects that use this
Other versions47 projects use a version of this.
Word for word · 1
- Gabriel-Lafrance/Skills★ 0100% same
Edited · 41
- backnotprop/pstack★ 5.4k70% same
- jtaroreh/agystack★ 14226% same
- Dimon94/dverity★ 10770% same
- Dimon94/skills★ 10770% same
- dsebban/skills★ 8266% same
- TencentBlueKing/bk-lite★ 7770% same
- stealth-factory/opscope★ 4070% same
- painhardcore/pstack★ 2270% same
- TheOnlyFusionCube/potetos-for-everyone★ 2169% same
- creedants/pstack-t3★ 1968% same
31 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
- lora-sys/skills★ 1same 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
- create-formal-verification-skillSkill
- gabriel-modeSkill
- grill-meSkill
- hillclimbSkill
- 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. 1 is common, 3 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 46 edited versions we read keep these.
3
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 whether covered code changed shape: code-quality.md, code-structure.md.
- Common: line 23
in sync: no change since the last sync alters what the check describes, and the check passes.
- Distinctive: line 28
If an update exposes a bug, report bug and describe the update.
- Distinctive: line 43
Pass: use a scratch code mutation to show the check still catches the guarded failure.
“Common” is measured: kept by at least 6 in 10 of the 46 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
Maintain a formal verification skill
A formal check proves a property of what it describes. When the code changes and the verification does not, the check can keep passing while it describes code that no longer exists. That pass is the dangerous case, because it looks like a proof. This skill is the upkeep loop for a verify skill that /create-formal-verification-skill generated, or for any project-local skill that runs a model checker, prover, or code-level verifier against named code. The project-local skill handles a change an agent makes while it uses that skill. This skill handles the changes that skipped it: merges, edits made without the skill, and drift that builds up across many commits.
Adapted from pstack's maintain-formal-verification-skill (MIT).
Read when
- Every run, before judging whether covered code changed shape: code-quality.md, code-structure.md.
- Writing the report: plain language.
Outcomes
Give each check one outcome, and say which:
- in sync: no change since the last sync alters what the check describes, and the check passes.
- updated: the verification changed to match current code, and the check passes.
- bug: the verification describes the current code, and the code breaks the property. This is a finding about the code. It is not drift.
- blocked: the check could not be brought back in line or could not run. Say exactly why.
If an update exposes a bug, report bug and describe the update.
Edit only the verification: models, harnesses, property files, and the verify skill itself. Never edit product code during a run, unless the user asks. When a property fails on the current code, do not weaken the property or the model to make it pass. Report the failure. Put the verification updates in a change of their own, separate from any product fix.
Process
- Find the checks. A verify skill has no fixed name, so find it by what it does: a project skill that runs a model checker, a prover, or another verifier against named code. Read each one you find, or the one the user named. For each check, collect the property, the code it covers, the bounds and assumptions, the command that runs it, and the commit where it was last confirmed to describe the code. If no verify skill exists, stop and point at
/create-formal-verification-skill. If the skill does not record a sync commit, use the last commit that changed the verification files, and say you did. - Run it as it is. Run each check once before you change anything, and record the result. A pass here does not tell you the code is correct; it tells you the old description still holds. A failure here can be drift or a bug. Do not decide which until step 5.
- Read every change to covered code. Diff the covered files from the sync commit to the current commit, and read each commit message. Also look for code that moved: a covered function renamed, split, or moved to another file is still covered code. Also look for new code that touches the state a check guards, such as a new function that writes the same fields. For each change, decide which of these it is:
- No effect. The change alters nothing the verification describes, such as formatting, comments, or code paths the verification does not cover. Check this against the model or harness, not against the commit message.
- The verification no longer describes the code. A step that was one indivisible action is now two, a branch was added or removed, a check moved, a new path reaches the guarded state, or a value now has a different range. The model or harness must change.
- The promise changed on purpose. The change alters what the code promises, and evidence in the change says that is intended: the doc comment, the tests, the changelog, or the commit message. The property must change, and you must cite that evidence.
- The promise may be broken. The code changed, and no evidence says the promise changed. Treat a failure that follows as a bug candidate.
- Update from the code, not from the result. Change the model or harness so each changed part again points to code a reviewer can open, and keep one indivisible step in the code as one step in the verification. Write the update from the code before you rerun; do not shape it by what makes the check pass. Change a property only for a promise that changed on purpose. Write down the old wording, the new wording, and the evidence. Keep the bounds unless the change makes them wrong. If you must reduce a bound, say so in the report.
- Rerun and judge each result.
- Pass: use a scratch code mutation to show the check still catches the guarded failure. For standalone models, model the same mutation and replay its counterexample against the broken code. Then drop the scratch changes.
- Fail: replay the counterexample against the real code, step by step. If a step cannot happen in the code, the verification is wrong. Fix the verification, and say what was wrong. If every step can happen, it is a bug. Name the commit that introduced it, tell the counterexample as a sequence of steps in the code's own words, and state the harm in one sentence. If a cheap test or reproduction against the real code shows the bug, add it to the report as evidence; do not commit it to the product code. For a TLA+ check, read the result with
/statechart.
- Update the verify skill. Update coverage, commands, bounds, and assumptions. Follow the verify skill once on the final code and verification snapshot. Advance the sync commit only for a completed check whose covered code matches that commit. For blocked checks or uncommitted changes to covered code, keep the previous sync commit and report why.
- Report. For each check: the outcome and the commits you read; what changed in the verification and why, with a short reason per change (the code changed shape, or the promise changed on purpose, with the evidence); the rerun result and the break you used to show the updated check can still fail; each bug in plain words, with the counterexample as steps in the code's words, the harm, and the commit that introduced it; and what the verification still does not cover, including new code it should cover and does not. Say outright which failures were drift in the verification and which were bugs in the code. For a check that passed before you updated it and fails after, say that the old pass was on a stale description.
Anti-patterns
- Treating a pass on a stale description as proof the code is correct
- Updating the model from what makes the check pass instead of from the code
- Moving the sync commit forward for a blocked check
- Editing product code, or folding a product fix into the verification update
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.

