frama-c-proofreader

frama-c-proofreader is a skill for Codex from sysprog21/frama-c-mcp. It costs 82 tokens per session (642 once invoked), scanned A, original, MIT.

A verification workflow for C programs with ACSL annotations, which are formal statements describing what code should do. It uses Frama-C tools to check those statements through static analysis and, when available, runtime checks.

In plain words
What is it for?
Use it to check C contracts, investigate analysis alarms, inspect proof goals, test proposed annotations, and explain what a formal proof does or does not establish.
Why use it?
It separates proven properties, reported warnings, and tests on particular executions, so developers do not mistake one kind of evidence for another.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to check C contracts, investigate analysis alarms, inspect proof goals, test proposed annotations, and explain what a formal proof does or does not establish.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sysprog21/frama-c-mcp/frama-c-proofreader
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 sysprog21/frama-c-mcp --skill frama-c-proofreader
Clone the repo
git clone --depth 1 https://github.com/sysprog21/frama-c-mcp

Made for: 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 frama-c-proofreader

README.md
[![agentmods](https://agentmods.dev/badge/skills/sysprog21/frama-c-mcp/frama-c-proofreader/github.svg)](https://agentmods.dev/skills/sysprog21/frama-c-mcp/frama-c-proofreader)
Your own site
<a href="https://agentmods.dev/skills/sysprog21/frama-c-mcp/frama-c-proofreader"><img src="https://agentmods.dev/badge/skills/sysprog21/frama-c-mcp/frama-c-proofreader/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frama-c-proofreader

Your own site · 80×15
<a href="https://agentmods.dev/skills/sysprog21/frama-c-mcp/frama-c-proofreader"><img src="https://agentmods.dev/badge/skills/sysprog21/frama-c-mcp/frama-c-proofreader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 642 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 pass 7 Sept 2026
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.00082 $0.00642
Opus 5.5 $0.00033 $0.00257
Sonnet 5.5 $0.00016 $0.00128
Haiku 4.5 $0.00008 $0.00064

Measured 1mo ago against content hash 0bdf2c277dbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frama-c-proofreader 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/verify.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/frama-c-proofreader/SKILL.md · 63 lines

How it starts

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

Frama-C Proofreader

Workflow

Prefer the MCP server when it is available. Start with the install check and the shortest useful call:

self_check {}
reload_project {files, rte: true}
check {function?, timeout?}

If check reports alarms or non-valid goals, inspect the concrete payload before changing code:

get_wp_goals {want: ["alarms"], function?, status?}
get_wp_goals {want: ["investigation"], marker, depth}
get_wp_goals {function, status?}
context {function, want: ["current_annotations", "function_ast"]}

investigation takes the property marker off an alarm or goal row. A check payload is not proved while incomplete[] has any entry; read each entry's guidance before treating a valid goal as evidence.

Validate candidate ACSL with dry-run injection first:

inject_all_annotations {function, dry_run: true, annotations: [{kind, acsl, ...}]}
inject_all_annotations {function, annotations: [{kind, acsl, ...}]}
run_wp {functions: [function]}

Use run_e_acsl only as runtime evidence for concrete executions. If it is unavailable or fails to compile instrumentation, report that runtime checking was unavailable.

Read references/mcp-workflow.md for the full MCP call order, references/wp-output.md when interpreting WP goals, and references/e-acsl-output.md before making runtime-check claims.

Reporting

Always separate these outcomes:

  • Environment failure: tool missing, prover not configured, instrumentation failed.
  • Static proof gap: WP did not prove a goal; this is not automatically a bug.
  • Runtime violation: E-ACSL found a violation on an executed path.
  • Proven under assumptions: WP proved the generated goals for the ACSL and RTE configuration that actually ran.

Do not claim proof without tool output. Report exact goal names, proof counts, and whether rte: true or -wp-rte was used.

Before calling a function verified, run check {files, smoke: true} and confirm there is no SMOKE_TEST_FAILED: a contradictory requires or dead code makes every goal in scope provable, and only smoke tests notice.

Read the full file on GitHub · 63 lines

Files

What ships with it

8 files 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. 1mo ago Changed · +5 lines 0bdf2c277dbc
  2. 1mo ago First seen · 58 lines · 82 tokens per session scan A 13eef9289b7b

Subscribe to this mod's changes

frama-c-proofreader is a skill published in the GitHub repository sysprog21/frama-c-mcp (35 stars, last pushed 4d ago), licensed MIT. It adds 82 tokens to every session and 642 once invoked, about $0.0003 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.

JunMystery/Agent-Guidance-Python · 48 tokens

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.

affaan-m/ECC · 48 tokens

qt-cpp-review

Invoke when the user asks to review, check, audit, or look over Qt6 C++ code — or suggest before committing. Runs deterministic linting (60+ rules) then six parallel deep- analysis agents covering model contracts, ownership, threading, API correctness, error handling, and performance. Reports only high-confidence…

mavlink/qgroundcontrol · 86 tokens

ue-mcp-native-cpp

Use when writing or modifying native C++ UCLASSes in an Unreal project via ue-mcp. Covers createcppclass → writecppfile → livecodingcompile loop, when to use build vs Live Coding, and the addmoduledependency workflow. Pulls in any time the user asks to write a new native class, add a UPROPERTY, or implement a…

db-lyon/ue-mcp · 83 tokens

python-design-pattern

Python design patterns and anti-patterns. Use when designing new components, refactoring, reviewing code for common mistakes, choosing abstractions, or evaluating pull requests for structural issues like tight coupling, leaking internal types, or error handling problems.

AI-Riksarkivet/ra-mcp · 51 tokens

qsyn-compilation

A C++ toolkit for transforming and optimizing quantum circuits, including representations based on ZX diagrams and tensors. It also provides circuit verification and a command-line interface.

xi-zhao/OpenQuantum · 47 tokens