
Description
Unsafe checker is an agent skill for reviewing unsafe Rust code and foreign function interface work. It is triggered by the parts of Rust that bypass the compiler's safety checks, such as raw pointers, extern blocks, transmute, unions, repr C layouts, libc calls and the std ffi module. The skill is meant to be used when you are writing or reviewing this kind of code, and it has a section on when unsafe is valid, so the review can separate justified uses from ones that should be rewritten in safe Rust. It is part of the actionbook rust-skills collection and works as guidance for the agent during a review. The page is mostly a set of triggers and a short heading, so the review criteria are only as detailed as the skill's own instructions. Check the skill's full text before relying on it for a security-sensitive codebase.…
Highlights
- Review of unsafe Rust blocks
- FFI and extern block checks
- Raw pointer and transmute triggers
- Guidance on when unsafe is valid
- Covers repr C and union layouts
Ratings & Reviews
No ratings yet
Be the first to rate unsafe-checker.
People also visit
openai/security-best-practices
Review code for language-specific security vulnerabilities
unsafe-checker FAQ
What does unsafe-checker review?
Unsafe Rust code and foreign function interface work, including raw pointers, extern blocks, transmute and unions.
How do I install it?
Run npx skills add https://github.com/actionbook/rust-skills --skill unsafe-checker.
Does it say when unsafe is justified?
The skill includes a section on when unsafe is valid, so it can separate justified uses from ones that should be safe Rust.
Has the skill been security audited?
Yes. Gen Agent Trust Hub shows Pass, Socket shows Pass and Snyk shows Pass.
What are the best unsafe-checker alternatives?
Popular alternatives to unsafe-checker include rust-review, rust-engineer and c-review. See all unsafe-checker alternatives











