nw-pbt-jvm
JVM property-based testing with jqwik, ScalaCheck, and ZIO Test frameworks
Install / Use
npx skills add nWave-ai/nWave --skill nw-pbt-jvmInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of nw-pbt-jvm
nw-pbt-jvm scores 84/100 on our quality scale, 2967th of 4,698 Development & Engineering skills we index.
Its SKILL.md is 5.5 KB long, well organised into 14 sections with 10 code examples: a solid amount of guidance for an agent.
It has 617 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so nw-pbt-jvm is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-11-10. Automated pattern scan on 2026-11-10. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
nw-pbt-jvm compared with similar skills
All 4 of these similar skills score higher than nw-pbt-jvm; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| nw-pbt-jvm (this skill)by nWave-ai | 84 | 617 | 2mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.3k | 2d ago | CLAUDE.md |
| lobehubby lobehub | 100 | 85.6k | today | MCP Server |
Frequently asked questions
- How do I install nw-pbt-jvm?
- Run
npx skills add nWave-ai/nWave --skill nw-pbt-jvm. The install tabs above show the steps for each supported agent. - Which AI agents does nw-pbt-jvm work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is nw-pbt-jvm safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is nw-pbt-jvm still maintained?
- The repository was last updated about 2 months ago, so nw-pbt-jvm is actively maintained.
Skill content
View source on GitHubname: nw-pbt-jvm agent: nw-functional-software-crafter description: JVM property-based testing with jqwik, ScalaCheck, and ZIO Test frameworks user-invocable: false
PBT JVM -- jqwik (Java/Kotlin) + ScalaCheck + ZIO Test
Framework Selection
| Framework | Language | Shrinking | Stateful | Choose When | |-----------|----------|-----------|----------|-------------| | jqwik | Java/Kotlin | Integrated | Yes (actions) | Java/Kotlin projects (recommended default) | | ScalaCheck | Scala | Type-based | Yes (Commands) | Scala projects (established choice) | | ZIO Test | Scala | Integrated | Via effects | ZIO-based Scala projects |
Quick Start (jqwik)
import net.jqwik.api.*;
class SortProperties {
@Property
void sortPreservesLength(@ForAll List<Integer> list) {
List<Integer> sorted = new ArrayList<>(list);
Collections.sort(sorted);
Assertions.assertEquals(list.size(), sorted.size());
}
}
// Run: ./gradlew test (or mvn test)
Generator (Arbitrary) Cheat Sheet (jqwik)
@ForAll int x // any int
@ForAll @IntRange(min = 0, max = 99) int x
@ForAll @StringLength(min = 1, max = 50) String s
@ForAll @Size(min = 1, max = 10) List<Integer> list
// Custom provider
@Provide
Arbitrary<String> emails() {
return Arbitraries.strings().alpha().ofMinLength(1).ofMaxLength(10)
.map(name -> name + "@example.com");
}
// Combinators
Arbitraries.integers().between(0, 100)
Arbitraries.of("a", "b", "c")
Arbitraries.frequencyOf(Tuple.of(80, Arbitraries.integers()), Tuple.of(20, Arbitraries.just(0)))
// Combine
Combinators.combine(
Arbitraries.strings().alpha().ofMinLength(1),
Arbitraries.integers().between(1, 120)
).as((name, age) -> new User(name, age))
// Recursive
Arbitraries.recursive(
() -> Arbitraries.of(JsonValue.NULL, JsonValue.TRUE),
inner -> Arbitraries.maps(Arbitraries.strings(), inner).map(JsonValue::fromMap),
5
)
Stateful Testing (jqwik)
@Property
void storeMatchesModel(@ForAll("storeActions") ActionSequence<MyStore> actions) {
actions.run(new MyStore());
}
@Provide
ActionSequenceArbitrary<MyStore> storeActions() {
return Arbitraries.sequences(
Arbitraries.oneOf(
Combinators.combine(Arbitraries.strings(), Arbitraries.integers())
.as(PutAction::new),
Arbitraries.strings().map(GetAction::new)
)
);
}
class PutAction implements Action<MyStore> {
final String key; final int value;
PutAction(String key, int value) { this.key = key; this.value = value; }
@Override public MyStore run(MyStore store) { store.put(key, value); return store; }
}
Quick Start (ScalaCheck)
import org.scalacheck.Prop.forAll
val propSortLength = forAll { (xs: List[Int]) => xs.sorted.length == xs.length }
// With ScalaTest
class SortSpec extends AnyFunSuite with ScalaCheckPropertyChecks {
test("sort idempotent") { forAll { (xs: List[Int]) => xs.sorted.sorted shouldBe xs.sorted } }
}
ScalaCheck Generators
Gen.choose(0, 100) // bounded int
Gen.alphaStr // alphabetic string
Gen.listOf(Gen.posNum[Int]) // list
Gen.oneOf(Gen.const(1), Gen.const(2)) // union
Gen.frequency((80, Gen.alphaChar), (20, Gen.numChar))
Gen.recursive[Tree](gen =>
Gen.oneOf(Gen.const(Leaf), for { l <- gen; r <- gen; v <- Gen.posNum[Int] } yield Node(v, l, r))
)
ScalaCheck Stateful (Commands)
object StoreSpec extends Commands {
type State = Map[String, Int]; type Sut = MyStore
def genCommand(state: State): Gen[Command] = Gen.oneOf(
for { k <- Gen.alphaStr; v <- Gen.posNum[Int] } yield Put(k, v),
Gen.oneOf(state.keys.toSeq).map(Get(_))
)
}
Quick Start (ZIO Test)
import zio.test._
test("sort preserves length") {
check(Gen.listOf(Gen.int)) { xs => assertTrue(xs.sorted.length == xs.length) }
}
ZIO Test Generator Cheat Sheet
Gen.int // any Int
Gen.int(0, 100) // bounded
Gen.double // any Double
Gen.string // any String
Gen.alphaNumericString
Gen.boolean
Gen.listOf(Gen.int) // List[Int]
Gen.setOf(Gen.string) // Set[String]
Gen.mapOf(Gen.string, Gen.int) // Map[String, Int]
Gen.option(Gen.int) // Option[Int]
Gen.oneOf(Gen.const(1), Gen.const(2)) // union
Gen.weighted((Gen.int, 80.0), (Gen.const(0), 20.0)) // weighted
// Custom
val genUser = for {
name <- Gen.alphaNumericString
age <- Gen.int(1, 120)
} yield User(name, age)
ZIO Test stateful testing: Use ZIO.stateful with Ref-based model state in effect composition.
Test Runner Integration
<!-- jqwik (Maven) -->
<dependency>
<groupId>net.jqwik</groupId><artifactId>jqwik</artifactId>
<version>1.8.0</version><scope>test</scope>
</dependency>
// ScalaCheck (build.sbt)
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.17.0" % Test
// ZIO Test: "dev.zio" %% "zio-test" % "2.x" % Test
Unique Features
jqwik
- Edge cases: Automatically tests boundary values (0, MIN/MAX, empty)
- @StatisticsReport: Shows distribution of generated values
- Domains: Group related arbitraries into reusable contexts
- Kotlin support: Works natively via JUnit 5
ScalaCheck
- Type-class based:
Arbitrary[T]for automatic derivation - Parallel Commands: Stateful testing with parallel execution
- Shrink[T]: Separate shrink type class (can shrink past generator constraints)
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
72.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.3kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
lobehub
85.6k🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
