property-testing

property-testing is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 112 tokens per session (2,252 once invoked), scanned A, original, MIT.

A testing guide for property-based tests, which check that a rule holds across many generated inputs instead of only a few hand-picked examples.

In plain words
What is it for?
Use it for pure logic such as parsers, encoders, arithmetic, collection operations, state machines, and reducers.
Why use it?
It finds edge cases that example tests may miss and reduces failures to small, repeatable inputs.

Skill for Claude CodeCodex

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

Good fit Use it for pure logic such as parsers, encoders, arithmetic, collection operations, state machines, and reducers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/property-testing
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 sjarmak/coding-agent-workflows --skill property-testing
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

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 property-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/property-testing/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/property-testing)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/property-testing"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/property-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.

agentmods 80×15 button for property-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/property-testing"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/property-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,252 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.00112 $0.02252
Opus 5.5 $0.00045 $0.00901
Sonnet 5.5 $0.00022 $0.00450
Haiku 4.5 $0.00011 $0.00225

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

Security

Grade A, and why

property-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 1mo 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.

source/skills/property-testing/SKILL.md · 188 lines

How it starts

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

Property-Based Testing

An example test pins the inputs the author thought of. A property test states what must hold for every input, lets the library generate inputs, and shrinks a failure to the smallest input that still breaks it. All Hegel libraries and Hypothesis share the same core model: internal shrinking on the choice sequence, health checks, and a database of failing examples that replays first on the next run.

When it is required

Pure logic gets a property test in the RED step, next to the example tests, not after. Missing one is a MEDIUM, non-blocking review finding. Shapes:

  • parsers, encoders, decoders, serializers
  • arithmetic, units, money, time, geometry
  • ordering, dedup, merge, diff, set operations
  • state machines, reducers, schedulers
  • any function with an inverse or a reference implementation

I/O glue, controllers and wiring do not need one. A property test never replaces the explicit boundary cases from common/testing.md; it adds the inputs nobody listed.

Property catalog

Property Statement Typical target
Round-trip decode(encode(x)) == x codecs, serializers, parsers with printers
Idempotence f(f(x)) == f(x) normalizers, formatters, dedup
Invariant a fact about the output holds for every input sort output is ordered and same length
Commutativity, associativity argument order or grouping does not change the result merge, union, money arithmetic
Monotonicity larger input never gives smaller output pricing, scoring, time arithmetic
Differential oracle fast(x) == simple(x) optimized code against a naive version
Metamorphic a known change to the input gives a known change to the output search: adding a matching doc grows results
No crash every generated input returns a value or a typed error parsers on arbitrary bytes
State machine every rule sequence keeps the model and the real system in agreement caches, connection pools, editors

Read the full file on GitHub · 188 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. 1mo ago First seen · 188 lines · 112 tokens per session scan A ae4c0d77a68b

Subscribe to this mod's changes

property-testing is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 10d ago), licensed MIT. It adds 112 tokens to every session and 2,252 once invoked, about $0.0004 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-10-02.

Related

Other skills, from other repositories

migrate-cra-to-vite

Move a Create React App (react-scripts) project to Vite - install Vite and @vitejs/plugin-react, move index.html to the project root with a module script, rename REACTAPP env variables to VITE and process.env to import.meta.env, handle %PUBLICURL%, SVG imports, path aliases, proxy and port settings, switch Jest to…

Phaedra-Solutions/cursor-rules · 118 tokens

migrate-class-to-hooks

Convert React class components to function components with hooks one component at a time - characterization tests first, then map state to useState/useReducer, lifecycle methods to useEffect with correct dependencies and cleanup (or to event handlers and derived values where an effect isn't needed), refs to useRef…

Phaedra-Solutions/cursor-rules · 111 tokens

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

mxyhi/ok-skills · 33 tokens

migrate-to-shoehorn

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

mxyhi/ok-skills · 48 tokens

blinded-eval

Blinded evaluation of a Skill, rule, or prompt change. The parent designs the experiment, isolates candidates in throwaway directories, runs the same organic user prompt, and scores artifacts against a held-back rubric. Apply when the user invokes /blinded-eval, asks to eval or A/B a skill change, or authoring Phase 4…

afaraha8403/balakit · 103 tokens

secops-detection-engineering

Author, validate, test, and deploy YARA-L 2.0 detection rules and evaluate end-to-end detection coverage gaps in Google SecOps. Use when writing new detection rules, tuning existing rules, validating syntax, testing logic against historical telemetry, or evaluating detection coverage against threat intelligence blogs…

google/skills · 129 tokens