CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

rust-testing-strategy

HASH Rust testing strategy. Use when writing Rust unit, integration, or snapshot tests, or choosing assertion and test-organization patterns.

60

Quality

75%

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 ./.agents/skills/rust-testing-strategy/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

68%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 strong conventions-style skill body: specific commands, illustrative code pairs, and a genuinely instructive test-naming spec outweigh its weaknesses — a few generic platitudes, a couple of vague pointers (yarn database seeding), and no explicit verify-and-fix workflow tying the verification commands to test authoring.

Suggestions

Add an explicit verify-and-fix loop, e.g. 'After writing tests: run cargo nextest, then clippy; fix failures and re-run both before finishing' — this would turn the scattered verification commands into a sequenced workflow with checkpoints.

Replace 'Database seeding can be performed using yarn commands in the project's package.json' with the actual command(s), or drop the line if it belongs to another skill.

Trim the generic platitudes ('Aim for high test coverage but prioritize test quality over quantity', 'Follow the same code quality standards in test code as in production code') — they add tokens without adding convention.

DimensionReasoningScore

Conciseness

The body is mostly lean, project-specific convention (naming shape, assertion message format, nextest filter expressions) rather than general Rust knowledge, e.g. 'cargo clippy --all-features --all-targets --workspace --no-deps' and the `<subject>_<case>[_<variant>]` shape. A few generic platitudes Claude already knows ('Aim for high test coverage but prioritize test quality over quantity', 'Follow the same code quality standards in test code as in production code') keep it below the lean anchor 5, but there is no padded explanation of concepts — well above anchor 3's 'some unnecessary explanation'.

4 / 5

Actionability

Concrete, executable guidance dominates: exact clippy/cargo-doc commands, 'cargo nextest run -E \'test(<subject>_)\'', copy-paste assertion examples ('value.expect("should contain a valid configuration")'), the json! bad/good pair, and a concrete before/after test-naming example. Not 5 because some directives remain abstract ('Consider using parameterized tests', 'Database seeding can be performed using yarn commands in the project's package.json' — no actual command) and the naming example bodies are elided with `/* … */`.

4 / 5

Workflow Clarity

This is a conventions catalog, not a sequenced process: verification checkpoints exist (clippy 'to detect issues', cargo doc, 'run the complete test suite') but are never assembled into a workflow (write test → run nextest → clippy → fix → re-run), and no error-recovery loop is described, matching anchor 3's 'checkpoints missing or implicit'. It is not 2 — sections are coherent and each directive is well-defined — and not 4 since no explicit sequence ties test writing to verification. No destructive/batch operations are involved, so the cap-at-3 rule for missing validation does not apply.

3 / 5

Progressive Disclosure

A single self-contained file with no references/, scripts/, or assets/ bundle; sections are well-organized and the ~115-line scope is reasonable to keep inline, so there is no monolithic wall or buried-reference problem. Minor gap: the Test Naming section (~35 lines, the longest) could live in a reference file, which keeps it at anchor 4's 'minor organization gaps' rather than 5's ideal split.

4 / 5

Total

15

/

20

Passed

Description

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

A competent description with a strong, explicit trigger clause but a weak 'what': 'HASH Rust testing strategy' is a label, not a capability statement, and leaves the skill's main content (naming conventions, assertion standards, verification workflow) undescribed. It reads as slightly above midpoint overall.

Suggestions

Replace the cryptic 'HASH Rust testing strategy' what-clause with concrete capabilities, e.g. 'Defines conventions for writing and naming Rust tests: assertion message style, test naming shape, test-subject selection, and cargo verification.'

Add the skill's dominant topics to the trigger clause ('test naming', 'test assertions', 'running cargo-nextest/clippy') so users asking about those reach this skill.

Clarify or drop the 'HASH' prefix if it is not a term users would recognize when deciding whether to invoke the skill.

DimensionReasoningScore

Specificity

The description names the domain ('HASH Rust testing strategy') and a couple of concrete activities in the trigger clause ('writing Rust unit, integration, or snapshot tests, or choosing assertion and test-organization patterns'), but the 'what' is a bare label and coverage is incomplete — test naming conventions, verification commands, and test design guidance (half the body) are unmentioned. This matches the anchor 'Names domain and 1-2 concrete actions, but not comprehensive' better than 4, whose examples list several specific capabilities of the skill itself.

3 / 5

Completeness

Both parts are present: 'HASH Rust testing strategy' (what) and an explicit 'Use when writing Rust unit, integration, or snapshot tests, or choosing assertion and test-organization patterns' (when). Not 5 because the 'what' is a cryptic label — 'HASH' is unexplained and the description never states what the strategy covers (naming conventions, assertion standards, verification) — and not 3 because the 'when' is explicit and specific, not merely implied.

4 / 5

Trigger Term Quality

Natural terms a user would say are present: 'Rust', 'unit', 'integration', 'snapshot tests', 'assertion', 'test-organization patterns'. It falls short of the 5 anchor (comprehensive synonyms/variants) because common phrasings like 'test naming', 'cargo test', or 'clippy' — significant parts of the skill — are missing, while exceeding anchor 3's 'some relevant keywords' level.

4 / 5

Distinctiveness Conflict Risk

The Rust-testing niche with triggers like 'snapshot tests' and 'assertion patterns' is mostly distinct with only minor overlap risk against a general Rust-development or code-review skill. The unexplained 'HASH' prefix slightly muddies identity, keeping it below the clear-niche anchor 5.

4 / 5

Total

15

/

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

hashintel/hash

Path

.agents/skills/rust-testing-strategy/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.