Engineering · Skill
Memory Safety Patterns
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.
Open in PhởWhat the skill covers
The sections of its instructions, in order.
- 01 When to Use This Skill
- 02 Core Concepts
- 1. Memory Bug Categories
- 2. Safety Spectrum
- 03 Detailed patterns and worked examples
- 04 Best Practices
- Do's
- Don'ts
- 05 Debugging Tools
Reference files
1 file Phở can open while it uses the skill.
- references/details.md
More in JavaScript, TypeScript, Go and Rust
- JavaScript Testing Patterns
Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and…
- Modern JavaScript Patterns
Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for…
- TypeScript Advanced Types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when…
- Go Concurrency Patterns
Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race…
- Rust Async Patterns
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or…
Similar engineering skills
Frequently asked questions
What does Memory Safety Patterns do?
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.
Is Memory Safety Patterns free to use?
Yes. Memory Safety Patterns is published by Seth Hobson under the MIT licence, and you can use it with a free Phở account.
How do I use Memory Safety Patterns in Phở?
Press Open in Phở, then Try to apply it to your next message, or add the JavaScript, TypeScript, Go and Rust set so Phở loads it whenever a request matches.
Does Memory Safety Patterns need other tools?
No. It works in a normal Phở chat with what you type or upload.
Copied unchanged from wshobson/agents at commit 7e2fb55 and credited to Seth Hobson, who is not affiliated with Phở. The full instructions and licence text ship with the skill inside Phở.