m02-resource guides developers through selecting appropriate smart pointers and resource management patterns in Rust by asking design questions rather than prescribing solutions. It's for Rust developers encountering ownership and memory management challenges who need to understand when to use Box, Rc, Arc, RefCell, or other smart pointers based on their specific ownership model, thread context, and mutability requirements. The skill solves the problem of cargo-cult smart pointer usage by connecting implementation choices back to underlying design decisions about single vs. shared ownership, single-threaded vs. multi-threaded access, and reference cycles.
npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource