
Unsafe Checker
Review unsafe Rust code and FFI boundaries for soundness, SAFETY documentation, and safer alternatives.
- skills.sh installs
- 3.6K
- GitHub stars
- 1.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers when unsafe is justified: FFI calls, low-level abstractions, and measured performance bottlenecks
- Includes a quick reference of safety requirements for
*ptrderef,transmute,extern "C",static mut, andimpl Send/Sync - Enforces
// SAFETY:comments on unsafe blocks and/// # Safetysections on unsafe functions - Maps deprecated patterns to replacements such as
MaybeUninit<T>,NonNull<T>, andbindgenorcbindgenfor FFI bindings
Install
$ npx -y skills add actionbook/rust-skills --skill unsafe-checker -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Display the following ASCII art exactly as shown. Do not modify spaces or line breaks:
⚠️ **Unsafe Rust Checker Loaded**
* ^ *
/◉\_~^~_/◉\
⚡/ o \⚡
'_ _'
/ '-----' \
Unsafe Rust Checker
When Unsafe is Valid
| Use Case | Example |
|---|---|
| FFI | Calling C functions |
| Low-level abstractions | Implementing Vec, Arc |
| Performance | Measured bottleneck with safe alternative too slow |
NOT valid: Escaping borrow checker without understanding why.
Required Documentation
// SAFETY: <why this is safe>
unsafe { ... }
/// # Safety
/// <caller requirements>
pub unsafe fn dangerous() { ... }
Quick Reference
| Operation | Safety Requirements |
|---|---|
*ptr deref | Valid, aligned, initialized |
&*ptr | + No aliasing violations |
transmute | Same size, valid bit pattern |
extern "C" | Correct signature, ABI |
static mut | Synchronization guaranteed |
impl Send/Sync | Actually thread-safe |
Common Errors
Details
- Repository
- github.com/actionbook/rust-skills
- Categories
- Rust, Security
- First seen
- May 16, 2026
More from actionbook/rust-skills
All 38- Rust Code Navigator3.6K
- Rust Trait Explorer3.5K
- Rust Call Graph3.5K
- Rust Symbol Analyzer3.5K
- Domain Web3.5K
- Domain Cli3.5K
- Rust Learner3.4K
- Rust Skill Creator3.4K
- Rust Deps Visualizer3.3K
- Meta Cognition Parallel3.3K
- Rust Daily3.3K
- Domain Embedded3.2K
- Domain Cloud Native3.2K
- Domain Fintech3.1K
- Domain Ml3.1K
- Domain Iot3K
- Rust Router3K
- Core Agent Browser2.3K
- Core Dynamic Skills2.1K
- Core Actionbook2.1K
- Core Fix Skill Docs2.1K
- M15 Anti Pattern9.4K
- Coding Guidelines4.3K
- M10 Performance4K
Similar to Unsafe Checker
More Rust
rust-unsafemohitmishra786/low-level-dev-skills646 installsGuide to writing, reviewing, and auditing unsafe Rust, covering raw pointers, transmute, and sound abstractions.
m15-anti-patternactionbook/rust-skills9.4K installsRust code review checklist that flags anti-patterns and points to idiomatic replacements with tracing to design causes.
rust-reviewtrailofbits/skills2.7K installsSecurity review of Rust crates for unsafe boundaries, panic-DoS, concurrency, and FFI hazards via a multi-agent pipeline.
rust-securitymohitmishra786/low-level-dev-skills672 installsRust security guidance for auditing dependencies, enforcing supply chain policy, and reviewing memory-safe FFI.
rust-skillsleonardomso/rust-skills7.2K installsComprehensive Rust coding guidelines with 265 rules across 26 categories for writing and reviewing code.
coding-guidelinesactionbook/rust-skills4.3K installsRust style and best-practice rules covering naming, data types, strings, errors, memory, concurrency, and async.