CtrlK
BlogDocsLog inGet started
Tessl Logo

cpp-to-dafny-translator

Translates C++ functions into Dafny for formal verification, modeling pointers, fixed-width integers, and manual memory as Dafny heap objects and bitvectors. Use when verifying a C++ algorithm, when proving absence of overflow or out-of-bounds access, or when building a verified reference for safety-critical C++ code.

Install with Tessl CLI

npx tessl i github:santosomar/general-secure-coding-agent-skills --skill cpp-to-dafny-translator
What are skills?

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SKILL.md
Review
Evals

Discovery

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is an excellent skill description that clearly articulates a specialized capability (C++ to Dafny translation for formal verification) with specific technical details about what gets modeled. The explicit 'Use when...' clause provides three distinct trigger scenarios, and the domain-specific terminology ensures proper skill selection without ambiguity.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: 'Translates C++ functions into Dafny', 'modeling pointers, fixed-width integers, and manual memory as Dafny heap objects and bitvectors'. These are precise technical operations.

3 / 3

Completeness

Clearly answers both what ('Translates C++ functions into Dafny for formal verification, modeling pointers...') AND when ('Use when verifying a C++ algorithm, when proving absence of overflow or out-of-bounds access, or when building a verified reference for safety-critical C++ code').

3 / 3

Trigger Term Quality

Includes natural keywords users would say: 'C++', 'Dafny', 'formal verification', 'overflow', 'out-of-bounds', 'safety-critical', 'verified'. Good coverage of domain-specific terms a user seeking this capability would mention.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive niche combining C++, Dafny, and formal verification. The specific mention of 'heap objects and bitvectors' and verification scenarios makes it unlikely to conflict with general code translation or other verification skills.

3 / 3

Total

12

/

12

Passed

Implementation

100%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is an exemplary skill that efficiently communicates complex C++ to Dafny translation patterns. It makes excellent use of tables for dense information, provides a complete executable example with proper specifications, and clearly delineates what translates versus what doesn't. The delta-based approach referencing the Python translator skill avoids redundancy while the C++-specific content is comprehensive and actionable.

DimensionReasoningScore

Conciseness

The content is lean and efficient, using tables to compress information and avoiding explanations of concepts Claude already knows. Every section adds C++-specific translation knowledge that isn't obvious.

3 / 3

Actionability

Provides fully executable Dafny code with a complete worked example, concrete translation patterns in tables, and specific guidance on modeling choices. The argmin example is copy-paste ready with proper invariants and specifications.

3 / 3

Workflow Clarity

The skill clearly sequences the decision process: decide overflow model upfront, then model pointers, then translate. The 'Do not' section provides explicit validation checkpoints, and the output format ensures structured verification of modeling choices.

3 / 3

Progressive Disclosure

Excellent structure with clear sections (impedance mismatch table, overflow decision, pointer modeling, worked example, limitations, anti-patterns). References to related skills (python-to-dafny-translator, program-to-tlaplus-spec-generator) are one level deep and clearly signaled.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.