What problem does it solve?
This Skill enforces a strict policy on the use of unsafe code in Rust projects, ensuring that every instance of unsafe is necessary for performance, rigorously audited for safety, and comprehensively tested.
Core Features & Use Cases
- Safety Invariant Auditing: Verifies that the documented invariants making
unsafe blocks safe actually hold true.
- Performance Justification: Demands benchmark and Assembly (ASM) proof that
unsafe provides a measurable performance benefit over safe alternatives.
- Test Coverage Verification: Ensures every
unsafe block is covered by Miri, Kani, fuzzing, and property-based tests.
- Use Case: Before merging a pull request that introduces a new
unsafe block, run this Skill to automatically audit its safety, performance justification, and test coverage, preventing potential bugs and security vulnerabilities.
Quick Start
Run a comprehensive audit of all unsafe code within the current project.