generate-code

Generate TypeScript and Python scaffolds from VDM-SL specifications.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/kotaroyamame/formal-agent-contracts --skill generate-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-code
Source: https://github.com/kotaroyamame/formal-agent-contracts/tree/main/skills/generate-code
Command: npx skills add https://github.com/kotaroyamame/formal-agent-contracts --skill generate-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of TypeScript and Python scaffolds from VDM-SL specifications, eliminating boilerplate work and ensuring consistent runtime checks across languages.

Core Features & Use Cases

  • Generate TypeScript or Python implementation scaffolds from VDM-SL specs, including types, operations, and runtime verification stubs.
  • Output structure places generated code in a predictable generated/ directory alongside the original spec, with ready-to-run boilerplate.

Quick Start

Run the generator on a VDM-SL specification to create the generated/ scaffolds alongside the spec.

Frequently Asked Questions about generate-code

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

FAQPage Schema
How do I generate TypeScript and Python scaffolds from VDM-SL specifications?

Run the generator directly on your VDM-SL specification file. It automatically creates a generated/ directory beside the spec, containing ready-to-run TypeScript and Python boilerplate, type definitions, and runtime verification stubs.

What does VDM-SL to TypeScript conversion include for contract-driven development?

VDM-SL to TypeScript conversion includes generating type definitions, operations, and runtime verification stubs. This output ensures consistent runtime contract checks across languages, accelerating contract-driven development by eliminating manual boilerplate work.

Can I generate Python runtime verification stubs from VDM-SL specs automatically?

Yes, you can automatically generate Python runtime verification stubs from VDM-SL specs. The Skill outputs runnable boilerplate and type definitions alongside the original spec, applying official conversion rules to ensure consistency across TypeScript and Python.

Does VDM-SL scaffold generation support custom output directories?

VDM-SL scaffold generation places output in a predictable generated/ directory alongside the original spec. It does not support custom output directories, but maintains a consistent structure for ready-to-run boilerplate and optional references for future expansion.

What's the best way to maintain type consistency across TypeScript and Python from VDM-SL?

The best way to maintain type consistency across TypeScript and Python from VDM-SL is to generate scaffolds using official conversion rules. This eliminates boilerplate work and ensures consistent runtime contract checks across both languages from a single spec source.

Are there limitations when generating code from VDM-SL specifications for multiple languages?

Limitations when generating code from VDM-SL specifications include support for only TypeScript and Python outputs, with no other languages supported. Additionally, output is fixed to a generated/ directory, and references/assets are only supported for future expansion.