pbt-verify

Generate and execute property-based tests for pure functions.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill pbt-verify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pbt-verify
Source: https://github.com/youssefKadaouiAbbassi/yka-code/tree/main/forge/plugin/skills/pbt-verify
Command: npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill pbt-verify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation and execution of property-based tests for pure functions, providing a quick and reliable verification process.

Core Features & Use Cases

  • Property-Based Testing: Generates tests for a function's properties based on given patterns and rules.
  • Verification: Runs the generated tests and provides feedback on whether the function passes, fails, or has missing properties.
  • Use Case: In the Phase 5b verify gate, it is used to verify pure functions and functions with pure boundaries in a project.

Quick Start

Use the pbt-verify skill to run property-based tests on a pure function 'myPureFunction'.

Frequently Asked Questions about pbt-verify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate property-based testing for pure functions?

Property-based testing verifies functional correctness by defining generalized rules for a function, rather than writing individual test cases, to automatically discover edge cases and invalid inputs.

How do I verify pure functions in a software development workflow?

Verify pure functions in a development workflow by applying automated property-based testing during the verification gate to execute generated tests and confirm the function's properties hold true.

When do I need property-based testing instead of standard functional testing?

You need property-based testing when standard functional testing falls short of edge cases, utilizing predefined patterns and rules to generate comprehensive tests for thorough verification of pure functions.

Can I use property-based testing frameworks like hypothesis and fast-check to verify pure boundaries?

Yes, you can verify pure boundaries by applying property-based testing frameworks like hypothesis, fast-check, and proptest to generate and execute tests that validate functional correctness.

What are the limitations of property-based testing for functional verification?

Property-based testing for functional verification is limited to pure functions and pure boundaries, requiring clearly defined properties and rules to generate tests, making it unsuitable for stateful or impure workflows.