Covers the five unsafe superpowers (raw pointer derefs, unsafe functions, mutable statics, unsafe trait impls, union access) and the patterns you need to write sound unsafe abstractions. Shows raw pointer arithmetic, transmute gotchas, UnsafeCell for interior mutability, and includes an audit checklist that covers alignment, initialization, aliasing, and lifetime validity. The golden rule here is isolating unsafe blocks behind safe APIs that maintain invariants, with Safety comments documenting why each block is sound. Pairs well with Miri for runtime validation. Useful when you're implementing custom allocators, FFI bindings, or performance-critical data structures where the standard library won't cut it.
npx -y skills add mohitmishra786/low-level-dev-skills --skill rust-unsafe --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
wshobson/agents
apollographql/skills