formal-verification
CommunityProve code correctness, eliminate bugs early.
Software Engineering#typescript#zod#formal verification#effect-ts#reliability#property testing#contracts
Authoraitchwhy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill ensures software reliability by formally proving the correctness of functions and systems, drastically reducing the likelihood of bugs, unexpected behavior, and costly runtime failures.
Core Features & Use Cases
- Contract-Aware Functions: Enforces preconditions (what must be true before), postconditions (what must be true after), and invariants (what must always be true) using Effect-TS and Zod for robust logic.
- Property-Based Testing: Utilizes
fast-checkto generate diverse inputs and verify fundamental properties, automatically covering edge cases that traditional unit tests might miss. - Refinement Types: Leverages Zod to encode complex constraints directly into TypeScript types, making illegal states unrepresentable at the type level.
- Use Case: A developer is implementing a critical financial transaction function. They can use this skill to define formal contracts for the function, ensuring that balances are always consistent and all business rules are met, then verify these contracts with property-based tests.
Quick Start
Generate a formal contract for the 'transferFunds' function in 'src/services/account.ts', including preconditions for sufficient balance and a postcondition for total balance invariance.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: formal-verification Download link: https://github.com/aitchwhy/dotfiles/archive/main.zip#formal-verification Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.