Formal Specification Driven Development

Generate Idris2 specifications and translate verified designs to Python, Rust, or TypeScript.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/twoLoop-40/claude-skills --skill formal-specification-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Formal Specification Driven Development
Source: https://github.com/twoLoop-40/claude-skills/tree/main/formal-spec-driven-dev
Command: npx skills add https://github.com/twoLoop-40/claude-skills --skill formal-specification-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides you through implementing code with formal verification using Idris2. It creates precise specifications, compiles and verifies them, and then translates the verified design into a target language (Python, Rust, or TypeScript).

Core Features & Use Cases

  • Specification-first workflow: Draft Idris2 specs with dependent types and proofs.
  • Automatic verification: Compile specs and ensure totality and correctness.
  • Target-language implementation: Translate the verified spec into your chosen language with tests and documentation.
  • Traceability: Link each implementation back to its Idris2 spec for auditability.

Quick Start

Describe a problem you want solved with formal verification, and specify your preferred target language (Python, Rust, or TypeScript). The Skill will generate an Idris2 spec under .specs, attempt automatic compilation, and implement the solution in your language of choice.

Frequently Asked Questions about Formal Specification Driven Development

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

FAQPage Schema
How do I implement code with formal verification using Idris2?

Formal verification with Idris2 uses dependent types and proofs to create precise specifications, compile them for correctness, then translate the verified design into Python, Rust, or TypeScript. Describe your problem, choose a target language, and the Skill generates specs in .specs/, verifies totality, and produces implementation templates with tests.

Can I translate Idris2 specifications to Python, Rust, or TypeScript?

Yes. After writing and verifying your Idris2 spec, this Skill automatically translates the verified design to your chosen target language—Python, Rust, or TypeScript—with generated implementation templates, tests, and documentation linked back to the formal spec.

What's the best way to ensure code correctness before implementation?

Specification-first development with dependent types catches errors at the specification stage. Write formal Idris2 specs with proofs, compile to verify totality and correctness, then implement in your target language knowing the design is formally verified.

Do I need to learn Idris2 to use formal specification-driven development?

The Skill guides Idris2 specification creation for you, but understanding dependent types and proof concepts helps. It handles automatic compilation, verification, and cross-language translation, making formal methods accessible without deep Idris2 expertise.

How do I trace implementation back to formal specifications?

The Skill maintains traceability by linking each implementation artifact—functions, tests, documentation—directly to its Idris2 spec. This creates an auditable chain from formal specification through verified compilation to target-language code.

What happens if my Idris2 specification doesn't compile or verify?

Automatic compilation catches totality violations and type errors in your spec. The Skill reports verification failures, helping you refine the specification until it compiles successfully, ensuring only correct designs reach implementation.