CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rust-best-practices

Write idiomatic, robust, maintainable Rust. Use this skill whenever you write, review, refactor, debug, or explain Rust code: new crates, modules, functions, structs, traits, error types, async code, unsafe or FFI code, Cargo.toml, tests, or rustdoc. Trigger on any mention of Rust, cargo, crates, .rs files, the borrow checker, lifetimes, traits, clippy, or rustfmt, even when the user does not ask for "best practices" or "idiomatic" code. Synthesized from the Google Rust Style Guide, the Rust API Guidelines, Effective Rust, Rust Design Patterns, and Microsoft's Pragmatic Rust Guidelines.

Quality

94%

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

88%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.

A high-quality, unusually dense best-practices skill: executable commands and code, an explicit validate-and-fix workflow with a final checklist, and a well-organized reference layer. Its main costs are token weight in the main file and some re-teaching of standard Rust conventions Claude already knows.

Suggestions

Trim or move familiar std/API conventions Claude already knows — the naming case table, as_/to_/into_ prefix rules, and len()/is_empty() — into the existing reference digests, keeping the main file focused on the rules where the five source guides disagree.

Move the detailed Naming and Constructors/builders subsections of section 4 into a reference digest, leaving a short summary in the main file so the checklist workflow (sections 2 and 13) stays the dominant structure.

State up front which sections are most relevant per task type (writing new code vs. reviewing vs. refactoring) so the reader can skip half the file for a given task.

DimensionReasoningScore

Conciseness

The body is dense, prescriptive rule text with zero padded prose (e.g., "Lock poisoning is fatal: `.lock().expect("lock poisoned")`. Don't recover with `into_inner`."), but several sections restate conventions Claude already knows — the naming case table, `as_`/`to_`/`into_` conversion prefixes, and "If you implement `len()`, implement `is_empty()`" — which is more than minor over-explanation but well short of verbose padding.

4 / 5

Actionability

Guidance is copy-paste ready throughout: the section 2 command block ("cargo clippy --all-targets --all-features -- -D warnings"), executable code samples (the `std::mem::take` enum example, the sealed-trait pattern, the `assert_send` const block), and a specific named tool for every job (`bindgen`, `criterion`, `cargo fuzz`, Miri, `thiserror`, `anyhow`).

5 / 5

Workflow Clarity

The operative workflow has an explicit validation loop — "Run these and fix everything they report" over fmt/clippy/test/doc — and the refactoring section adds test-first feedback ("pin the current behavior with a few before you touch it", "Write a failing test before fixing a bug"), capped by the section 13 final checklist.

5 / 5

Progressive Disclosure

The References section signals six one-level-deep digests with clear when-to-read guidance (all six cited files verified present in references/), but the main file is the full rulebook rather than an overview, carrying substantial inline detail (naming tables, constructor/builder rules) that could partly live in the reference digests.

4 / 5

Total

18

/

20

Passed

Description

100%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.

An exemplary description: it states concrete capabilities, gives an explicit use-when clause plus a separate trigger list with natural terms and file extensions, and occupies a distinct Rust-only niche. It is dense but every phrase is functional, so verbosity is not penalized.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions ("write, review, refactor, debug, or explain Rust code") and comprehensively enumerates the artifacts covered: "new crates, modules, functions, structs, traits, error types, async code, unsafe or FFI code, Cargo.toml, tests, or rustdoc". Nothing is vague or padded, matching the comprehensive-coverage anchor.

5 / 5

Completeness

It explicitly answers both questions: what ("Write idiomatic, robust, maintainable Rust") and when ("Use this skill whenever you write, review, refactor, debug, or explain Rust code", reinforced by "Trigger on any mention of..."). Both are concrete and explicit, matching the top anchor.

5 / 5

Trigger Term Quality

"Trigger on any mention of Rust, cargo, crates, .rs files, the borrow checker, lifetimes, traits, clippy, or rustfmt" covers natural user terms, tool names, and the .rs file extension — exactly the comprehensive synonym-plus-extension coverage of the top anchor.

5 / 5

Distinctiveness Conflict Risk

Triggers like "the borrow checker, lifetimes, clippy, or rustfmt" are unambiguously Rust-specific, giving the skill a clear niche with minimal overlap risk against any non-Rust skill.

5 / 5

Total

20

/

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

skill_md_line_count

SKILL.md is long (514 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

dwojtaszek/droid-usage

Path

.factory/skills/rust-best-practices/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.