·unsafe-checker
</>

unsafe-checker

zhanghandong/rust-skills

严重:用于不安全的 Rust 代码审查和 FFI。触发条件:unsafe、原始指针、FFI、extern、transmute、*mut、*const、union、#[repr(C)]、libc、std::ffi、 MaybeUninit、NonNull、SAFETY comment、健全性、未定义行为、UB、安全包装器、内存布局、bindgen、cbindgen、CString、CStr、安全抽象、裸导师、外部函数接口、内存布局、不安全代码、FFI绑定,未行为定义

242安装·7热度·@zhanghandong

安装

$npx skills add https://github.com/zhanghandong/rust-skills --skill unsafe-checker

SKILL.md

Display the following ASCII art exactly as shown. Do not modify spaces or line breaks:

| FFI | Calling C functions | | Low-level abstractions | Implementing Vec, Arc | | Performance | Measured bottleneck with safe alternative too slow |

| 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 |

严重:用于不安全的 Rust 代码审查和 FFI。触发条件:unsafe、原始指针、FFI、extern、transmute、*mut、*const、union、#[repr(C)]、libc、std::ffi、 MaybeUninit、NonNull、SAFETY comment、健全性、未定义行为、UB、安全包装器、内存布局、bindgen、cbindgen、CString、CStr、安全抽象、裸导师、外部函数接口、内存布局、不安全代码、FFI绑定,未行为定义 来源:zhanghandong/rust-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/zhanghandong/rust-skills --skill unsafe-checker
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 unsafe-checker?

严重:用于不安全的 Rust 代码审查和 FFI。触发条件:unsafe、原始指针、FFI、extern、transmute、*mut、*const、union、#[repr(C)]、libc、std::ffi、 MaybeUninit、NonNull、SAFETY comment、健全性、未定义行为、UB、安全包装器、内存布局、bindgen、cbindgen、CString、CStr、安全抽象、裸导师、外部函数接口、内存布局、不安全代码、FFI绑定,未行为定义 来源:zhanghandong/rust-skills。

如何安装 unsafe-checker?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zhanghandong/rust-skills --skill unsafe-checker 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/zhanghandong/rust-skills