cratis-specifications-csharp

cratis-specifications-csharp is a skill for Claude Code, Codex from Cratis/AI. It costs 98 tokens per session (2,371 once invoked), scanned A, original, MIT.

A guide for writing C# behavior specifications with Cratis.Specifications. These tests separate setup, the action, and the expected result, and use folders that describe the situation being tested.

In plain words
What is it for?
Use it to add or reorganize C# specifications, create reusable test setup contexts, and test commands, events, read models, or reactors.
Why use it?
It gives C# tests a readable, repeatable structure and helps choose between isolated unit tests and in-process scenario tests. This makes the intended behavior easier to review and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add or reorganize C# specifications, create reusable test setup contexts, and test commands, events, read models, or reactors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-specifications-csharp
View source ↗ Cratis/AI
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill cratis-specifications-csharp
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cratis-specifications-csharp

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-csharp.svg)](https://agentmods.dev/skills/cratis/ai/cratis-specifications-csharp)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-specifications-csharp"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-specifications-csharp.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,371 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.02371
Opus 5 $0.00049 $0.01185
Sonnet 5 $0.00020 $0.00474
Haiku 4.5 $0.00010 $0.00237

Measured yesterday against content hash 8bb2ae277242, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cratis-specifications-csharp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cratis-specifications-csharp/SKILL.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cratis C# specifications

Specifications are executable documentation. The folder tree reads like a table of contents, and each file states one setup, one action, and one or more focused assertions.

Verified product sources

This skill is verified against these exact public releases:

Package Version Purpose
Cratis.Specifications 4.1.0 Specification base, Catch.Exception, ShouldXxx assertions
Cratis.Arc.Testing 22.10.4 CommandScenario<TCommand> and CommandResult assertions
Cratis.Chronicle.Testing 17.0.0 EventScenario, ReadModelScenario<T>, ReactorScenario<T>

Reverify against the owning product repository before claiming support for another version. Never translate an assertion or helper name from memory.

Route near misses

  • The specification is TypeScript, React, or a view model: use cratis-specifications-typescript instead.
  • The question is what a command, projection, reducer, or reactor should do: resolve the behavior first; this skill only specifies already decided behavior.
  • The repository builds a Cratis library rather than an application: stay on the plain Specification base in this file and do not reach for the scenario family except to test the very engine that repository provides.

Step 1 — Choose the specification surface

Situation Surface
Isolated class, collaborators can be substituted Specification + NSubstitute
Arc command pipeline (validators, Provide(), Handle(), appended events) CommandScenario<TCommand>
Chronicle append semantics, constraints, concurrency EventScenario
Projection or reducer state from a sequence of events ReadModelScenario<TReadModel>
Reactor invocation and its side effects ReactorScenario<TReactor>
Host, transport, or real-infrastructure boundary Out-of-process Chronicle integration specification
Setup shared by many specifications Reusable context under given/

Read the full file on GitHub · 231 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 231 lines · 98 tokens per session scan A 8bb2ae277242

Subscribe to this mod's changes

cratis-specifications-csharp is a skill published in the GitHub repository Cratis/AI (2 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 2,371 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

Event Sourcing Testing

Testing event sourcing patterns including event store validation, projection testing, saga orchestration, and event versioning compatibility.

PramodDutta/qaskills · 27 tokens

author-test

Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.

Azure/azure-sdk-for-net · 68 tokens

nunit

Write, run, or repair .NET tests that use NUnit. Use when a repo uses NUnit, [Test], [TestCase], [TestFixture], or NUnit3TestAdapter for VSTest or Microsoft.Testing.Platform execution. USE FOR: writing or reviewing NUnit tests; using [Test], [TestCase], [TestFixture], [SetUp], [TearDown] attributes; configuring…

managedcode/dotnet-skills · 146 tokens

crap-score

Calculates CRAP (Change Risk Anti-Patterns) for a named .NET method, class, or file. USE FOR: explicit CRAP calculation or coverage-and-complexity risk within that named target, including which tests to prioritize. DO NOT USE FOR: project-wide coverage/CRAP, plateaus, or project-wide blockers/priorities…

managedcode/dotnet-skills · 99 tokens

archunitnet

Use the open-source free ArchUnitNET library for architecture rules in .NET tests. Use when a repo needs richer architecture assertions than lightweight fluent rule libraries usually provide. USE FOR: the repo uses or wants ArchUnitNET; architecture testing needs richer modeling than simple dependency checks. DO NOT…

managedcode/dotnet-skills · 104 tokens

coverlet

Use the open-source free coverlet toolchain for .NET code coverage. Use when a repo needs line and branch coverage, collector versus MSBuild driver selection, or CI-safe coverage commands. USE FOR: coverlet setup; CI line or branch coverage; choosing between collector and MSBuild drivers. DO NOT USE FOR: coverage…

managedcode/dotnet-skills · 114 tokens