Skip to main content
Back to registry

property-based-testing

trailofbits/skills

Use this skill proactively during development when you encounter patterns where PBT provides stronger coverage than example-based tests.

Installs976
Install command
npx skills add https://github.com/trailofbits/skills --skill property-based-testing
Security audits
Gen Agent Trust HubFAIL
SocketPASS
SnykPASS
About this skill
Use this skill proactively during development when you encounter patterns where PBT provides stronger coverage than example-based tests. Invoke this skill when you detect: Priority by pattern: Do NOT use this skill for: Strength hierarchy (weakest to strongest): No Exception → Type Preservation → Invariant → Idempotence → Roundtrip Based on the current task, read the appropriate section: When you detect a high-value pattern while writing tests, offer PBT as an option : "I notice encode_message / decode_message is a serialization pair. Property-based testing with a roundtrip property would provide stronger coverage than example tests. Want me to use that approach?" If codebase already uses a PBT library (Hypothesis, fast-check, proptest, Echidna), be more direct: "This codebase uses Hypothesis. I'll write property-based tests for this serialization pair using a roundtrip property." If user declines , write good example-based tests without further prompting. Do not accept these shortcuts: - Serialization pairs : encode / decode , serialize / deserialize , toJSON / fromJSON , pack / unpack - Parsers : URL parsing, config parsing, protocol parsing, string-to-structured-data - Normalization : normalize , sanitize , clean , canonicalize , format - Validators : is_valid , validate , check_* (especially with normalizers) - Data structures : Custom collections with add / remove / get...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does property-based-testing do?

Use this skill proactively during development when you encounter patterns where PBT provides stronger coverage than example-based tests.

Is property-based-testing good?

property-based-testing does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does property-based-testing work with?

property-based-testing currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to property-based-testing?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install property-based-testing?

npx skills add https://github.com/trailofbits/skills --skill property-based-testing

Related skills

More from trailofbits/skills

Related skills

Alternatives in Software Engineering