Every program uses resources like files, network connections, or memory. You need to know when to create them, use them, and clean them up. This guide helps you decide the best pattern for your situation.
You will learn about RAII and the Drop trait for automatic cleanup. Lazy initialization delays creation until needed. Connection pools reuse expensive resources. These patterns make your code safer and easier to maintain.
Whether you are a beginner or an experienced developer, this skill helps you avoid resource leaks and errors. It shows common mistakes and how to fix them. Use it to design reliable software.
Global
mkdir -p ~/.claude/skills/m12-lifecycleProject
mkdir -p .claude/skills/m12-lifecycleSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge