/selamy-skills:property-based-testingfrom selamy-skills
Use when example tests can't cover the input space — parsers, serializers, encoders, money math, state machines, anything with a roundtrip or invariant. Assert properties that hold for all inputs, let the framework generate cases and shrink failures to a minimal counterexample.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Example tests check the handful of inputs you thought of. Property-based tests check a property against thousands the framework generates — and when one fails, it shrinks the failure to the smallest input that still breaks, handing you a minimal repro instead of a haystack. Reach for it where the input space is too big to enumerate and a clear invariant exists.
decode(encode(x)) == x for all x — serializers, parsers,
protobuf/JSON codecs, compression.f(f(x)) == f(x); apply(a,b) == apply(b,a).The skill is naming the property, not writing the generator. Ask: what must be true regardless of the input? Common shapes — "there and back" (roundtrip), "different path, same result" (oracle/commutativity), "some things never change" (invariant), "doing it twice = doing it once" (idempotence). If you can't state one, the code may not have a crisp contract yet — that's itself a finding.
from hypothesis import given, strategies as st
@given(st.binary())
def test_roundtrip(payload):
assert decode(encode(payload)) == payload # holds for ALL payloads
For history-bearing stores, generate valid action sequences against a small reference model: repeated updates, ownership changes, observations and reloads. Check required state, proofs and unrelated fields after every action; shrink the sequence, not just its final input.
If stored state is unexpectedly large, inspect metadata and the serialization and mutation paths first. Reproduce with a tiny owned fixture under event, byte and time limits before loading, copying or hashing the full store. Keep any necessary production inspection within existing ownership and resource bounds; synthetic timings do not measure production latency.
What SKILL.md sets; muted values are Claude Code's defaults
111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.Other plugins' skills for the same job
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills