/bugfinding:race-detection-campaignsfrom bugfinding
Guides race-detector campaigns that search real shared-memory and object-lifecycle interactions. Use when existing race tests miss relevant accesses, designing concurrent workloads, checking instrumentation boundaries, or interpreting Go race, native ThreadSanitizer or Helgrind evidence.
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.
Choose a real sharing or lifetime interaction, then make a fitting detector observe it. Go's detector covers executed paths ("it can't find races in code paths that are not executed"); the original TSan study shows why initialization, publication and reference-count lifetimes matter beyond a downstream crash (Go guide, How to Use, TSan 2009, §§6.3–7.1, pp.67–69).
Read the actual create/publish/use/reload/cancel/close producer and its enabled configuration. Select a legal sequence that overlaps the relevant accesses to the same live object. Coordinate the test phase without locking the whole target operation: excessive synchronization "may hide real races from data race detectors" (workload design, TSan 2009, §6.5, p.69). Use stateful-property-testing for dependent operations.
Verify the selected executable's instrumentation, build exclusions, native modules, plugins and synchronization model. For uninstrumented code, Clang's docs say "TSan may fail to detect races or may report false positives"; Go's plugin package warns "Even simple race conditions may not be automatically detected" (Clang TSan, Limitations, Go plugin warnings). Do not infer end-to-end coverage from a race-enabled driver.
Read only the applicable route:
JavaScript boundary: within one agent "Only one Job may be actively undergoing evaluation at any point in time", and the memory model's data races are defined only over Shared Data Block events, the memory behind SharedArrayBuffer and Atomics (ECMA-262, Jobs and Memory Model). Node worker threads "can share memory" by "sharing SharedArrayBuffer instances" (Node v26.13.0 worker_threads). Route Node, browser and React event or promise ordering races to schedule-exploration. For SharedArrayBuffer shared across workers this pack has no verified detector; a bounded search found none.
Use an existing representative faulty and healthy case to establish the claimed access observer through the same producer; harness-sensitivity owns control design. A detector "must understand the synchronization mechanisms used by the tested program", not merely a compiled test (TSan 2009, §5, pp.65–66).
Pilot a small meaningful lifecycle workload; then vary actors, shared identities, operation sequences and lifecycle phases against measured reach and cost. Repeated test runs and Go -cpu settings (a "list of GOMAXPROCS values") vary ordinary execution; they do not enumerate schedules, and "-cpu does not apply to fuzz tests matched by -fuzz" (Go 1.27.3 testing flags). Use schedule-exploration for controlled choices.
For a compatible native runtime, adaptive delay is a separate experiment, not a Go option or a deterministic replay mechanism (flags, Go exclusion, time-derived seed). Preserve actual workload and results rather than promise same-seed replay.
Track completed operations, relevant lifecycle/access contexts, raw reports, unresolved cases and resource cost. Detector memory/history choices change observation; Go's guide puts typical cost at "memory usage may increase by 5-10x and execution time by 2-20x", so diagnose instrumentation overhead separately from target leaks or hangs (Go overhead, TSan runtime flags). Use bugfinding-campaign for allocation and resource-complexity-testing/liveness-testing for those guarantees.
Keep both conflicting-access stacks, creation/lifetime context, input/setup/sequence, binary/module/build/runtime/options, raw output and replay attempts. Helgrind reports lock-order cycles as "a potential deadlock" without observing an actual hang; keep those claims separate (Helgrind, §§7.3–7.4). Read evidence and model limits, then use failure-reduction and evidence-based-triage for their concerns.
Return the reached interaction, instrumentation/model boundaries, actual resources, finding/replay evidence and untested space. A clean run says nothing about unexecuted paths, and a race observer does not judge logic-dependent correctness: in the original study's flag example, "ThreadSanitizer cannot distinguish between these two cases" (Go guide, How to Use, TSan 2009, §4.4.1, pp.64–65). For misleading shortcuts, read common mistakes. Invocation preserves existing task authority; it does not authorize target changes, installations or external publication.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-testing