Skip to content
Back to skills

Maintain Formal Verification Skill

ASecurity

Re-sync an existing formal verification skill after the covered code changed: re-check every assumption, update cited lines, rerun the tool; formally-verified only after a green rerun.

  • 41,149 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsrustgogit

Works with

  • cursor

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add Yeachan-Heo/oh-my-claudecode --skill maintain-formal-verification-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Maintain Formal Verification Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Maintain Formal Verification Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeachan-heo-maintain-formal-verification-skill/badge)](https://www.skillsdirectory.com/skills/yeachan-heo-maintain-formal-verification-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: maintain-formal-verification-skill
description: "Re-sync an existing formal verification skill after the covered code changed: re-check every assumption, update cited lines, rerun the tool; formally-verified only after a green rerun."
aliases: []
metadata:
  credits:
    verification-maintenance: pstack
    author: Lauren Tan
    url: "https://github.com/cursor/plugins/tree/main/pstack"
    port: pstack-claude
    port-author: Michael Denyer
    port-url: "https://github.com/michael-denyer/pstack-claude"
---

# Maintain Formal Verification Skill

A formal spec that cites lines that no longer exist is stale, and a stale
spec's green is worthless. This skill re-syncs an existing
`verify-formal-*` project skill (created by `create-formal-verification-skill`)
to the code it models.

## When to use

- the modeled protocol, arithmetic, or invariant changed shape
- cited file:line anchors drifted after refactors
- before trusting a green run that predates recent changes to the covered
  code

## Workflow

1. **Inventory the model's bindings**: every cited file:line, every named
   function, every assumption on the skill's assumption list.
2. **Re-check each binding against current code**: does the cited line still
   contain the modeled step? Does the assumption still hold (pid reuse,
   atomicity, integer width, timing)? A binding that no longer matches is
   drift; record it, do not silently absorb it.
3. **Update the model** where drift is real: move citations, adjust steps to
   the new protocol shape, and rewrite the assumption list to match reality.
   The property itself does not weaken — if the new code violates the
   property, that is a finding to report, not a model edit.
4. **Rerun the tool** (`TLC`/`apalache`, `lake build`, `cargo kani`) and
   capture real output.
5. **Update the project skill** in place: new citations, new assumption
   list, same run command — and record the resync through the ledger's
   locked writer (`appendLedgerEntry` and `defaultLedgerPath` from the
   installed package's `dist/features/verification-ledger/index.js`;
   `babysit`'s ledger step demonstrates the exact invocation — never append
   raw rows): `formally-verified` with the rerun
   command as evidence only when the rerun is green; a counterexample during
   resync records `verifier-failed` with the counterexample as evidence and
   is reported before any model change.

## Rules

- A counterexample found during resync is reported before any model change;
  verify whether the code shares the flaw.
- Never mark a resync done with an unrerun tool; the rerun is the resync.
- If more than half the bindings drifted, say so — the model may have been
  modeling an implementation that no longer exists, and regeneration via
  `create-formal-verification-skill` is the honest path.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.