13eholder/modern-cpp-skills/m12-lifecycle
Claude Code and agent skill by 13eholder/modern-cpp-skills
Trust tier 2
- community
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-lifecycleSKILL.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
| Issue | Design Question | |
|---|---|---|
| Resource Leak | Did you manually open() without a wrapper class? | |
| Use After Free | Did you capture a reference to a local variable in a lambda/thread? | |
| Static Fiasco | Do statics depend on each other? (Use Meyers Singleton). |
Thinking Prompt
- Does it have a destructor?
- Yes → RAII. Good.
- No → Wrap it.
- Does it copy?
FILE*cannot copy. Delete copy constructor.
Quick Reference
| Pattern | Use Case | |
|---|---|---|
| RAII Wrapper | FileHandle, LockGuard. | |
| Scope Guard | std::scope_exit (Cleanup callback). | |
| Rule of 5 | Copy/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
- SKILL.md in the repositoryCheckingm12-lifecycle/SKILL.md
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
[](https://verified-skill.com/skills/13eholder/modern-cpp-skills/m12-lifecycle)