agentsclimarketplace

Property based testing

Skill kimtth/agent-skill-100-lines-or-less/skills/property-based-testing

🧿 Minimal but effective AI agent skill definitions in 100 lines or less.

Install
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill property-based-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when: test invariants over generated inputs instead of a few hand-picked examples.

SKILL.md

1.0 KB, as published. Nobody here has run it

Goal: find edge cases by checking properties across many inputs.

Use for:

  • logic with broad input ranges or many edge cases
  • parsers, serializers, and data transformations
  • complementing example-based tests

Workflow:

  1. Identify an invariant that must always hold.
  2. Define generators for the relevant input space.
  3. Let the framework run many randomized cases.
  4. Let it shrink failures to a minimal counterexample.
  5. Add the counterexample as a regression test.
  6. Refine generators to cover meaningful edges.

Useful properties:

  • round-trip: decode(encode(x)) == x
  • invariant: output always satisfies a rule
  • equivalence: two implementations agree
  • idempotence: f(f(x)) == f(x)

Rules:

  • assert properties, not specific outputs
  • constrain generators to valid, meaningful inputs
  • pin discovered counterexamples as fixed tests
  • use seeds so failures reproduce

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.