What problem does it solve?
This Skill helps prevent leaks, dangling pointers, double deletes, use-after-free bugs, and unsafe heap usage in C++ code that must stay reliable in embedded automotive systems.
Core Features & Use Cases
- Ownership design: Define clear lifetime rules for classes, subsystems, and interfaces using Rule of Zero and Rule of Five practices.
- Smart pointer guidance: Choose between unique_ptr, shared_ptr, and weak_ptr to express ownership correctly and avoid cycles.
- RAII and safety patterns: Wrap file handles, locks, buffers, and other resources so cleanup happens automatically and deterministically.
- Real-time memory control: Reduce or eliminate heap allocation in performance-critical Linux, QNX, and Android NDK paths.
- Debugging and audit support: Detect memory defects with AddressSanitizer and review code against MISRA-oriented memory rules.
- Use case: Review an IVI or HUD module, identify raw pointer misuse, and refactor it into safer, allocation-aware C++.
Quick Start
Ask for a review of a C++ class or module and request ownership, lifetime, RAII, and smart pointer recommendations for embedded automotive memory safety.