Cratis.AI
8.0.2
Prefix Reserved
See the version list below for details.
dotnet add package Cratis.AI --version 8.0.2
NuGet\Install-Package Cratis.AI -Version 8.0.2
<PackageReference Include="Cratis.AI" Version="8.0.2" />
<PackageVersion Include="Cratis.AI" Version="8.0.2" />
<PackageReference Include="Cratis.AI" />
paket add Cratis.AI --version 8.0.2
#r "nuget: Cratis.AI, 8.0.2"
#:package Cratis.AI@8.0.2
#addin nuget:?package=Cratis.AI&version=8.0.2
#tool nuget:?package=Cratis.AI&version=8.0.2
Cratis AI
This repository ships two things from one source of truth:
Cratis.AI(NuGet) is the backend package: AI providers, pools, tiers, concurrency, conversations, agents, worker/harness scheduling, and usage. Add it withdotnet add package Cratis.AI; the backend quick start takes you to a first chat call, and backend documentation starts at Documentation/index.md.- The Cratis AI corpus and tooling are the skills and rules coding agents use when building with or contributing to Cratis, plus the tools that install and verify them.
Which entry point do you need?
| You want to | Start here |
|---|---|
| Use the backend package in an application | Backend quick start, then the Documentation index and Architecture |
| Give a repository the skills and rules | Managed installation below |
| Use the corpus from a single harness | Native plugins below |
The rest of this README covers the corpus and its tooling.
Repository layout
.cratis/ai/ The corpus: skills, rules, profile catalog and installer manifest
Source/
Harness.Setup/ Maintains this repository's own harness adapters
Pi.Plugin/ Published @cratis/pi package
ScreenplaySession/ Stack-neutral Screenplay guidance published as the session bundle
Verification/ Corpus, catalog, package and guard checks
Evaluations/ Compiled examples that keep skill examples honest
.claude/ .github/ .agents/ .pi/ .cursor/ .opencode/ Harness adapters that link to .cratis/ai
There is one canonical corpus: .cratis/ai. Harness folders link to it,
including to the generated Copilot instruction copies.
AGENTS.md, CLAUDE.md and .github/copilot-instructions.md link to
.cratis/ai/rules/general.md, the one page every session reads.
Managed installation
Start with the profile that matches the repository:
| Profile | For |
|---|---|
cratis/application |
Build an application on Cratis: model a business flow, choose SDK guidance, implement a slice, and verify its behavior. |
cratis/engineering |
Change a Cratis platform repository with the platform skills and internal engineering guidance, including .NET build and diagnostic skills for C#. |
The table recommends starting points; cratis ai profiles list lists every profile in this catalog. Select specialist profiles by ID, including cratis/v2/application for the mixed .NET and React walkthrough.
cratis ai install \
--harnesses claude,codex,copilot,cursor,opencode,pi \
--profiles cratis/application \
--languages csharp,typescript
The CLI reads .cratis/ai/manifest.json, resolves the profile's skills through
.cratis/ai/profile-catalog.json, installs them in .cratis/ai and creates the
adapters each harness reads. It records hashes in .cratis/ai.manifest.json,
refuses to overwrite files it does not own, and stops an update or uninstall when
managed content was edited unless --force is used. For Copilot, use the CLI release that filters Copilot instruction copies: only copies for selected rules are installed.
Installing and using the corpus covers status, update, uninstall and what a session sees. Migration explains what changed and how profile composition works.
Native plugins
Claude Code, Codex, GitHub Copilot and Cursor can install the corpus as a plugin
from the marketplace manifests in this repository; .cratis/ai/plugin.json is the
Copilot plugin manifest. A plugin exposes every skill and applies no profile. The
version in these manifests is a manifest version, not the release version: change
it in all of them together; verification fails when they differ.
Pi uses the published package:
pi install -l npm:@cratis/pi
@cratis/pi reads .cratis/ai.json when present and exposes the skills its
profiles select; without the file it exposes every packaged skill. It stands down
when the CLI already manages the repository.
Contribute
Review a change to a skill, rule, hook, MCP entry or adapter as you would review
code: it influences what coding agents execute in other repositories. Check any
package name, registry and install command against the intended upstream source.
.github/CODEOWNERS routes these paths to @Cratis/core.
Authoring skills has the checklist a skill must meet and the files that change with it. Compatibility lists the product releases the skills were checked against.
corepack enable
yarn install --immutable
yarn workspace @cratis/harness-setup run check
yarn workspace @cratis/ai-verification run verify
Install once at the repository root; the workspaces share one yarn.lock.
Release
.github/workflows/publish.yml is the only release workflow. It verifies
the corpus and packages, checks semantic release intent, uses
cratis/release-action to calculate the version after merge, and publishes
@cratis/pi when a release is requested by the merged pull request label.
Each release also attaches the Screenplay session bundle (screenplay-session.zip
and its .sha256) to the GitHub release; see
Screenplay session bundle.
.github/workflows/verify-pull-request-policy.yml is a thin caller of the
organization pull-request policy gate. It checks release intent and fails a
release-bound pull request whose description would not publish as release
notes. The local PR-body checker recognizes this caller as well as the legacy
verify-release-notes and verify-semver-label callers.
Acknowledgments
Event Modeling is the work of Adam Dymitruk; Martin Dilger's Understanding Eventsourcing shapes much of the method the modeling and Screenplay skills teach. This corpus has adapted material from agentic-engineer by Martin Dilger and Nebulit GmbH, used with their explicit consent, and from the MIT-licensed TrogonStack agentskills by Straw Hat, LLC.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Anthropic (>= 12.47.0)
- Cratis.Arc.Chronicle (>= 22.23.0)
- Cratis.Arc.Core (>= 22.23.0)
- Cratis.Arc.MongoDB (>= 22.23.0)
- Cratis.Chronicle (>= 19.4.7)
- Cratis.Chronicle.AspNetCore (>= 19.4.7)
- Cratis.Fundamentals (>= 7.26.1)
- Docker.DotNet.Enhanced (>= 4.3.3)
- FluentValidation (>= 12.1.1)
- KubernetesClient (>= 21.0.8)
- Microsoft.Extensions.AI (>= 10.10.0)
- Microsoft.Extensions.AI.OpenAI (>= 10.10.0)
- Microsoft.Extensions.Http (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
-
net11.0
- Anthropic (>= 12.47.0)
- Cratis.Arc.Chronicle (>= 22.23.0)
- Cratis.Arc.Core (>= 22.23.0)
- Cratis.Arc.MongoDB (>= 22.23.0)
- Cratis.Chronicle (>= 19.4.7)
- Cratis.Chronicle.AspNetCore (>= 19.4.7)
- Cratis.Fundamentals (>= 7.26.1)
- Docker.DotNet.Enhanced (>= 4.3.3)
- FluentValidation (>= 12.1.1)
- KubernetesClient (>= 21.0.8)
- Microsoft.Extensions.AI (>= 10.10.0)
- Microsoft.Extensions.AI.OpenAI (>= 10.10.0)
- Microsoft.Extensions.Http (>= 10.0.11)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cratis.AI:
| Package | Downloads |
|---|---|
|
Cratis.Scene.Design.AI
Scene Design with AI: a tool loop over the design catalogue and the Screenplay compiler that designs screens, variations and tweaks, turns images into screens, and establishes a design system from the sources a host supplies. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.1.0 | 0 | 11/30/2026 |
| 8.0.2 | 0 | 11/30/2026 |
| 8.0.1 | 0 | 11/30/2026 |
| 8.0.0 | 0 | 11/29/2026 |
| 7.194.3 | 6 | 11/29/2026 |
| 7.194.2 | 111 | 11/27/2026 |
| 7.194.1 | 50 | 11/27/2026 |
| 7.194.0 | 48 | 11/27/2026 |
| 7.193.2 | 50 | 11/27/2026 |
| 7.193.1 | 50 | 11/27/2026 |
| 7.193.0 | 49 | 11/27/2026 |
| 7.192.0 | 53 | 11/27/2026 |
| 7.191.5 | 50 | 11/27/2026 |
| 7.191.4 | 58 | 11/27/2026 |
| 7.191.3 | 64 | 11/27/2026 |
| 7.191.2 | 53 | 11/27/2026 |
| 7.191.1 | 79 | 11/26/2026 |
| 7.191.0 | 75 | 11/26/2026 |
| 7.190.3 | 76 | 11/26/2026 |
| 7.190.2 | 174 | 11/26/2026 |