AI AGENT ADDONS

Memory Safety Patterns

wshobson/agents

Writing safe systems code means avoiding memory bugs like use-after-free or leaks. This skill teaches patterns such as RAII, ownership, and smart pointers that work across Rust, C++, and C. These techniques help you manage resources like files and sockets without errors.

You will learn how to prevent common issues like double-free, buffer overflow, and dangling pointers. The patterns range from manual control in C to automatic safety in Rust and garbage-collected languages. Each approach gives a different balance of control and safety.

Tools like AddressSanitizer and Valgrind help you find memory problems in your code. By following these best practices, you can write more reliable software that is less prone to crashes and security vulnerabilities.

Add Memory Safety Patterns skill to your workflow

Global

mkdir -p ~/.claude/skills/memory-safety-patterns

Project

mkdir -p .claude/skills/memory-safety-patterns

Source Repository

Stars
37,285
Forks
4,009
Watchers
37,285
License
MIT
Last Push
26 days ago
Created
1 year ago