jcorpac/ai-skills-library/tdd-property-testing

Claude Code and agent skill by jcorpac/ai-skills-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Using generative testing to explore large input spaces and find obscure bugs.

Install

npx vskill@latest install jcorpac/ai-skills-library/tdd-property-testing

SKILL.md

The same SKILL.md was published earlier as jcorpac/ai-skills-library/tdd-property-testing.

Property-Based Testing

Instead of writing individual test cases with fixed inputs, you define properties (invariants) that should always be true for any valid input.

How it Works

  1. Define a strategy for generating random data (e.g., "any list of integers").
  2. Define a property (e.g., "sorting a list doesn't change its length").
  3. The framework generates hundreds of inputs to find a counter-example.
  4. If it finds one, it shrinks the input to the simplest possible case that fails.

Tools

Example (Python with Hypothesis)

python
from hypothesis import given, strategies as st
def add(a, b):
return a + b
@given(st.integers(), st.integers())
def test_add_commutative(a, b):
assert add(a, b) == add(b, a)

When to Use

  • Mathematical functions.
  • Encoders/Decoders.
  • Data transformation pipelines.
  • Sorting or searching algorithms.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jcorpac/ai-skills-library/tdd-property-testing/badge)](https://verified-skill.com/skills/jcorpac/ai-skills-library/tdd-property-testing)

Something wrong with this skill or its page? Tell us.