kverus-migrate

kverus-migrate is a skill for Codex from asterinas/KVerus. It costs 38 tokens per session (1,338 once invoked), scanned A, original, MIT.

A migration helper for adapting one Rust source file to Verus, a tool that checks whether Rust code meets formal rules. It makes only the changes needed for Verus to accept the file and a specified verification command to run.

In plain words
What is it for?
Use it to migrate a specific Rust file, preserve its structure, and create a starting point for later proofs. You provide the file path and the command that runs Verus.
Why use it?
It avoids broad rewrites when preparing existing Rust code for formal checking. It also makes the success condition explicit: the given verification command must pass.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to migrate a specific Rust file, preserve its structure, and create a starting point for later proofs. You provide the file path and the command that runs Verus.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asterinas/kverus/kverus-migrate
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 asterinas/KVerus --skill kverus-migrate
Clone the repo
git clone --depth 1 https://github.com/asterinas/KVerus

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 kverus-migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/asterinas/kverus/kverus-migrate.svg)](https://agentmods.dev/skills/asterinas/kverus/kverus-migrate)
Your own site
<a href="https://agentmods.dev/skills/asterinas/kverus/kverus-migrate"><img src="https://agentmods.dev/badge/skills/asterinas/kverus/kverus-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,338 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.00038 $0.01338
Opus 5 $0.00019 $0.00669
Sonnet 5 $0.00008 $0.00268
Haiku 4.5 $0.00004 $0.00134

Measured 8d ago against content hash 7f53e93b294c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kverus-migrate 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 8d 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/kverus-migrate/SKILL.md · 220 lines

How it starts

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

Convert Rust code into minimally modified Verus-compatible code for one explicit target file and verification command.

Preferred invocation:

$kverus-migrate target=path/to/file.rs verify="<verification command>"

If either target or verify is missing, ask for the missing value and stop.

Shared Verus References

If migration requires Verus syntax, modes, ghost/tracked values, atomic ghost code, loop invariants, or tokenized state-machine rules, read the relevant reference under ../kverus-common/references/ before editing.

Objective

Convert the Rust code in target into Verus-compatible code with the smallest possible set of edits such that:

  1. the code is syntactically accepted by Verus
  2. the verification command succeeds
  3. the original source structure is preserved as much as possible
  4. the result is suitable as a future proof-ready baseline, even if it is not fully proved now

The goal is not to fully verify semantic correctness. The goal is only to make the code pass at the syntax, compatibility, and front-end acceptance level.

Required Workflow

Before making large edits:

  1. inspect the target code and its immediate dependencies
  2. make a short plan
  3. edit incrementally
  4. run the verification command after meaningful changes
  5. use the error messages to guide the next minimal repair step

Avoid broad rewrites up front.

Hard Constraints

A. In-place edits only

Edit the code at the original location whenever possible.

Do not comment out an entire function, impl, or module and rewrite a replacement elsewhere if a local replacement is sufficient.

B. Preserve original Rust code locally

For each modified or unsupported construct, preserve the original Rust code as a nearby comment at the same location whenever feasible.

Preferred style examples:

impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G>
// let lock = self.lock.fetch_add(READER, Acquire);
let lock = ...

C. No fake placeholders

Read the full file on GitHub · 220 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. 8d ago First seen · 220 lines · 38 tokens per session scan A 7f53e93b294c

Subscribe to this mod's changes

kverus-migrate is a skill published in the GitHub repository asterinas/KVerus (23 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 1,338 once invoked, about $0.0002 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-08-30.