test-rust

test-rust is a skill for Claude Code, Codex from d-oit/rust-2026-template. It costs 63 tokens per session (668 once invoked), scanned A, original, MIT.

A Rust testing workflow that runs unit tests, integration tests, and documentation tests, with an optional code-coverage report. It uses nextest to run tests in parallel.

In plain words
What is it for?
Use it to run a complete Rust test suite, investigate failures, and generate an HTML coverage report.
Why use it?
It checks more than unit tests alone, helping find problems between components and in code examples documented for users.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to run a complete Rust test suite, investigate failures, and generate an HTML coverage report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-oit/rust-2026-template/test-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add d-oit/rust-2026-template --skill test-rust
Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-oit/rust-2026-template/test-rust/github.svg)](https://agentmods.dev/skills/d-oit/rust-2026-template/test-rust)
Your own site
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/test-rust"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/test-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/test-rust"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/test-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00668
Opus 5.5 $0.00025 $0.00267
Sonnet 5.5 $0.00013 $0.00134
Haiku 4.5 $0.00006 $0.00067

Measured 17d ago against content hash bfc4b431c652, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/test-rust/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: test-rust

Purpose

Run the complete test suite for a Rust project using best practices.

Prerequisites

  • cargo nextest (cargo install cargo-nextest)
  • cargo llvm-cov for coverage (cargo install cargo-llvm-cov)

Steps

1. Unit + integration tests

cargo nextest run --all-features --workspace --no-tests=fail

For this repository, ./scripts/quality-gates.sh is the canonical full quality pipeline; this direct command is useful for focused test iteration.

2. Doc tests

cargo test --workspace --doc --all-features

3. With coverage

cargo llvm-cov nextest --all-features --workspace --html

4. Report metrics

Call metrics-reporter skill.

Test Organization

crates/<crate>/src/lib.rs       # Unit tests in #[cfg(test)] modules
crates/<crate>/tests/           # Crate-level integration tests
crates/workspace-tests/tests/   # Cross-crate integration and fitness tests
benchmarks/benches/             # Criterion benchmarks

Success Criteria

  • All tests pass
  • Doc tests pass
  • Coverage meets .codecov.yml targets: 70% project coverage and 60% patch coverage; project coverage may drop by no more than the configured 2% threshold
  • build-rust, lint-rust, release-rust, metrics-reporter

Rationalizations

Rationalization Reality
"Unit tests pass, so the code is correct." Unit tests don't catch integration issues. Run doc tests and integration tests too.
"Coverage is at 50%, that's probably fine." The repository sets a 70% project target and 60% patch target in .codecov.yml; check the applicable target rather than assuming coverage is sufficient.
"I'll skip doc tests — they're just examples." Doc tests are compiled and run. They catch stale documentation and API mismatches.

Red Flags

  • Running cargo test without --all-features (hides feature-gated test failures)
  • Skipping doc tests (cargo test --workspace --doc --all-features)
  • Not using cargo-nextest for parallel test execution

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +5 lines bfc4b431c652
  2. 25d ago Changed 92559b26cea4
  3. 2mo ago Changed · -3 lines e390b24d77f4
  4. 3mo ago First seen · 91 lines · 63 tokens per session scan A da4771365e72

Subscribe to this mod's changes

test-rust is a skill published in the GitHub repository d-oit/rust-2026-template (15 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 668 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

test-rust compared with skills from other repositories

test-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-rustd-oit/rust-2026-templateSkill15todayMITA63Claude Code, Codex
rust-checkHmbown/CodeWhaleSkill41k2d agoMITA15Claude Code, Codex
stack-trace-rust-probeopensquilla/opensquillaSkill7.2k5d agoApache-2.0A42Claude Code
hotpath_initpawurb/hotpath-rsSkill1.9k9d agoMITA88Claude Code
rust-tracingBerriAI/litellmSkill64ktodaynoneA28Claude Code, Codex
rust-errorBerriAI/litellmSkill64ktodaynoneA72Claude Code, Codex
clickhouse-rust-type-mismatchesdivinevideo/divine-mobileSkill263todayMPL-2.0A280Claude Code, Codex