13eholder/modern-cpp-skills/m12-lifecycle

Claude Code and agent skill by 13eholder/modern-cpp-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Mastering C++ Lifecycle: RAII, Destructors, Static Initialization, Rule of 5.

Install

npx vskill@latest install 13eholder/modern-cpp-skills/m12-lifecycle

SKILL.md

The same SKILL.md was published earlier as 13eholder/modern-cpp-skills/m12-lifecycle.

C++ Resource Lifecycle

Core Question

When does this die?

  • Stack: End of scope }.
  • Heap: When delete (or smart pointer drop) occurs.
  • Static: At program exit (reverse init order).

Error → Design Question

IssueDesign Question
Resource LeakDid you manually open() without a wrapper class?
Use After FreeDid you capture a reference to a local variable in a lambda/thread?
Static FiascoDo statics depend on each other? (Use Meyers Singleton).

Thinking Prompt

  1. Does it have a destructor?
  • Yes → RAII. Good.
  • No → Wrap it.
  1. Does it copy?
  • FILE* cannot copy. Delete copy constructor.

Quick Reference

PatternUse Case
RAII WrapperFileHandle, LockGuard.
Scope Guardstd::scope_exit (Cleanup callback).
Rule of 5Copy/Move/Destructor implementation logic.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
12
Repository forks
1
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/13eholder/modern-cpp-skills/m12-lifecycle/badge)](https://verified-skill.com/skills/13eholder/modern-cpp-skills/m12-lifecycle)

Something wrong with this skill or its page? Tell us.