quint-spec

Develop formal Quint specifications and verify them with Apalache.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/zmanian/quint-spec-skill --skill quint-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quint-spec
Source: https://github.com/zmanian/quint-spec-skill/tree/main/skills/quint-spec
Command: npx skills add https://github.com/zmanian/quint-spec-skill --skill quint-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of building formal specifications in Quint, a language designed for proving the correctness of complex systems like DeFi protocols, cross-chain communication, and intent-based architectures. It guides users through a rigorous workflow to ensure protocol logic is sound and verifiable.

Core Features & Use Cases

  • Formal Specification Development: Guides users through a 7-phase workflow for creating Quint specifications, covering protocol analysis, domain modeling, state definition, action implementation, property definition, testing, and verification.
  • Protocol Verification: Enables formal verification of safety and liveness properties using model checking with Apalache.
  • Use Case: A developer wants to formally prove that a new AMM design maintains its constant product invariant under all conditions. They can use this Skill to model the AMM in Quint and verify the invariant using Apalache.

Quick Start

Use the quint-spec skill to write a formal specification for the provided protocol description.

Frequently Asked Questions about quint-spec

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

FAQPage Schema
How do I formally verify a smart contract protocol specification?

To formally verify a smart contract protocol specification, you can model the system using Quint and validate its safety and liveness properties through model checking with the Apalache checker. This ensures protocol logic remains sound under all conditions.

What is the workflow for building formal Quint specifications for DeFi protocols?

Building formal Quint specifications for DeFi protocols involves a structured 7-phase workflow: protocol analysis, domain modeling with sum types, state space definition, action implementation, property definition, testing, and final verification using Apalache.

Can I use model checking to prove invariants for cross-chain interoperability systems?

Yes, you can use model checking to prove invariants for cross-chain interoperability systems by defining state spaces and implementing guard-update patterns in Quint, then verifying temporal logic properties and invariants with the Apalache model checker.

Does formal verification with Quint require defining state spaces and action guards?

Yes, formal verification with Quint requires defining state spaces and action guards. The process uses guard-update patterns for action implementation and domain modeling with records and sum types to accurately represent complex decentralized system logic.

What are the limitations of using the Apalache model checker for protocol verification?

The Apalache model checker verifies formally specified Quint properties like invariants and temporal logic, but it is limited by state space explosion inherent in complex decentralized systems, requiring careful domain modeling and state definition to ensure effective verification.