unsafe-checker
๐ฏSkillfrom actionbook/rust-skills
Identifies and reviews unsafe Rust code patterns, highlighting potential memory safety risks and FFI complexities.
Part of
actionbook/rust-skills(35 items)
Installation
npx skills add ZhangHanDong/rust-skillscargo install coworkgit clone https://github.com/ZhangHanDong/rust-skills.git/plugin marketplace add ZhangHanDong/rust-skillsSkill Details
"CRITICAL: Use for unsafe Rust code review and FFI. Triggers on: unsafe, raw pointer, FFI, extern, transmute, *mut, *const, union, #[repr(C)], libc, std::ffi, MaybeUninit, NonNull, SAFETY comment, soundness, undefined behavior, UB, safe wrapper, memory layout, bindgen, cbindgen, CString, CStr, ๅฎๅ จๆฝ่ฑก, ่ฃธๆ้, ๅค้จๅฝๆฐๆฅๅฃ, ๅ ๅญๅธๅฑ, ไธๅฎๅ จไปฃ็ , FFI ็ปๅฎ, ๆชๅฎไน่กไธบ"
More from this repository10
Comprehensive Rust development assistant with meta-question routing, coding guidelines, version queries, and ecosystem support
Provides comprehensive Rust coding guidelines covering naming conventions, best practices, error handling, memory management, concurrency, and code style recommendations.
Performs safe Rust refactoring by analyzing symbol references, dependencies, and potential impacts using Language Server Protocol (LSP) operations.
Guides domain modeling in Rust by helping identify entities, value objects, aggregates, and their ownership patterns with domain-driven design principles.
Enforces compile-time type safety by preventing invalid states through type-level design techniques like newtypes, type states, and phantom types.
Designs comprehensive domain error handling strategies with categorization, recovery mechanisms, and contextual error management for different audiences.
Guides developers in selecting the right smart pointer and resource management strategy based on ownership, thread safety, and design constraints.
Retrieves and provides comprehensive Rust and crate information, including versions, features, documentation, and changelogs from authoritative sources.
Explores Rust trait implementations, revealing which types implement specific traits and their implementation details using LSP.
Guides developers in choosing zero-cost abstractions by analyzing type system errors and runtime polymorphism needs in Rust.