Acerca de
The m12-lifecycle skill provides a comprehensive framework for designing and implementing resource lifecycles in Rust, ensuring efficient memory management and error-resistant cleanup. It guides users through critical design choices—such as selecting between stack allocation, pooling, or lazy singletons—while providing implementation templates for the Drop trait, OnceLock, and RAII guards to prevent resource leaks and use-after-free errors. This skill is essential for building production-grade Rust applications where resource constraints and safety are paramount.