ziros-rust-proof-tool-doctrine
Provides doctrine and tool selection for formal verification of Rust surfaces in ZirOS.
Install
mkdir -p .claude/skills/ziros-rust-proof-tool-doctrine && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15460" && unzip -o skill.zip -d .claude/skills/ziros-rust-proof-tool-doctrine && rm skill.zipInstalls to .claude/skills/ziros-rust-proof-tool-doctrine
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when choosing between RefinedRust, Verus, Kani, Thrust, Flux, Creusot, and Prusti for ZirOS Rust surfaces, or when shaping code so the proof-bearing boundary fits the permanent doctrine.Key capabilities
- →Choose a Rust verification tool
- →Shape code for proof-bearing boundaries
- →Review Rust surfaces for proof-lane fit
- →Classify target for verification
- →Route with decision-tree and evidence
- →Advise on capsule extraction
How it works
This skill guides the selection of Rust verification tools and the structuring of code for proof. It classifies the target, routes through a decision tree, and provides recommendations based on ZirOS doctrine.
Inputs & outputs
When to use ziros-rust-proof-tool-doctrine
- →Choose a Rust verification tool
- →Structure module for proof
- →Check if unsafe Rust is verifiable
- →Integrate formal verification lane
About this skill
ZirOS Rust Proof Tool Doctrine
Use this skill when the task is to choose a Rust verification tool, shape a new boundary so it is proofable, review a Rust surface for proof-lane fit, or decide whether evidence can honestly affect ZirOS truth surfaces.
Start Here
Read these first, in order:
/Users/sicarii/Desktop/ZirOS/AGENTS.md/Users/sicarii/Desktop/ZirOS/docs/CANONICAL_TRUTH.md/Users/sicarii/Desktop/ZirOS/docs/FORMAL_TOOLCHAIN_INTEGRATION.md/Users/sicarii/Desktop/ZirOS/docs/SECURITY.md/Users/sicarii/Desktop/ZirOS/zkf-ir-spec/src/verification.rs/Users/sicarii/Desktop/ZirOS/formal/refinedrust/README.md/Users/sicarii/Desktop/ZirOS/scripts/run_refinedrust_proofs.sh/Users/sicarii/Desktop/ZirOS/scripts/run_thrust_checks.sh
Then use:
references/tool-matrix.mdreferences/decision-tree-and-evidence.md
Trigger Conditions
Use this skill when a request mentions any of:
RefinedRustVerusKaniThrustFluxCreusotPrusti- "which proof tool"
- "which verifier"
- "unsafe Rust verification"
- "refinement type"
- "can this count in the ledger"
- "how should this module be structured for proof"
Core Doctrine
- RefinedRust is the default development lane for unsafe, FFI, raw-pointer, and layout-sensitive Rust.
- Verus is the default theorem lane for safe proof-core logic and shell contracts.
- Kani and Thrust are support lanes only.
- Flux, Creusot, and Prusti are comparison-only in this checkout.
- No tool in this skill proves protocol cryptography by itself.
Workflow
- Classify the target:
unsafe_or_layout_capsulesafe_proof_corebounded_regressioncomparison_onlyprotocol_proof
- Route with
references/decision-tree-and-evidence.md. - Check whether the requested claim is counted, bounded, support-only, or just comparative.
- Refuse claim inflation. Do not let bounded or comparison evidence become a ledger upgrade.
- If the target is too broad for RefinedRust, recommend capsule extraction.
Output Template
Answer in this shape:
primary lanesecondary lanewhy this fitswhy the other lanes do not fitevidence requiredcapsule extraction advicered flags
Hard Rules
- Do not count Kani.
- Do not count Thrust.
- Do not present Flux, Creusot, or Prusti as admitted assurance lanes.
- Do not describe RefinedRust translation output without a passing
dune buildas a counted theorem. - Do not let unsafe or layout-sensitive code stay broad when it can be split into a narrow proof-bearing capsule.
- Do not use any tool here to claim Groth16, FRI, Nova, or HyperNova protocol soundness.
Reporting Rules
- Lead with the lane recommendation.
- Be explicit about whether the result could affect
mechanized_total. - Name the concrete evidence path and runner command when applicable.
- If recommending RefinedRust, explain where to cut the capsule boundary.
- If rejecting a tool, say why in terms of ZirOS doctrine rather than generic preference.
When not to use it
- →When the task is not related to Rust verification tools
- →When the task is not about shaping code for proof
- →When the task is not about reviewing Rust surfaces for proof-lane fit
Limitations
- →RefinedRust is the default for unsafe, FFI, raw-pointer, and layout-sensitive Rust
- →Verus is the default for safe proof-core logic and shell contracts
- →Kani and Thrust are support lanes only
How it compares
This skill provides a structured doctrine for choosing and applying Rust proof tools within the ZirOS project, ensuring consistency and adherence to specific verification lanes, unlike an ad-hoc tool selection process.
Compared to similar skills
ziros-rust-proof-tool-doctrine side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ziros-rust-proof-tool-doctrine (this skill) | 0 | 4mo | No flags | Advanced |
| harness-boundary | 0 | 3mo | No flags | Advanced |
| deepwiki-rs | 25 | 9mo | Review | Intermediate |
| arm-cortex-expert | 29 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
harness-boundary
zkp442910864
Harness 工程边界约束与变更评估。Use when: 评估代码变更影响范围、确认安全边界、检查工程规范合规性、审查变更风险等级。
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
arm-cortex-expert
sickn33
Senior embedded software engineer specializing in firmware and driver development for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD). Decades of experience writing reliable, optimized, and maintainable embedded code with deep expertise in memory barriers, DMA/cache coherency, interrupt-driven I/O, and peripheral drivers.
blockchain-developer
sickn33
Build production-ready Web3 applications, smart contracts, and decentralized systems. Implements DeFi protocols, NFT platforms, DAOs, and enterprise blockchain integrations. Use PROACTIVELY for smart contracts, Web3 apps, DeFi protocols, or blockchain infrastructure.
memory-safety-patterns
sickn33
Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.
port-c-module
RediSearch
Guide for porting a C module to Rust