The m12-lifecycle skill guides developers through designing resource lifecycles in Rust by answering when resources should be created, used, and cleaned up. It covers patterns like RAII, lazy initialization, connection pooling, and scope guards, tracing decisions from domain constraints down to implementation details using ownership and the Drop trait. This skill is for Rust developers designing systems that manage expensive resources like database connections, helping them choose appropriate patterns based on resource cost, scope, and error handling requirements.
npx skills add https://github.com/zhanghandong/rust-skills --skill m12-lifecycle