Tooluck logoTooluck
SKILL.md

cscheck

Agent skill fromAaronontheweb/dotnet-skills

Write and simplify C# property-based, model-based, and executable specification tests with CsCheck. Use for generators, shrinking, stateful command sequences, Spec guards and rules, implementation conformance, or replaying generated failures.

How to install cscheck

install cscheck
# install the dotnet-skills pack with the skills CLI
npx skills add Aaronontheweb/dotnet-skills

# or add only this skill to Claude Code: copy the folder

skills/cscheck/

# into

~/.claude/skills/cscheck/ (all projects)

.claude/skills/cscheck/ (one project)

skills/cscheck/SKILL.md

MITFull file
1# CsCheck
2
3Use CsCheck to explore inputs and action sequences; keep the application's contract visible in the test.
4Let the library generate, shrink, print, and replay counterexamples. Start with the smallest test that
5can falsify the claim, rather than building a testing framework around CsCheck.
6
7## Choose the test shape
8
9| What needs checking | Start with | Read when needed |
10| --- | --- | --- |
11| A function, round trip, algebraic law, or data transformation | `Gen` + `Sample` | [Properties and generators](references/properties.md) |
12| An implementation with a simpler reference representation | `SampleModelBased` / `SampleModelBasedAsync` | [Stateful and async tests](references/stateful-and-async.md) |
13| A protocol or lifecycle with explicit state, guards, and requirements | `Spec.From`, then `Exhaustive` and `Conform` | [Executable specifications](references/specifications.md) |
14| Async resources or expectations that must incorporate observed outcomes | Generated command arrays + `SampleAsync`, with cleanup inside each case | [Stateful and async tests](references/stateful-and-async.md) |
15| A failing property, seed replay, or a before/after bug demonstration | Native sampling controls and a concrete regression | [Failure discovery and replay](references/failures.md) |
16
17Read only the references needed for the task. These examples use xUnit, but CsCheck itself is test-framework
18independent. Preserve the project's existing framework and package-management conventions.
19…

Excerpt shown under the repository's MIT license.

More skills in dotnet-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates