/cscheck:closing-test-gapsfrom cscheck
Hunts for bugs in C# and .NET code by cross-referencing with siblings, docs, callers, history, and ported sources, then probes candidates with CsCheck properties.
Ships in cscheck. 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.
Read the code before testing it: in the trials, reading found most of the bugs before any test ran. Then show each candidate with a probe or a property, written as writing-cscheck-tests says. For parsers, formatters, converters and calendar rules, write the properties early.
git log -L <first>,<last>:<file> on a member's lines, or git log -p -n 20 -- <file>, shows special cases added or removed for one member, which its siblings may need too, workarounds that may have outlived their reason, and the code it replaced. In two runs the history led to three of six bugs;uint shifted before it's widened, which drops the top bit, and values in different units compared or added, such as one fit's error measured on a log scale against others measured in ticks.-0.0 in floating-point code that can produce it;probe.cs in a scratch folder that starts with #:project <csproj>, run with dotnet run -c Release --file probe.cs. Use Release, since an IDE or language server usually holds the Debug output open. A probe only reaches public types. Give it the tests' target framework, such as #:property TargetFramework=net10.0, since a file-based app otherwise takes the SDK's, and pass it its inputs at run time, such as from args, rather than as constants, since the compiler works constant expressions out itself and can get a different answer from the runtime the tests use: in one run, a probe written with constants gave the opposite answer to the tests. To check that a property would catch a bug like the one suspected, break the code on purpose with finding-test-gaps' mutants.cs, which compiles the change in a copy and leaves the repo alone.Report the candidates ranked, each with its evidence (the probe's output, or the property's shrunk case), how likely it is to be real and to be live, and the fix it needs, before fixing any.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bug-hunting, csharp, dotnet, cscheck, property-based-testing
npx claudepluginhub anthonylloyd/cscheck --plugin cscheck3 skills in this plugin
/finding-test-gapsMeasures what C# unit tests don't check, with any test framework, CsCheck or not: code coverage for code no test runs, and a sweep of hand-picked mutants, compiled and run without editing the repo, for code the tests run but don't check. Use when asked how good the tests are or what they miss, e.g. "how good are the tests for LruCache", "what's untested in this project", "mutation test this method", "what do the tests on my branch miss", "do these tests actually check anything". It takes a test project, a source file, types or members, or a branch to compare with. To hunt for the bugs themselves, use closing-test-gaps, and to write the tests, writing-cscheck-tests./writing-cscheck-testsWrites CsCheck tests for .NET code that find bugs rather than just pass. Also use it when writing or reviewing unit tests for pure logic, to consider whether a property would find more or could replace them. E.g. "add a CsCheck property for this parser", "write a round trip test for X", "check Equals and GetHashCode agree", "is my new version faster", "model this protocol as a Spec and check the code conforms", "test this class for thread safety", "why does my property pass when the code is broken". Covers Sample, Equality, SampleModelBased, SampleMetamorphic, SampleParallel, Spec, Faster, causal profiling, Single and Check.Hash, and what changed in CsCheck 5. To hunt for the bugs themselves, use closing-test-gaps.Other plugins' skills for the same job