Index of every page on this site: llms.txt
All skills
oaustegard avatar

/building-property-tests

@b9eb735
Run it yourself

Finds correctness bugs by checking code against a simple reference model over generated inputs and operation sequences, then shrinks each failure to a regression test and a fix. Use for "property test this", "model-based testing", "find bugs in this data structure", or a Hypothesis state machine.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/building-property-tests

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈543 tokens on demand. Your agent reads this file only when SKILL.md points to it.

building-property-tests

Find correctness bugs by running code against a simple reference model over generated inputs and operation sequences. Shrink each disagreement to a deterministic regression test, and fix it without trusting the generator.

Credit

This skill is an adaptation of the work of Inanna Malick:

The method is hers: target selection, independent reference models, generator design, treating a quiet run as a coverage problem, mutation calibration, root cause clustering, and one focused regression and fix per bug kept apart from the discovery suite. This skill rewrites it for Python and Hypothesis, and routes the calibration step through gating and the invariant step through declaring-invariants. It adds a coverage-floor script, a runnable state-machine template, and lessons from applying the method to two codebases (see CHANGELOG.md). Where this skill falls short of the original, read the original.

Contents

Path What
SKILL.md The procedure, routing against sibling skills, earned exceptions, failure modes
scripts/hypothesis_stats.py Runs a Hypothesis suite and fails when a relied-on event() class falls below a floor or never fires
assets/stateful_template.py A runnable RuleBasedStateMachine with a toy subject, a planted mutant and event counters
references/targets.md Property kinds, generator rules, tolerances, where bugs were found
references/delegating.md One agent per area: the brief, the constraints, the orchestrator's half
python3 -m pytest -q tests/                     # the script's own tests

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides a framework for property-based testing using the Hypothesis library. It includes utility scripts for measuring test coverage and templates for model-based testing. While it executes commands and installs standard packages, these are transparently managed and necessary for the skill's purpose. A low-risk surface for indirect prompt injection exists because the skill is designed to run tests on arbitrary target codebases.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: MEDIUM · 1 issue

Signed by skilld at b9eb735. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "0.1.1"
}

README badge

README badge for oaustegard/claude-skills/building-property-tests