m12-lifecycle
π―Skillfrom goooice/rust-skills
Designs resource lifecycles by determining optimal creation, usage, and cleanup strategies for efficient and safe resource management across different scopes and scenarios.
Part of
goooice/rust-skills(35 items)
Installation
/plugin marketplace add ZhangHanDong/rust-skills/plugin install rust-skills@rust-skillsnpx skills add ZhangHanDong/rust-skillsgit clone https://github.com/ZhangHanDong/rust-skills.gitSkill Details
"Use when designing resource lifecycles. Keywords: RAII, Drop, resource lifecycle, connection pool, lazy initialization, connection pool design, resource cleanup patterns, cleanup, scope, OnceCell, Lazy, once_cell, OnceLock, transaction, session management, when is Drop called, cleanup on error, guard pattern, scope guard, θ΅ζΊηε½ε¨ζ, θΏζ₯ζ± , ζ°ζ§εε§ε, θ΅ζΊζΈ η, RAII 樑εΌ"
More from this repository10
Optimizes code performance by identifying bottlenecks, measuring impact, and guiding strategic improvements across algorithm, data structure, and memory efficiency.
Applies the M14 mental model framework to enhance decision-making and strategic thinking through structured cognitive analysis.
Guides developers in choosing zero-cost abstractions by analyzing type system constraints and performance trade-offs in Rust generics and traits.
Performs parallel three-layer meta-cognitive analysis by forking subagents to simultaneously analyze language mechanics, design choices, and domain constraints, then synthesizing results.
Identifies and reviews unsafe Rust code patterns, FFI risks, and potential memory unsafety in Rust projects.
Dynamically generates Claude skills for Rust crates, standard library modules, and documentation by extracting and processing technical details from specified URLs.
Provides comprehensive Rust coding guidelines covering naming conventions, best practices, error handling, memory management, concurrency, and code style recommendations.
Performs safe Rust refactoring by analyzing symbol references, checking conflicts, and applying changes across project files using LSP.
Diagnoses and guides resolution of Rust mutability and borrowing conflicts by analyzing ownership, mutation patterns, and thread-safety requirements.
Explores and demonstrates type-driven development techniques in Rust, showcasing advanced type system features and pattern matching strategies.