resource-management
Installation
SKILL.md
Resource Management
Managing scarce resources (file handles, connections, memory) safely.
Context
You are managing resources safely. Follow RAII and cleanup patterns.
Domain Context
- RAII: Acquire in constructor, release in destructor; guarantees cleanup
- Cleanup: Ensure resources are freed even on exception
- Lifetimes: How long does a resource live? Who owns it?
- Scoping: Use scope to define resource lifetime