/pstack:maintain-formal-verification-skillfrom pstack
Updates formal verification models and properties after code changes. Finds commits that touched verified code, updates the model to match, reruns checks, and classifies each failure as verification drift or a code bug.
Ships in pstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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 that 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.
Platform note. Find the active host's project skills under .claude/skills/ on Claude Code or .agents/skills/ on Codex. Keep one shared tree, not duplicate host copies. Resolve tools through codex-tools.md. The coordinating parent owns every Git mutation; delegated writers only edit assigned verification files and report checks.
Give each check one outcome, and say which:
A check can be both updated and bug: the update makes the verification describe the code again, and then the property fails on it.
Edit only the verification: models, harnesses, property files, and the verify skill itself. Never fix product code during this run; keep any product fix as separate work. Inject faults only in disposable copies. When a property fails on the current code, do not weaken the property or the model to make it pass. Report the failure.
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 that you did. Resolve the full commit ID and record uncommitted covered changes separately; do not claim a commit includes them.
Run it as it is. Run each check once before you change anything, and record the result. A pass here does not tell you that the code is correct. It tells you that 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 that is renamed, split, or moved to another file is still covered code. Also look for new code that touches the state that a check guards, such as a new function that writes the same fields. For each change, decide which of these it is:
Update from the code, not from the result. Change the model or harness so that each changed part again points to code that 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, and 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.
Update the verify skill. Update the code that each check covers, the commands, the bounds, the assumptions, and the sync commit. Keep its frontmatter name matching the skill directory and its description current. Set the sync commit to the exact full commit that you checked; record any uncommitted delta separately. Do not move the sync commit for a blocked check, and say so in the report. Then confirm native registration and invoke the generated project skill by name (/name in Claude Code, or its picker entry or $name in Codex), following its instructions once as the next agent would. Capture the actual skill load and execution; a direct file read is not registration proof. If either cannot be observed, report that path as unverified rather than claiming the skill is proven.
Tell the user, for each check:
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.
Put the verification updates in a change of their own, separate from any product fix.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arjitj2/open-pstack --plugin pstack66 skills in this plugin
/architectSketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automate-meUse for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via plugin-dev:skill-development + unslop, optionally pulling fresh evidence from recent transcripts.Other plugins' skills for the same job