Registry / arabelatso

arabelatso/skills-4-se/cpp-to-dafny-translator

Translate C/C++ programs to equivalent Dafny code while preserving semantics and ensuring verification. Use when users ask to convert, translate, or port C/C++ code to Dafny, or when they need to formally verify C/C++ algorithms using Dafny's verification capabilities. Handles functions, structs, pointers, arrays, memory management, and ensures the generated Dafny code is well-typed, executable, verifiable, and can successfully run.

Agent skill · version 0.0.0-main.1794322166.g4f38503 · from ArabelaTso/Skills-4-SE

Install

npx yarkr-cli add skill:arabelatso/skills-4-se/cpp-to-dafny-translator

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:arabelatso/skills-4-se/cpp-to-dafny-translator
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:arabelatso/skills-4-se/cpp-to-dafny-translator

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:arabelatso/skills-4-se/cpp-to-dafny-translator

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.