/bugfinding:stateful-property-testingfrom bugfinding
Guides model-based property testing of dependent API, protocol and UI operation sequences. Use when bugs require object lifetimes, permissions, session transitions or setup history; for React components or pages driven by Testing Library or Playwright with fast-check commands; for Node async APIs where later calls need values from earlier callbacks; and when shrinking must preserve those dependencies.
Ships in bugfinding. 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.
Read when SKILL.md points to them.
Search states and operations together. Choose this skill when independent values or syntactically valid programs rarely reach the successful API behavior under investigation. Valid sequences can establish state that direct construction misses: even with a state constructor, "there might be hidden state that we cannot easily replicate" (RapidCheck stateful guide, Stateful testing). Program generation belongs to semantic-program-generation; controlled interleavings belong to schedule-exploration; model-free crawling of a discovered UI state graph belongs to ui-state-exploration.
Read the actual public producer, enabled configuration and guarantee. Keep only contract facts in the model: logical identities, live handles, ownership, permissions and session state. Start model and system in equivalent states: "The initial state must obviously match the state of the System Under Test" (RapidCheck stateful guide, Putting it all together). Do not copy implementation caches or branches into the expected result; the model "should not be a carbon copy of the system" (fast-check model design, Overview).
Preserve state-establishing API calls. In Hughes's storage case, an open/close/open prefix reached hidden state that a shorter visible-equivalent setup did not, because "the first call to open creates the file"; an independent corruption check also exposed failures accepted by return-value checks. That prefix was the sequential setup of a parallel test with three concurrent operations (Hughes, PDF pp. 14-16). Treat that as a reason to inspect lifecycle paths, not a claim that every target needs reopening. Read model and sequence design for a worked object/permission experiment.
Select operands from current admissible state, using returned identities rather than random nonexistent handles. Hypothesis bundles carry earlier results, "allowing data to flow from one rule to another"; fast-check commands expose admissibility checks and execution separately as check(model) and run(model, real) (Hypothesis stateful tests, v6.170.15, fast-check commands, Define the commands). Values a library creates and passes to a callback, such as file handles, are most effectively reached by a call nested in that callback (Nessie, ICSE 2022, p.1495); fast-check's command list is flat, so generate a call tree as described in JS UI and async APIs.
Make intentional invalid transitions their own operations with documented error-and-effect expectations. Do not count a false command precondition as exercising an invalid API: fast-check skips its execution, if (cmd.check(m)) cmd.run(m, r); (runner source, internalModelRun). Record admitted calls, successful semantic operations and evaluated properties alongside generated sequence counts. Use correctness-oracles for the promised observations and harness-sensitivity for representative controls.
Recompute preconditions from the reduced prefix. A command valid when generated can become invalid after earlier operations are removed; RapidCheck checks preconditions "both during generation and during shrinking" and tells authors to "always assert all preconditions" (stateful guide, Command and Command generation). Preserve the same violated guarantee while removing unrelated entities, setup and operations. Delegate general interestingness and minimality mechanics to failure-reduction.
Save resolved identities, executed operations, setup and observations as well as framework replay data. fast-check command replay needs replayPath plus assertion seed and path ("commands must be called with { replayPath: string }"); Rapid ignores a fail file whose version "differs from rapid version" (fast-check replay, Replay model-based tests, Rapid engine, checkFailFile). A framework seed does not control an external service or scheduler. Keep sequential modeling separate from concurrency claims.
Read only the relevant section of runtime recipes:
T.Repeat / StateMachineActions; optional MakeFuzz connects a property to Go fuzzing (state-machine source, engine source, MakeFuzz).Command<Model,Sut> where its build integration fits (stateful guide).Improve an existing sequence generator rather than port it for a tool name. Return the exercised contract and lifecycle, actual operation/property reach, original and reduced replay artifacts, classifications and limits. Preserve model defects and unresolved comparisons; a mismatch does not identify which side is wrong. Hughes treated early sequential inconsistencies as "a bug in the model", and describes testing as comparing "two independent descriptions" (Hughes, PDF pp. 14, 17). Read common mistakes for misleading success signals. Campaign allocation and final attribution remain bugfinding-campaign and evidence-based-triage responsibilities.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ctoth/computational-bugfinding-skills-plugin --plugin bugfinding26 skills in this plugin
/bounded-model-checkingGuides source-linked CBMC, JBMC and Kani checks with explicit input domains, unwind bounds and executable counterexamples. Use when finite hard paths or invariants merit solver search beyond fuzzing, or when interpreting bounded verification, vacuous success or counterexample playback./bugfinding-campaignGuides compute-budgeted bugfinding campaigns by finding gaps in existing generators, execution models and correctness oracles. Use when choosing what to test next, extending an established fuzzing setup, or deciding whether more compute will produce useful evidence./configuration-differential-testingOther plugins' skills for the same job