smithery/13eholder

m14-mental-model

C++ Mental Models: Pointer vs Reference, Initialization, Undefined Behavior.

Installation

$ npx skills add smithery/13eholder --skill m14-mental-model

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/13eholder.

npx skills add smithery/13eholder

Browse all from smithery/13eholder

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 781 B
  • docs SUMMARY.md 100 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

C++ Mental Models

Core Question

What happens in memory?

  • Value: Does it own the bytes?
  • Reference: Is it an alias?
  • Pointer: Is it nullable?

Thinking Prompt

  1. Is it a Copy or Reference?

- auto x = y (Copy). - auto& x = y (Reference).

  1. Does it dangle?

- Returning &local is always wrong.

Quick Reference

Concept Mental Model
T& Guaranteed Alias.
**T*** Nullable Address (Requires check).
std::move Cast to rvalue (Prepare to steal).