Guides writing modern C++ with RAII: rule of zero, smart-pointer selection, move semantics, and wrapping non-memory resources. Use when reviewing code with manual new/delete or leaky error paths.
Every resource (memory, file, lock, socket, GPU handle) lives in an object whose constructor acquires and destructor releases. Once that is true everywhere, early returns and exceptions cannot leak, and cleanup order becomes deterministic scope order.
std::string, std::vector,
unique_ptr, lock_guard); then the compiler-generated special
members are correct and you write none of them. Only resource-
owning wrapper classes implement the rule of five, and each
such class does exactly one job: own that resource.std::unique_ptr is the default for owned heap objects (zero
overhead, moves express transfer); std::shared_ptr only when
lifetime is genuinely shared by design (and weak_ptr breaks the
cycles); raw pointers and references mean "borrowed, non-owning,
never freed by me": document lifetime expectations at the API
(see rust-ownership for the same taxonomy enforced by a
compiler).std::make_unique/make_shared tie allocation to the owner in
one expression; a new outside a smart-pointer constructor is a
review flag. delete appearing anywhere outside a custom
deleter means an ownership hole.lock_guard/unique_lock, see deadlock-analysis), transactions
(commit/rollback in destructor via scope guards), C handles from
libraries (unique_ptr with custom deleter). If cleanup appears
in function bodies instead of destructors, error paths will
eventually skip it.noexcept on moves (containers fall back to copies otherwise);
never throw from destructors: report or terminate, because a
throwing destructor during unwind ends the process.goto-style flags, and paired init/teardown calls are the C
idiom this skill replaces (see c-memory-safety when C interop
forces it).shared_ptr is not a garbage collector: cycles leak, atomic
refcounts cost, and "shared because deciding an owner was hard"
is deferred design debt.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job