CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.

Quality

63%

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

Fix and improve this skill with Tessl

tessl review fix ./skills/rust-patterns/SKILL.md

The canonical home for this skill is rust-patterns in affaan-m/ECC

SKILL.md
Quality
Evals
Security

Quality

Content

50%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 highly actionable, with executable Good/Bad code pairs and a useful quick-reference table covering the main idiomatic Rust areas. Its weaknesses are token efficiency — several sections re-teach standard Rust knowledge Claude already has — and the absence of any progressive disclosure, with all ~490 lines inlined in one file. Trimming the textbook sections and splitting deep-dive topics into reference files would raise both scores.

Suggestions

Cut or compress sections that restate basic Rust knowledge (Option combinators, iterator chains vs loops, collect() annotation, builder pattern) and keep only the prescriptive conventions Claude wouldn't infer, such as thiserror-vs-anyhow placement and exhaustive-match policy.

Move the Unsafe Code, async/Tokio, and Tooling sections into references/ files (e.g. references/unsafe.md, references/async.md) and keep one-line pointers in SKILL.md, adding progressive disclosure.

Add a short ordered application workflow (e.g., run cargo clippy/fmt, then check the anti-pattern list, then verify error handling policy) so the catalog translates into a repeatable review/refactor sequence.

DimensionReasoningScore

Conciseness

The body is code-dense with little prose padding, but several full sections teach textbook Rust Claude already knows — "Option Combinators Over Nested Matching", "Prefer Iterator Chains Over Manual Loops", "Use collect() with Type Annotation", the builder pattern, and Arc<Mutex<T>> basics. This matches anchor 2 (several unnecessary explanations) rather than 3 (only some), per the guideline penalizing explanations of known concepts.

2 / 5

Actionability

Concrete, mostly copy-paste-ready Rust examples with Good/Bad pairs throughout, plus a complete cargo command reference. Minor gaps keep it below anchor 5: bare statement fragments that reference undefined functions (connect(), use_session()), and todo!() placeholders in the newtype and anti-pattern examples.

4 / 5

Workflow Clarity

"When to Use" and "How It Works" establish scope, and the tooling section implies verification (clippy, fmt, test), but the skill is a pattern catalog with no sequenced process for applying the patterns during writing, reviewing, or refactoring. This fits anchor 3 (sequence implicit, checkpoints missing) rather than 4; no destructive/batch operations, so no validation cap applies.

3 / 5

Progressive Disclosure

The skill is a single ~490-line file with no references/, scripts/, or assets/ bundle and no external references at all. Internal section headers are well-organized, but substantial content that belongs in separate files (unsafe guidelines, async/concurrency, tooling) is fully inlined, matching anchor 3; the under-50-line simple-skill exception does not apply.

3 / 5

Total

12

/

20

Passed

Description

61%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 specific and distinctively Rust-scoped, listing concrete topic areas a user would recognize. Its main weakness is the absence of any "when to use" trigger guidance, which caps completeness and limits trigger discoverability. Adding a "Use when writing, reviewing, or refactoring Rust code" clause would materially improve it.

Suggestions

Add an explicit trigger clause, e.g. "Use when writing, reviewing, or refactoring Rust code, designing crate/module structure, or debugging borrow-checker or lifetime errors."

Include common synonym terms users actually say — "borrowing", "lifetimes", "async", "Cargo" — to broaden natural trigger coverage.

Replace the generic tail "best practices for building safe, performant applications" with concrete actions like "Reviews and refactors Rust code for idiomatic ownership, error handling, and concurrency."

DimensionReasoningScore

Specificity

Names the domain and concrete topic areas ("ownership, error handling, traits, concurrency") but never states actions — "best practices for building safe, performant applications" is generic filler. Sits between anchor 2 (generic actions) and anchor 3, landing at 3 because the topic list is specific even without verb-phrased capabilities.

3 / 5

Completeness

The "what" is clear from the topic list, but there is no "Use when..." clause or equivalent trigger guidance, which caps completeness at 3 per the judging guidelines. It does not qualify for anchor 4, which requires both what and when.

3 / 5

Trigger Term Quality

"Rust", "ownership", "error handling", "traits", and "concurrency" are natural terms users would say. Missing common variations like "borrowing", "lifetimes", "async", and ".rs", so it does not reach anchor 5's comprehensive synonym/extension coverage.

4 / 5

Distinctiveness Conflict Risk

"Idiomatic Rust patterns" carves out a clear Rust-specific niche with minimal conflict risk against non-Rust skills. Only minor overlap risk with hypothetical narrower Rust skills (cargo, FFI, async-specific), matching anchor 4 rather than 5 since it lacks explicit distinct trigger phrases.

4 / 5

Total

14

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

valeriibeck-star/claude-skills

Path

skills/rust-patterns/SKILL.md

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.