Rust unsafe Purpose Guide agents through writing, reviewing, and reasoning about unsafe Rust: what operations require , how to write safe abstractions, audit patterns, common pitfalls, and when to reach for . Triggers - "When do I need to use unsafe in Rust?" - "How do I write a safe abstraction over unsafe code?" - "How do I audit an unsafe block?" - "What are the rules for raw pointers in Rust?" - "What does transmute do and when is it safe?" - "How do I implement UnsafeCell correctly?" Workflow 1. The five unsafe superpowers grants exactly five capabilities not available in safe Rust: 1. D…