Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.
Add this skill
npx mdskills install sickn33/memory-safety-patternsCovers memory safety but relies heavily on external playbook file for actionable details
1---2name: memory-safety-patterns3description: Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.4---56# Memory Safety Patterns78Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.910## Use this skill when1112- Writing memory-safe systems code13- Managing resources (files, sockets, memory)14- Preventing use-after-free and leaks15- Implementing RAII patterns16- Choosing between languages for safety17- Debugging memory issues1819## Do not use this skill when2021- The task is unrelated to memory safety patterns22- You need a different domain or tool outside this scope2324## Instructions2526- Clarify goals, constraints, and required inputs.27- Apply relevant best practices and validate outcomes.28- Provide actionable steps and verification.29- If detailed examples are required, open `resources/implementation-playbook.md`.3031## Resources3233- `resources/implementation-playbook.md` for detailed patterns and examples.34
Full transparency — inspect the skill content before installing.