Registry / actionbook

actionbook/rust-skills/m12-lifecycle

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 模式

Agent skill · version 2.0.9 · from actionbook/rust-skills

Install

npx yarkr-cli add skill:actionbook/rust-skills/m12-lifecycle

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:actionbook/rust-skills/m12-lifecycle
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:actionbook/rust-skills/m12-lifecycle

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:actionbook/rust-skills/m12-lifecycle

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.