Abstract Invariant Generator

Infers loop invariants and pre/postconditions for formal verification in Dafny or Coq.

Test report

Verdict
In test queue
Tested
Environment
Pending

In the test queue — machine-screened (validator 85/100, 136★ repo), full install/trigger/output test scheduled.

What Abstract Invariant Generator does

Uses abstract interpretation to automatically infer loop invariants, function preconditions, and postconditions for formal verification. Generates invariants that capture program behavior and support correctness proofs in Dafny, Isabelle, Coq, and other verification systems. Use when adding formal specifications to code, generating verification conditions, inferring contracts for functions, or…

How to install Abstract Invariant Generator

git clone https://github.com/ArabelaTso/Skills-4-SE
cp -r Skills-4-SE/skills/abstract-invariant-generator ~/.claude/skills/abstract-invariant-generator

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Abstract Invariant Generator

  • /abstract-invariant-generator Infers loop invariants and pre/postconditions for formal verification in Dafny or Coq.

It also activates on plain-language prompts like these:

  • Generate loop invariants for this Dafny function
  • Infer preconditions and postconditions for this method
  • Add formal specifications to support a correctness proof

Frequently asked questions

Is the Abstract Invariant Generator skill free?
Yes. The skill itself is free from ArabelaTso/Skills-4-SE. SkillProof publishes the install command and an independent test verdict at no cost.
Does Abstract Invariant Generator work with Claude Code?
It is in our test queue — we run every skill on real work before issuing a verdict, and this one is scheduled.
How do I install Abstract Invariant Generator?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Abstract Invariant Generator with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.