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.
npx skills add nWave-ai/nWave --skill nw-property-based-testinggit clone --depth 1 https://github.com/nWave-ai/nWaveWrote 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.
[](https://agentmods.dev/skills/nwave-ai/nwave/nw-property-based-testing)<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-property-based-testing"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-property-based-testing/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.
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-property-based-testing"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-property-based-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.01174 |
| Opus 5.5 | $0.00011 | $0.00470 |
| Sonnet 5.5 | $0.00005 | $0.00235 |
| Haiku 4.5 | $0.00003 | $0.00117 |
Grade A, and why
nw-property-based-testing 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.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Property tests for broad laws
A property states "for all valid inputs this observation holds". It searches for counterexamples; it is not proof and not a substitute for a real-boundary test. Use the project's native generator with shrinking and replay.
1. Decide: property or example
- A law over a broad domain (unbounded inputs, state transitions, sequences, serialization, business rules) gets a property. A table of examples never stands in for it.
- A closed finite domain gets native examples or an exhaustive loop over every member; no property.
- Write one property per distinct law. Combine laws only when one generated observation falsifies each.
- Pick the pattern: invariant (holds for every input), roundtrip (
decode(encode(x)) == x), oracle (compare with a simple reference), metamorphic (a known input change gives a known output change), idempotence (f(f(x)) == f(x)), commutativity (order of operands or operations does not matter). When none is obvious, start from a known example, embed its answer in a generated input, and predict where it appears in the output. - Write no property for a layer that declares no law.
2. Write the generator
- Declare domain and size bounds in the test code. Never narrow a boundary to suit the storage engine or the generator.
- Make every generated component influence the input, the call or the oracle; delete any that does not.
- For a branching law, generate the case tag first from a closed sum, then build inputs that satisfy that case by construction. Never reach rare branches by filtering, assume/discard or a larger example count.
- Build structured data from the valid-input type or constructor, so invalid states are never generated unless the law is about rejecting them.
- Keep it bounded: case count and size so the property fits the default-suite budget (about 10 ms per case). Failures print a replayable seed.
@given(st.lists(st.integers(1, 10**6), min_size=1), st.data())
def test_transfers_keep_total_balance(amounts, data): # law id in docstring
acct = Ledger.open(sum(amounts))
for a in amounts: acct.transfer(a % acct.max_move() or 1)
assert acct.total() == sum(amounts)
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.
- 17d ago Changed · -90 lines · -7 tokens per session 2076a149e7de
- 27d ago Changed · +2 lines · +8 tokens per session 525256b21678
- 2mo ago First seen · 161 lines · 26 tokens per session scan A f83ab800c7bf
nw-property-based-testing is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 27 tokens to every session and 1,174 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-09-03.
nw-property-based-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nw-property-based-testingnWave-ai/nWave | Skill | 636 | 11d ago | MIT | A | 27 | Claude Code |
| moai-runmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 13 | Claude Code |
| test-driven-developmenta5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 35 | Claude Code |
| test-driven-developmentdamianvtran/local-operator | Skill | 232 | today | MIT | A | 48 | Claude Code, Codex |
| Pair Programmingruvnet/ruflo | Skill | 83k | today | MIT | A | 61 | Claude Code |
| speq-implementmarconae/speq-skill | Skill | 54 | 1mo ago | MIT | A | 57 | Claude Code |
| hk-rcadeepklarity/harness-kit | Skill | 108 | 20d ago | MIT | A | 115 | Claude Code |