What problem does it solve?
This Skill identifies unsafe and outdated C++ patterns that cause memory leaks, undefined behavior, and brittle code, and it guides developers to safer, modern alternatives to improve maintainability and correctness.
Core Features & Use Cases
- Detection and Explanation: Points out instances of raw new/delete, owning raw pointers, C-style casts, void pointer usage, and macros and explains the risks they introduce.
- Concrete Modern Fixes: Suggests practical replacements such as smart pointers, standard containers, static_cast, constexpr, and template-based solutions to make code safer and easier to refactor.
- Use Case: Apply during code reviews or refactoring sprints to convert legacy modules to modern C++ idioms and remove global state to improve testability and lifetime management.
Quick Start
Identify and suggest safe, compile-preserving replacements for occurrences of new, delete, C-style casts, macros, and global variables in the provided C++ files.