CtrlK
BlogDocsLog inGet started
Tessl Logo

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

68

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is a tight, well-structured Rust design-reference that respects token budget and points to concrete mechanisms, crates, and related skills. Its gaps are the limited number of runnable code examples relative to the patterns listed and the absence of explicit verification guidance for the few stateful operations.

Suggestions

Add short executable snippets for the remaining patterns (Pool with r2d2, Guard with MutexGuard, Scope/transaction guard) so each listed pattern has a concrete template.

For the stateful patterns (pool exhaustion, transaction scope), include a one-line verification or invariant check to strengthen workflow clarity.

DimensionReasoningScore

Conciseness

The body is a lean, table-driven reference that assumes Claude's Rust knowledge, never explaining what RAII or Drop are, with every section earning its tokens.

5 / 5

Actionability

It provides executable code templates (RAII Guard, Lazy Singleton), names concrete crates (r2d2, deadpool), and cites specific error codes (E0509), but only 2 of the 5 named patterns get runnable examples.

4 / 5

Workflow Clarity

The Thinking Prompt and Trace Up/Trace Down sections sequence the design-decision process clearly; the skill is a conceptual design aid rather than a destructive batch workflow, so the missing-validation cap does not apply.

4 / 5

Progressive Disclosure

Content is well-organized with clear section headers and tables, no nested or buried references, and no inline material that clearly belongs in separate files; absence of bundle files is appropriate for this scope.

4 / 5

Total

17

/

20

Passed

Description

81%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is a strong trigger-rich, niche-specific statement with a clear "Use when" clause; its main weakness is that it substitutes a keyword list for an explicit enumeration of what the skill does. It is highly distinct and low conflict-risk.

Suggestions

Lead with one sentence stating the concrete actions the skill supports (e.g., 'Designs resource lifecycles: choosing ownership, Drop cleanup, lazy initialization, and pooling strategies') before the keyword list.

Trim redundant or overlapping keywords (e.g., 'connection pool' and 'connection pool design') to keep the trigger list lean and signal-rich.

DimensionReasoningScore

Specificity

The description names the domain ("designing resource lifecycles") and surfaces concrete mechanisms (RAII, Drop, connection pool, OnceLock) but never enumerates discrete actions, leaving coverage non-comprehensive.

3 / 5

Completeness

An explicit "Use when designing resource lifecycles" trigger gives a clear "when", and the domain plus keyword list conveys the "what", but the "what" is implied via keywords rather than stated as concrete capabilities.

4 / 5

Trigger Term Quality

It provides comprehensive keyword coverage spanning natural phrases ("when is Drop called", "cleanup on error"), technical terms, synonyms (OnceCell/OnceLock/Lazy), file/crate-style tokens, and bilingual variants.

5 / 5

Distinctiveness Conflict Risk

The Rust resource-lifecycle niche is sharply delimited by specific mechanisms (Drop, OnceLock, r2d2-style pooling) and distinctive triggers, minimizing overlap with unrelated skills.

5 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
actionbook/rust-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.