/bugfinding:semantic-differential-testingfrom bugfinding
Guides comparisons of implementations, versions or execution modes under matched semantic conditions, including observable state effects, JavaScript library, polyfill or version pairs with callback behavior, and React server-rendered HTML versus client hydration. Use when extending differential fuzzing beyond printed results, investigating disagreements, or designing contract-specific equivalence and replay.
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.
Compare executions that are legitimately expected to agree, and observe the guarantee being tested. Identical source is insufficient when semantics differ; agreeing implementations can also share a wrong answer, which Csmith calls "an inherent limitation of differential testing without an oracle" (Csmith, §2.6).
Read the actual producers, enabled configuration, input contract and observer on both sides; a generator built for another target version produces false alarms, as SQLancer warns that it "is specific to a version of the DBMS" (SQLancer README, Understanding SQL generation). State the common guarantee and legal input/state domain. Separate implementation-defined choices, unsupported capabilities and invalid-input robustness from ordinary result equivalence: Csmith compares compilers "within an equivalence class but not across classes" of implementation-defined behavior. A compiler disagreement first needs input-validity investigation; LLVM's first step is to "make sure it is not using undefined behavior" (Csmith, §2.6, LLVM 23.1.0 Miscompilations).
Establish equivalent logical starting states through existing fixture/reset/API owners; identical physical bytes are not the general definition of equivalent state. For independent cases, re-establish the required state per case. For lifecycle-dependent failures, retain the causal setup prefix instead. Preserve setup alongside the compared operation, as SQLancer's bug log keeps the last query "along with the other statements to set up the database state" (SQLancer README, Logs). Read matched state and effects for batch drift, identities and observation boundaries.
Choose typed results, permitted errors and relevant external effects; do not substitute a scalar return or implementation-specific serialization for a world-effect guarantee. Different testing observations cover different properties; SQLite separates anomaly (failure) tests, journal-before-database write checks and "exactly the same answer" optimization comparisons (SQLite testing, §§3, 8.5 and 9). Use correctness-oracles for general contract derivation and crash-consistency-testing for recovery guarantees.
Read the actual comparison path. SQLancer's inspected MySQL DQP caller uses a first-column string observer with cardinality/set checks; that observation is not complete typed-row bag equality (DQP caller, comparator). Select sequence, bag or set equivalence from the guarantee: in PostgreSQL, SELECT ALL returns all candidate rows "including duplicates", while without ORDER BY the row order "must not be relied on"; unspecified order does not erase duplicate counts (PostgreSQL 18 SELECT, Description step 6, §7.5 Sorting Rows). Read comparison and normalization.
Keep input rejection, expected error, unsupported check, missing/malformed output, resource abort and completed comparison distinct where they affect the conclusion. A skipped comparison is not evidence of agreement; SQLancer's observer throws IgnoreMeException for a null result or an expected error, so that case never reaches a comparison (comparator, getResultSetFirstColumnAsString). Use harness-sensitivity to establish that the same observation rejects a representative wrong effect while accepting a healthy pair.
Build modes can observe different parts of one contract. React's hydrateRoot "expects the rendered content to be identical with the server-rendered content" (hydrateRoot). In React 19.3.1, production hydration compares element text and structure but not attributes; the comment says "Our requirement is not to produce perfect HTML and attributes", and attribute mismatches reach only a development-only console.error, never onRecoverableError (hydrateProperties, emitPendingHydrationWarnings). Production onRecoverableError therefore cannot be the only hydration oracle; read the server-render case in worked cases.
Reuse existing generators/runners. Vary state and operations together when required, and compare effects at the selected boundary rather than merely extending a return-only lane. Use semantic-program-generation or stateful-property-testing for those inputs; use configuration-differential-testing for factor selection and metamorphic-testing for transformation-relation design. SQLancer and SQLite demonstrate complementary state/program and execution-mode dimensions: SQLancer generates schema, data and "various other kinds of database states" before queries, and SQLite's dbsqlfuzz "mutates both the SQL input and the database file" (SQLancer README, Test input generation, SQLite testing, §§4.1.3 and 9).
Preserve original inputs, initial state/prefix, both build/configuration identities, raw observations, normalization and replay outcomes. Reduce the paired case while retaining legal preconditions and the selected mismatch; Csmith found that C reducers introduce undefined behavior ("The resulting programs are small but useless."), and SQLancer's manual reduction requires "checking that both queries still produce a different result" (Csmith, §4, SQLancer README, Reducing bugs). Use failure-reduction for mechanics and evidence-based-triage for attribution and grouping.
Report the observed disagreement before assigning fault. Use the governing contract and inspectable evidence to adjudicate; majority output is not ground truth. A reference implementation stands in for the contract only when the other side's contract is to match it: LambdaTester takes native output as ground truth because it tests polyfills against the native implementation, while Nessie compares two commits of one library, and its authors sorted a manual sample of the differences into bug, bug fix and upgrade (Selakovic et al. 2018, §4, p.13, Arteca et al. 2022, RQ3, pp.1501–1502). Csmith still catches problems "by hand as part of verifying the failure-inducing program" and states that a shared incorrect output would go undetected. State what actually completed, what the observer omitted, what reproduced and what remains unresolved (Csmith, §2.6). For concrete paired experiments, read worked cases; for misleading shortcuts, read common mistakes.
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