verified-spec-code-mapper

verified-spec-code-mapper is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 94 tokens per session (3,505 once invoked), scanned A, original, Apache-2.0.

A traceability method that connects formal requirements, such as input rules and expected outputs, to the code and proofs that implement them. Formal verification uses mathematical proofs to check that software satisfies those requirements.

In plain words
What is it for?
Use it to audit verified software, map specifications to implementations, and document the proof evidence behind correctness claims.
Why use it?
It can be hard to show which code proves which requirement, especially in verified systems. This creates an evidence-based map for audits, documentation, and reproducibility.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit verified software, map specifications to implementations, and document the proof evidence behind correctness claims.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arabelatso/skills-4-se/verified-spec-code-mapper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ArabelaTso/Skills-4-SE --skill verified-spec-code-mapper
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for verified-spec-code-mapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/verified-spec-code-mapper.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/verified-spec-code-mapper)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/verified-spec-code-mapper"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/verified-spec-code-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 418
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.03505
Opus 5 $0.00047 $0.01752
Sonnet 5 $0.00019 $0.00701
Haiku 4.5 $0.00009 $0.00350

Measured 5d ago against content hash 920f39fb9f08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

verified-spec-code-mapper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/verified-spec-code-mapper/SKILL.md · 491 lines

How it starts

The opening of the file, as written. The whole thing — 491 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Verified Spec-Code Mapper

Overview

Establish explicit, evidence-based traceability between formal specifications and verified code components. Generate structured reports that map each specification to its implementation and correctness proofs, supporting verification auditing, documentation, and reproducibility.

Mapping Workflow

Step 1: Identify Specifications

Locate all formal specifications in the codebase:

  1. Preconditions:

    • Coq: forall ... -> P -> ... (hypothesis before conclusion)
    • Dafny: requires clauses
    • Isabelle: assumes clauses
    • Look for: Input constraints, safety conditions
  2. Postconditions:

    • Coq: ... -> Q (conclusion of theorem)
    • Dafny: ensures clauses
    • Isabelle: shows clauses
    • Look for: Output guarantees, correctness properties
  3. Loop Invariants:

    • Dafny: invariant clauses in loops
    • Coq: Lemmas about recursive functions
    • Look for: Properties maintained across iterations
  4. Class/Type Invariants:

    • Dafny: predicate Valid() methods
    • Coq: Well-formedness predicates
    • Look for: Structural constraints, consistency properties
  5. Functional Correctness:

    • Theorems stating what function computes
    • Equivalence to specification
    • Look for: Correctness lemmas, specification theorems

Step 2: Map to Code Components

For each specification, identify corresponding code:

  1. Direct mapping:

    • Specification mentions function/method name
    • Theorem statement references definition
    • Example: Lemma factorial_positive : forall n, factorial n >= 1 → Maps to factorial function
  2. Contextual mapping:

    • Specification in same file/module
    • Comments linking spec to code
    • Naming conventions (e.g., sort_correctsort)
  3. Structural mapping:

    • Preconditions → Function parameters
    • Postconditions → Return values
    • Invariants → Loop bodies or class fields
  4. Record locations:

    • File path
    • Line numbers
    • Function/method/class names

Read the full file on GitHub · 491 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 491 lines · 94 tokens per session scan A 920f39fb9f08

Subscribe to this mod's changes

verified-spec-code-mapper is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (251 stars, last pushed 18d ago), licensed Apache-2.0. It adds 94 tokens to every session and 3,505 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 56 tokens

clinical-reports

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

K-Dense-AI/scientific-agent-skills · 55 tokens

pptx-posters

Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

sync-submission

Audit SSOT-to-submission drift and create journal submission manifests from canonical manuscript artifacts.

Aperivue/medsci-skills · 21 tokens

latex-empirical-tables

Set up, format, fix, and clean up LaTeX regression and estimation tables in empirical economics or finance papers. Use when (a) creating a .tex, results.tex, main.tex, or preamble to display regression or estimation output from Python (pyfixest), Stata, or R — including any mention of estout, esttab, estauto, estwide…

kennethkhoocy/applied-micro-skills · 240 tokens

latex-to-word

Convert between LaTeX and Microsoft Word for academic manuscripts in either direction, and assemble .tex from mixed sources. Fires on: converting .tex/LaTeX to Word/.docx ("tex to docx", "latex to word", "tex2docx", "convert to word", "pandoc convert"); converting .docx manuscripts to LaTeX for editing and back…

kennethkhoocy/applied-micro-skills · 228 tokens