Catalog / Skills

Rust FFI Safe Wrappers

Design and review Rust FFI boundaries that keep raw declarations isolated behind safe ownership, lifetime, error, and cleanup wrappers. Use when writing, refactoring, or reviewing unsafe extern blocks, C ABI wrappers, repr(C) types, CString, CStr, raw handles, Drop cleanup, bindgen, cbindgen, or panic-safe foreign boundaries.

Rustv0.1.0MITrustffic-abiunsafebindings

Install

npx skills add LVTD-LLC/skills --skill rust-ffi-safe-wrappers

From `SKILL.md`

Use this skill to wrap foreign interfaces in Rust APIs that make ownership, lifetimes, errors, and cleanup explicit. FFI code should be unsafe at the raw boundary and safe for normal Rust callers.