This one bridges the gap between C's manual memory management and Rust's compile-time guarantees by showing you the actual patterns that prevent use-after-free bugs, double-frees, and memory leaks across all three languages. It covers RAII destructors in C++, Rust's ownership system with borrowing rules, smart pointers like unique_ptr and shared_ptr, and even defensive patterns for C like goto cleanup. What I like is that it doesn't just show syntax but explains the tradeoffs between safety and control, plus it includes concrete examples of breaking reference cycles and handling interior mutability. Great for systems programmers who need to write bulletproof resource management code.
npx skills add https://github.com/wshobson/agents --skill memory-safety-patterns