building-property-tests

building-property-tests is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 63 tokens per session (1,645 once invoked), scanned A, original, MIT.

A testing method that compares code with a simpler reference model across generated inputs and sequences of operations. When it finds a mismatch, it reduces the case to a smaller regression test and guides a fix.

In plain words
What is it for?
Use it for data structures and stateful behaviour when you can describe the expected result with a simpler model, including tests built with Hypothesis, fast-check, or Rust property-testing tools.
Why use it?
It can expose correctness bugs that a few hand-written examples do not cover. Shrinking failures makes the cause easier to reproduce and investigate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../target-fix -b fixes.

Good fit Use it for data structures and stateful behaviour when you can describe the expected result with a simpler model, including tests built with Hypothesis, fast-check, or Rust property-testing tools.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills
agentmods
npx agentmods add skills/oaustegard/claude-skills/building-property-tests

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 building-property-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/building-property-tests/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/building-property-tests)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/building-property-tests"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/building-property-tests/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 building-property-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/building-property-tests"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/building-property-tests.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 1,645 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.00063 $0.01645
Opus 5.5 $0.00025 $0.00658
Sonnet 5.5 $0.00013 $0.00329
Haiku 4.5 $0.00006 $0.00164

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

Security

Grade A, and why

building-property-tests 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 14d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/stateful_template.py, scripts/hypothesis_stats.py, tests/test_hypothesis_stats.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

building-property-tests/SKILL.md · 120 lines

How it starts

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

Building property tests

Not for

Situation Use
Input that crashes, indexes out of bounds or overflows hunting-failing-inputs
Whether one existing check can go red gating
Tests that copy a registry; declaring invariants declaring-invariants
Performance claims benchmarking
Code with no simpler description of correct behaviour than itself example tests, or reasoning-semiformally
Races, async ordering stress test or race detector

Stop and switch to path-agreement properties only when the model grows as complex as the code. Stop and rewrite the contract (step 1) after three rounds where every failure was a harness bug.

Setup

uv pip install --system --break-system-packages hypothesis pytest
uv pip install --system --break-system-packages -e /path/to/target
cd /tmp && python3 -c "import target; print(target.__file__)"   # None = namespace package; reinstall
git -C /path/to/target rev-parse HEAD                             # record the commit

Rust: proptest + proptest-state-machine. JS/TS: fast-check with fc.commands/fc.modelRun.

Procedure

  1. Write one contract per target, citing its source (README.md:23, core.py:1261). Pick targets where the code is complex and a correct model is simple; references/targets.md lists property kinds.

  2. Write the model with plain loops, importing nothing from the target but the subject. List in the harness docstring anything the model shares with production (tables, matrices, tokenizers) as a blind spot.

  3. Write generators from assets/stateful_template.py:

    • small pools (3–4 keys, few values), unequal overwrite values;
    • edge values as their own strategy (empty, n<k, k=n, duplicates, ties, unaligned sizes);
    • the sizes and modes the existing suite does not use — grep its tests first;
    • domains drawn from the registry, never a copied list;
    • event("<class>") on every interaction a property needs;
    • rare conjunctions built inside one rule.

Read the full file on GitHub · 120 lines

Files

What ships with it

7 files 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. 14d ago First seen · 120 lines · 63 tokens per session scan A 6a7186bca3fb

Subscribe to this mod's changes

building-property-tests is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,645 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-11-17.

Related

building-property-tests compared with skills from other repositories

building-property-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
building-property-testsoaustegard/claude-skillsSkill423todayMITA63Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
review-ugc-rendergooseworks-ai/goose-skillsSkill1.4k3d agoMITA201Claude Code, Codex
vitestjezweb/claude-skillsSkill1.1k1mo agoMITA87Claude Code
131-java-testing-unit-testingjabrena/plinthSkill470yesterdayApache-2.0A160Claude Code, Codex
321-frameworks-spring-boot-testing-unit-testsjabrena/plinthSkill470yesterdayApache-2.0A176Claude Code, Codex
521-frameworks-micronaut-testing-unit-testsjabrena/plinthSkill470yesterdayApache-2.0A150Claude Code, Codex