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.
Global
mkdir -p ~/.claude/skills/memory-safety-patternsProject
mkdir -p .claude/skills/memory-safety-patternsSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values