Repository navigation
Conversation
Testing methodology: default to property-based tests over example-based unit tests; coverage lands in the same commit as the production code it proves. Contributed from our own agent skill set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of a 10-PR series contributing the agent-guardrail skill stack (prove-it-works, blast-radius, fix-root-causes, subtract-before-you-add, correct, interrogate, show-me-your-work, create-verification-skill, maintain-verification-skill, property-based-testing). Each PR is independent, adds exactly one single-skill plugin, and can be reviewed and merged in any order; adjacent additions to
marketplace.json/README.mdmay show trivial conflicts with sibling PRs.What
Adds the
property-based-testingplugin: a testing-methodology skill that defaults to property-based tests over example-based unit tests — brainstorm the invariants the unit must hold, enforce them with well-shaped arbitraries that shrink well, and land coverage in the same commit as the production code. Includes dedicated flows for bug fixes (reproduce, then fix the root cause without weakening coverage) and third-party integration points.Why
The marketplace ships opinionated code-quality skills (typescript) but no testing-methodology skill. Property-based testing is underrepresented in agent training data, so an explicit skill measurably changes the tests an agent writes. Battle-tested in a hackathon repo's quality gates; we are contributing it back.
Provenance and license
Contributed from our own agent skill set (no third-party upstream).
Checklist
plugins/property-based-testing/with.factory-plugin/plugin.jsonskills/(per the check-skills CI).factory-plugin/marketplace.jsonentry added