m14-mental-model/SKILL.md
C++ Mental Models: Pointer vs Reference, Initialization, Undefined Behavior.
npx skillsauth add 13eholder/modern-cpp-skills m14-mental-modelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
What happens in memory?
Is it a Copy or Reference?
auto x = y (Copy).auto& x = y (Reference).Does it dangle?
&local is always wrong.| Concept | Mental Model |
| --------------- | ---------------------------------- |
| T& | Guaranteed Alias. |
| T* | Nullable Address (Requires check). |
| std::move | Cast to rvalue (Prepare to steal). |
tools
Common C++ Anti-Patterns. Triggers: global variables, new/delete, C-style cast, macros, void*.
data-ai
Mastering C++ Domain Errors: Exception Hierarchies, System Errors, and Expected.
data-ai
Mastering C++ Lifecycle: RAII, Destructors, Static Initialization, Rule of 5.
tools
Mastering C++ Ecosystem: CMake, vcpkg, Conan, Sanitizers, Tooling.