nw-pbt-rust

nw-pbt-rust is a skill for Claude Code from nWave-ai/nWave. It costs 21 tokens per session (1,592 once invoked), scanned A, original, MIT.

A guide to property-based testing in Rust using proptest, quickcheck, and bolero. Property-based testing checks a rule against many generated inputs instead of only hand-written examples.

In plain words
What is it for?
Writing Rust tests for collections, values, and general rules; choosing generators and running the tests with Cargo.
Why use it?
It helps reveal edge cases that example-based tests may miss and explains which Rust framework to choose.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Good fit Writing Rust tests for collections, values, and general rules; choosing generators and running the tests with Cargo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-pbt-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 nWave-ai/nWave --skill nw-pbt-rust
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

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 nw-pbt-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-pbt-rust/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-pbt-rust)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-pbt-rust"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-pbt-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 nw-pbt-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-pbt-rust"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-pbt-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 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.
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.00021 $0.01592
Opus 5.5 $0.00008 $0.00637
Sonnet 5.5 $0.00004 $0.00318
Haiku 4.5 $0.00002 $0.00159

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

Security

Grade A, and why

nw-pbt-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 27d 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.

nWave/skills/nw-pbt-rust/SKILL.md · 217 lines

How it starts

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

PBT Rust -- proptest, quickcheck, bolero

Framework Selection

Framework Shrinking Stateful Choose When
proptest Integrated No Default choice. Most features, best shrinking.
quickcheck Type-based No Simple properties, one generator per type sufficient
bolero Engine-dependent No Want to switch between PBT and fuzzing engines

Default: proptest. Supports multiple strategies per type without newtype wrappers, better shrinking.

Quick Start (proptest)

use proptest::prelude::*;

proptest! {
    #[test]
    fn sort_preserves_length(ref v in prop::collection::vec(any::<i32>(), 0..100)) {
        let mut sorted = v.clone();
        sorted.sort();
        prop_assert_eq!(sorted.len(), v.len());
    }
}

// Run: cargo test

Generator (Strategy) Cheat Sheet (proptest)

Primitives

any::<i32>()                          // any i32
0..100i32                             // range (implements Strategy)
any::<f64>()
any::<String>()
any::<bool>()
any::<Vec<u8>>()                      // bytes
Just(42)                              // constant

Collections

prop::collection::vec(any::<i32>(), 0..50)
prop::collection::vec(any::<i32>(), 1..=10)   // non-empty, max 10
prop::collection::hash_set(any::<i32>(), 0..20)
prop::collection::hash_map(any::<String>(), any::<i32>(), 0..20)
(any::<i32>(), any::<String>())       // tuple

Combinators

// Union
prop_oneof![any::<i32>().prop_map(Value::Int), any::<String>().prop_map(Value::Str)]

// Map
any::<i32>().prop_map(|x| x * 2)     // even integers

// Filter
any::<i32>().prop_filter("positive", |x| *x > 0)
// Prefer: 1..i32::MAX

// FlatMap (dependent generation)
prop::collection::vec(any::<i32>(), 1..50)
    .prop_flat_map(|v| {
        let len = v.len();
        (Just(v), 0..len)
    })

// Regex-based strings
"[a-z]{1,10}"                        // implements Strategy
"[0-9]{3}-[0-9]{4}"                  // phone-like pattern

Read the full file on GitHub · 217 lines

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. 27d ago First seen · 217 lines · 21 tokens per session scan A e81d4e1536dc

Subscribe to this mod's changes

nw-pbt-rust is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 21 tokens to every session and 1,592 once invoked, about $0.0001 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-11-03.

Related

nw-pbt-rust compared with skills from other repositories

nw-pbt-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-pbt-rustnWave-ai/nWaveSkill63611d agoMITA21Claude Code
test-driven-developmenta5c-ai/babysitterSkill1.9k29d agoMITA35Claude Code
test-driven-developmentdamianvtran/local-operatorSkill232todayMITA48Claude Code, Codex
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
speq-implementmarconae/speq-skillSkill541mo agoMITA57Claude Code
hk-rcadeepklarity/harness-kitSkill10820d agoMITA115Claude Code
tddInsajin/autopus-adkSkill1112mo agoMITA11Claude Code, Codex