·m12-lifecycle
</>

m12-lifecycle

goooice/rust-skills

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

5Installs·0Trend·@goooice

Installation

$npx skills add https://github.com/goooice/rust-skills --skill m12-lifecycle

SKILL.md

When should this resource be created, used, and cleaned up?

| RAII | Auto cleanup | Drop trait | | Lazy init | Deferred creation | OnceLock, LazyLock | | Pool | Reuse expensive resources | r2d2, deadpool | | Guard | Scoped access | MutexGuard pattern | | Scope | Transaction boundary | Custom struct + Drop |

| Connection pooling | domain- | What's acceptable latency? | | Resource limits | domain- | What are infra constraints? | | Transaction scope | domain- | What must be atomic? |

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 模式 Source: goooice/rust-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/goooice/rust-skills --skill m12-lifecycle
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is 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 模式 Source: goooice/rust-skills.

How do I install m12-lifecycle?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/goooice/rust-skills --skill m12-lifecycle Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/goooice/rust-skills