extract-code

Convert verified Dafny code into Python or Go.

5|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/nicholls-inc/claude-code-marketplace --skill extract-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-code
Source: https://github.com/nicholls-inc/claude-code-marketplace/tree/main/crosscheck/skills/extract-code
Command: npx skills add https://github.com/nicholls-inc/claude-code-marketplace --skill extract-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill translates verified Dafny programs into Python or Go code, enabling seamless integration of formally verified logic into practical projects.

Core Features & Use Cases

  • Code Translation: Compile Dafny source into either Python or Go, removing runtime boilerplate for clean deployment.
  • Verification Assumption: Assumes Dafny code is pre-verified; facilitates code extraction for further testing or deployment.
  • Use Case: Developers who have verified algorithms in Dafny can quickly generate executable code in their desired language for use in production systems.

Quick Start

Use the extract-code skill to convert your verified Dafny program into Python code ready for integration.

Frequently Asked Questions about extract-code

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

FAQPage Schema
How do I convert verified Dafny code to Python?

You can convert verified Dafny code to Python by using compilation and code-generation techniques that translate Dafny source into executable Python, removing runtime boilerplate for clean integration into production software projects.

Can I extract Dafny programs into Go source code?

Yes, you can extract Dafny programs into Go source code. The code generation process compiles formally verified Dafny logic into Go, facilitating integration of verified algorithms into production systems with type mapping support.

What is Dafny code extraction for production deployment?

Dafny code extraction is the process of compiling formally verified Dafny programs into executable languages like Python or Go, enabling developers to deploy verified algorithms into production environments safely.

Does the Dafny to Python extraction process require pre-verified code?

Yes, the extraction process assumes your Dafny code is already pre-verified. It facilitates code extraction for further testing or deployment rather than performing the formal verification itself.

Are type mappings supported when compiling Dafny to Go?

Yes, type mappings are supported during the compilation of Dafny to Go or Python. This ensures the translated code correctly maps Dafny type structures into the target language equivalents for proper integration.

Can I run post-extraction testing on generated Python code from Dafny?

Yes, post-extraction testing is supported on generated Python or Go code. After compiling your verified Dafny programs, you can test the extracted code to ensure it functions correctly before production deployment.