Repository navigation
Release v8.0.0
The AI corpus at .cratis/ai is replaced by v2. Task-focused skills cover building and debugging applications on the Cratis platform, from the first event-modeling conversation to a diagnosed slice, in every language the SDKs support. The existing profiles keep their IDs and install the same capabilities as before, with fewer and clearer skills and rules. V2 keeps a small set of scoped agents and retires the bundled prompts and the old skill evaluation system.
Added
Skills along the whole path
- Scaffold an application, discover the timeline, design the event model, edit the Screenplay workspace, declare slices and outcomes, render with Stage, record and constrain events, build read models, react to facts, expose commands and queries, bind them in React with Components, write specs, configure environments, deploy the Chronicle kernel and diagnose a slice with the
cratisCLI. cratis-modeling-trace-existing-behaviorreconstructs the event model of an existing system from its code and data, including black-box intake, resumable traces and side-car migration.cratis-modeling-review-event-modelreviews an event model or event-sourced implementation for anti-patterns and recommends corrections.- Timeline discovery includes structured questions and workshop or document intake, and event modeling includes a one-slice review.
- Guidance for onboarding a Screenplay workspace, authoring and consuming Screenplay extensions, relational schema migrations, verifying service handoffs, contract reconciliation between model and code, and contributing and preparing a release PR in platform repositories.
Languages
- Tasks that several SDKs implement use a language-neutral
SKILL.mdwith nativereferences/<language>.mdfor C#, TypeScript, Kotlin, Java, Go and Elixir. An install only receives the references for its selected languages. - Python application guidance uses an HTTP service boundary rather than treating the generated contracts as an application SDK.
- Scaffolding covers C# with React (default), Aspire, Chronicle-only console and web apps, and Kotlin and Java Spring Boot with React. Go, Elixir, Python and TypeScript-only applications have no template; the starter skill points to the relevant host guidance.
Documentation/compatibility.mdlists the checked SDK releases. Skills distinguish released features from unreleased or separately versioned integrations.
Guidance suggested by an adopter
From comparing an application on Arc 25.3 and Chronicle 19.195 with the v2 skills:
- Safe sort keys for results with masked fields, rechecking live query authorization on every emission, and a test for a role change during a still-valid session.
- Durable facts before irreversible mail, one idempotency key per reactor side effect, and retrying after a lost append acknowledgement.
- When to use the constraint builder instead of the attribute, which reads guard an append, when to use an explicit consistency scope, and what encryption-key deletion erases.
- A single-tenant application with a fixed storage namespace and per-organization authorization.
- Server search versus filtering a loaded page, a re-entry guard for one-click row actions, product-owned palettes and server-localized validation messages, and calling commands from a view model while keeping the typed result.
- A workaround for command-level
[EventSource<T>]on Arc 25.3 releases before 25.3.3. #1373
Profile
cratis/v2/applicationis an opt-in walkthrough for the v2 application skills. It does not replacecratis/application.
Changed
Profiles keep their meaning
- All 91 existing profile IDs keep their language declarations and composition.
cratis/chronicle/multi-tenancynow also composescratis/chronicle/compliance. MCP server declarations are unchanged. - Each profile installs the capabilities it installed before, also when selected on its own, for example
cratis/arc/core,cratis/arc/react, the standalone .NET specifications, the Chronicle clients, compliance and Stage. Specialist and internal .NET engineering guidance stays behind the profiles that select it. - Composed profiles are filtered by language. An explicitly selected profile still installs its own targets, including mixed-stack guidance. A handoff to a skill outside the installed selection names the profile that installs it.
- No profile is marked as featured, so
cratis ai profiles listlists every profile. - Install with, for example,
cratis ai install --profiles cratis/application --harnesses pi --languages csharp,typescript. With C# and TypeScript,cratis/applicationinstalls 87 skills and 39 rules. With C#,cratis/engineeringinstalls 75 skills and 31 rules.
Clearer guidance
- Each task has one default path, with at most a short note on when to use something else.
- One policy each for where a slice lives (the
Features/folder is specific to the examples), PR release notes and issue references, and follow-up commands from a reactor versus command calls from a service. - Work code-first unless the repository opts in to Screenplay: a
.playsource,mcpServers.screenplay.rootin.cratis/ai.json, or the user asks for Screenplay or Stage.modelFirst.frozenin.cratis/ai.jsonmarks committed.playfiles as generated evidence. - Rules are scoped by path and, where applicable, by profile; application and platform rules are kept separate.
- Only two rules load on every turn:
general.md(scope, approvals, safety) andverification-discipline.md. The other rules load for matching files or tasks;general.mdlists them so safety-relevant ones (browser and operational safety) still apply before they are opened. Always-on text for an application profile drops from about 2,800 to 930 words; for a C# file from about 10,700 to 5,700 words. Copilot gets the same preflight list through a generatedapplyTo: "**/*"instruction, and Pi announces where the rules directory is. - Engineering guidance runs the smallest check that can disprove a change, keeps CI's configuration, Tier A gates, required CI and security review, and schedules review by the changed contract, tier, policy or explicit request rather than by default.
- Event modeling guidance covers outbound translation (a private fact published as a public contract) next to inbound translation, and adds short contrasting examples for discovery, single-slice review and tracing existing behavior.
- Evaluations add a Kotlin routing case and an opt-in comparison for delivering a slice.
Agents, hooks and harness setup
- Scoped agents remain for slice implementation, browser checks, and code, performance and security review. Every profile that installs the
slice-implementeragent also installs the skill it loads. Harness setup links the agents and generates Pi and OpenCode adapters. - Claude keeps a bounded edit advisory and the secret checks; Pi no longer runs that scan after edits. Harness setup checks agent adapter drift and regenerates the Copilot instruction copies.
Breaking changes and upgrade
- Breaking: use Cratis CLI 3.158.0 or later (Cratis/cli#669). An older CLI still installs v2, but an update from v1 leaves the retired skill folders empty, keeps
promptslinks to an empty folder, and copies Copilot instructions for rules of profiles you did not select. With 3.158.0 an update from v1 leaves exactly the v2 selection, removes those links and empty folders, and keepsrules/project*. - Upgrade: update the CLI, then run
cratis ai update. Locally edited managed files, including retired files, are reported as conflicts by default rather than removed or replaced. SeeDocumentation/corpus-migration.md. - Repositories that consume installed rules as product content: all 27 worker rule files Cratis/Direct reads are still present, but 24 have changed text, including
general.mdandspecs.typescript.md. The separately copiedglossary.mdalso changed. Review the content before updating. Cratis/Direct#3425
Removed
- Breaking: 73 v1 skill names and 12 rule files are retired; their guidance is merged into the v2 skills and rules. All 20 bundled prompts and their slash-command integrations are removed. Of the 17 v1 agents, 12 are retired and five remain. For skill-based security review, select
cratis/review, which installscratis-security-review. - The bundled Pi
subagenttool is removed; this does not remove the generated Pi agents used by harness setup. - The slice-scope advisory, the offline API audit and the automated package-drift validators are removed. Package checks are manual steps in the skills.
- The old skill evaluation engine, its Docker arms, judges, scorers and task sets, and the old per-skill example applications are removed. The product-drift workflow and
product-sync.jsongive way toDocumentation/compatibility.md.
Issues: #1370, #1361, the corpus parts of #1360, #1373 and #1375. Supersedes the stacked #1374 and #1376, which are folded into this PR.