maintain-formal-verification-skill

Reconcile formal verification models with code changes to detect specification drift or actual bugs.

15.8k|1.6k|Updated Jan 23, 2026
Ready to run
npx skills add https://github.com/cursor/plugins --skill maintain-formal-verification-skill-cursor
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: maintain-formal-verification-skill
Source: https://github.com/cursor/plugins/tree/main/harness/pstack/claude-code/skills/maintain-formal-verification-skill
Command: npx skills add https://github.com/cursor/plugins --skill maintain-formal-verification-skill-cursor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When code changes after formal verification, the old verification can keep passing while describing stale code—masking both specification drift and genuine bugs. This Skill reconnects verification to reality by auditing changes, updating models and properties, and determining whether failures indicate broken promises or broken code. ## Core Features & Use Cases - Drift Detection: Find commits that touched verified code and identify which require model updates vs. represent intentional promise changes. - Outcome Classification: Label each verification result as in-sync, updated, bug, or blocked with specific reasoning. - Verification Maintenance: Update harnesses, properties, and sync commits after merges and refactors without weakening specifications. - Use Case: After a merge touches a lock implementation, run this Skill to confirm the mutual exclusion property still holds on the new code, or expose that the merge introduced a race condition. ## Quick Start Provide the verify skill for your project, and ask the Skill to audit all formal checks against current code, report which verifications stayed valid and which exposed bugs.

Frequently Asked Questions about maintain-formal-verification-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I know if a verification failure is drift or a real bug?▼

Replay the counterexample step-by-step against the current code. If every step is possible in the code, it is a bug. If a step cannot happen, the verification is stale and needs updating. Always check the code path first before reporting a finding.

What should I do when a property fails after updating the verification?▼

Do not weaken the property to make it pass. Report the failure as a bug with the counterexample, the commit that introduced it, and the harm in one sentence. Optionally add a cheap test or reproduction against real code as evidence.

When should I update the property versus the model or harness?▼

Update the property only when evidence in the change shows the promise changed on purpose: updated doc comments, new tests, changelog entries, or commit messages. Update the model or harness when code shape changed but the promise remained the same.

How do I handle verification checks that are blocked?▼

State exactly why the check could not run or be brought back in line. Do not move the sync commit for a blocked check. Update the verify skill with the reason and current state so the next agent understands the blocker.

What code changes require updating the verification?▼

Update when a step was split into multiple actions, branches were added or removed, a check moved location, new code paths reach guarded state, or values now have different ranges. Formatting and comments do not require updates.