cratis-specification-by-example SKILL.md skillA
cratis-specification-by-example from cratis/ai is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cratis/ai/cratis-specification-by-example@git:20261014.8b817dcPins git:20261014.8b817dc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cratis/ai
- Path
.cratis/ai/skills/cratis-specification-by-example/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261014.8b817dc, committed Oct 14, 2026
- First version recorded
- Oct 6, 2026
- Size
- 11,902 bytes
- Repository stars
- 4
- License
- MIT
Structure and name executable specifications the Cratis way — one behavior per specification, a for_/when_/and_ path that reads as an English sentence, layered given/ contexts, and an explicit decision about what is not worth specifying. Use when deciding how to organize, name, or scope specifications in any language. Do not use for language mechanics; route to the C# or TypeScript specification skill for those.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Cratis specification by example Cratis calls automated tests **specifications**. That is not a vocabulary preference — it changes what you write. A test asks "does this code still do what it did yesterday?". A specification states what the software promises, in the language of the domain, in a form a machine can check. The folder tree is the table of contents; the file names are the sentences; the assertions are the promises. This skill is the language-agnostic layer. It settles the questions that are the same in C#, TypeScript, and anything else: what to specify, how to name it, where to put it, and when to stop. ## Verified product sources | Source | Version | What it grounds | | --- | --- | --- | | `Cratis.Specifications` analyzers | `CRSPEC0001`–`CRSPEC0007` | The naming and structure rules below are machine-enforced in C#, not taste | The seven diagnostics are declared in `Cratis.Specifications.CodeAnalysis.DiagnosticIds`: | Id | Rule | | --- | --- | | `CRSPEC0001` | A test method inside a specification must be named `should_*` | | `CRSPEC0002` | A file declares at most one specification | | `CRSPEC0003` | A test method must not sit on a reusable `given/` context | …
Read the whole file at its exact version.
How to install
mdr add cratis/ai/cratis-specification-by-example@sha256:b7a6696aedf3683dThe line at the top of this page pins the label git:20261014.8b817dc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_4pscuygrtpw66zk4)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 6, 2026 and Oct 14, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261014.8b817dc latest | 2026-10-14 | 8b817dc | 11,902 B | A | view · diff |
| git:20261014.97fa750 | 2026-10-14 | 97fa750 | 11,839 B | A | view · diff |
| git:20261013.d89a1b7 | 2026-10-13 | d89a1b7 | 12,101 B | A | view · diff |
| git:20261012.c4b6c7f | 2026-10-12 | c4b6c7f | 12,113 B | A | view · diff |
| git:20261006.67290e5 | 2026-10-06 | 67290e5 | 11,704 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (11902 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cratis/ai · 4 stars · license MIT · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4pscuygrtpw66zk4 GET https://markdownregistry.com/api/v1/resolve?ref=cratis/ai/cratis-specification-by-example GET https://markdownregistry.com/api/v1/blob/b7a6696aedf3683d3fa4fa4b28c69f0095e828b72da5a6819f7de90747b59c09
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.