Skip to content

Repository files navigation

Cratis AI

Free, MIT-licensed AI skills, rules, and agent guidance for building event-sourced and CQRS applications with the Cratis ecosystem. Everything here is in preview; the only published package today is @cratis/ai-fundamentals, released as a 0.x evaluation package.

Cratis AI is the controlled source for shared AI skills, engineering guidance, product profiles, and generated multi-harness packages for the Cratis ecosystem.

It serves two separate audiences:

  • Developers building with Cratis receive passive public product profiles for Fundamentals, Arc, Chronicle, Components, and composed applications.
  • Cratis maintainers receive separate engineering profiles for application, framework, client, documentation, Studio, Stagehand, and corpus repositories.

Current status: distribution remains candidate/preview-only. No supported public or engineering profile package has been published. Deterministic review bundles now package 41 passive targets across 34 harness shapes. Four additional targets remain explicitly blocked by MCP or private/local-content safety boundaries, and four superseded legacy skills remain repository-only; together the manifests account for all 49 skill components. A shared coverage record dispositions all 137 component kinds, and four native review snapshots cover 35 statically projected rule/instruction components without package identity. Do not install this mixed source repository or the review bundles as runtime packages.

Assurance has two operating levels: lightweight basic checks for passive candidate/preview iteration, and the existing governed S9/S10 system for stable support, executable/MCP behavior, and broad automated rollout. Advanced assurance remains available but does not gate ordinary passive preview work.

The architecture

Concern Owner
Shared AI behavior and profile composition Cratis/AI
Product APIs, versions, and facts The owning Cratis product repository
Repository-specific context The consuming repository
Generated immutable packages Cratis/AI.Distribution

Canonical skill and rule behavior is reviewed here. Generated packages flow one way to subscribers. Improvements discovered in product repositories flow back through issues or pull requests to this repository; generated folders are never synchronized bidirectionally.

Read Cratis AI distribution and subscriptions for the complete source-of-truth, profile, versioning, pinning, Pi, update, rollback, and contribution model.

Repository layout

skills/                 Canonical public skill sources
engineering/            Canonical Cratis-maintainer skill sources
.ai/                    Legacy corpus being reconciled into profiles
catalog/                Sources, targets, authority, evidence, and coverage
distribution/           Profile, artifact, rollout, and publication contracts
tooling/                Validation and deterministic generation
Documentation/          Architecture, contribution, and usage guidance

.ai/ remains valuable repository-local guidance but is not a publishable package tree. Public and engineering artifacts select exact approved files; they never package the repository wholesale.

Profiles

The complete plan covers Fundamentals, Arc, Arc React, Components, Chronicle, language-specific Chronicle clients, identity, compliance, multi-tenancy, Cratis CLI, Lens, Screenplay, Stage, public Studio/MCP use, Chronicle MCP passive guidance, and language-agnostic/.NET/TypeScript Specifications.

Composition profiles preserve Arc-only, Chronicle-only, Arc + Chronicle, React, full application, and Screenplay → Stage boundaries. Public-safe engineering profiles cover every Cratis product/repository family; private repositories add local overlays rather than receiving confidential shared packages.

Browse the generated package and capability catalog to compare public and maintainer packages, see their included skills, and check whether they are planned, candidates, or installable.

See distribution/profile-catalog.json, Profile reference, developer adoption, maintainer adoption, and private repository overlays, and release-on-merge.

A consuming repository will pin profiles in project-owned .cratis/ai.json:

{
  "schemaVersion": "1.0.0",
  "channel": "cratis-engineering",
  "version": "1.0.0",
  "profiles": ["engineering-chronicle"],
  "harnesses": ["claude", "codex", "copilot", "pi"],
  "updatePolicy": "reviewed-pull-request",
  "projectContext": ".cratis/PROJECT.md"
}

The example is illustrative until the first package is published. Floating versions such as latest are forbidden.

Pi

Pi is a first-class distribution target. Released profiles will be ordinary versioned Pi packages containing passive skills and references:

# User-wide maintainer base
pi install npm:@cratis/ai-engineering-base@1.0.0

# Exact project profile pin
pi install -l npm:@cratis/ai-engineering-chronicle@1.0.0

Project installation writes .pi/settings.json; after project trust, Pi installs missing exact packages automatically. Pinned packages do not float. Update and rollback change the exact version through a reviewed pull request.

These commands describe the released workflow and are not available until the packages exist. See the Pi package workflow.

Supported output formats

The candidate generator emits separate public and engineering review bundles, each with a portable Agent Plugins 1.0 package for compatible hosts alongside Agent Skills and native adapters for Claude Code, Codex, GitHub Copilot, Cursor, Gemini CLI, Grok Build, Deep Code, preview DeepSeek Harness, Kiro, Junie, and Pi/npm. Copilot, Cursor, Kiro, and VS Code share the same portable plugin identity. Claude, Grok, and Junie share one Claude-compatible marketplace package rather than separate skill instructions.

Normalized evidence and computed support distinguish the monotonic technical ranks: unsupported, documented, generated, statically-validated, install-tested, behavior-tested, lifecycle-tested, release-tested, and supported. Marketplace listing is an orthogonal status and is required only when a delivery binding claims marketplace availability. Adapter or candidate generation alone is not installation evidence, support, or a marketplace-publication claim. See the catalog v2 evidence and support model and offline portable compliance.

Contributing an improvement

Use the Propose a shared Cratis AI improvement issue form. Include:

  • originating repository;
  • immutable source revision;
  • affected profiles and products;
  • first-party product authority;
  • compatibility and migration impact.

Product repositories do not publish Cratis AI packages or push generated bytes. After canonical review, a new immutable release is generated and subscriber repositories receive reviewed update pull requests.

Validation

Run the complete local gate after changing release-relevant content:

node tooling/harness-registry.mjs
node tooling/generate-catalog-v2.mjs
node tooling/generate-support.mjs
node tooling/generate-ecosystem-artifact-coverage.mjs
node tooling/generate-human-catalog.mjs
node tooling/generate-repository-inventory.mjs
node tooling/portable-compliance-validation.mjs --verify-lock
node tooling/release-assurance-validation.mjs
node tooling/preview-readiness.mjs
node tooling/validate-catalogs.mjs --basic
node tooling/run-spec-suite.mjs --basic
# Optional full governed audit:
node tooling/validate-catalogs.mjs
node tooling/run-spec-suite.mjs --governed
.ai/hooks/scripts/validate-ai-setup.sh
git diff --check

The main workflow runs for canonical skills, engineering content, catalogs, distribution contracts, evidence, evaluations, documentation, workflows, and tooling.

Current release state

@cratis/ai-fundamentals uses the normal Cratis release flow: exactly one major, minor, patch, or no-release pull-request label, followed by an automatic release from protected main. Releases stay on 0.x.y and publish to npm latest through trusted OIDC while the API is still evolving. Package provenance and lifecycle checks do not grant support.

A 1.0.0 release, stable support, and broad rollout still require the governed S9/S10 lane, including real consumer lifecycle canaries, release evidence, and explicit support approval. Until those gates pass, the package remains an unsupported evaluation endpoint.

Native marketplace installation

Cratis/AI.Distribution v0.2.0 provides one 34-skill public-cratis-ai root for Agent Skills, Agent Plugin, Claude Code, Codex, GitHub Copilot, Gemini CLI, Kiro, and Pi. The Distribution README contains exact version-pinned commands. Claude, Codex, Copilot, and Pi public install/discovery/remove canaries pass; Gemini gallery discovery is enabled. OpenAI and Cursor packages are prepared release assets but still require owner-authenticated vendor submission and review.

This remains an unsupported 0.x evaluation distribution. Marketplace availability does not imply behavior support, broad-rollout approval, or a stable support claim.

Evaluation artifacts

Cratis/AI.Distribution v0.1.0 contains one checksum-bound download with all currently generated review output: 41 packaged skill targets across 68 host-specific archives, plus four native non-skill rule/instruction archives kept in their own semantic form. The release manifests retain every blocked and repository-only exclusion. These downloads are public evaluation artifacts, not supported installers or marketplace claims.

About

Free, MIT-licensed AI skills, rules, and agent guidance for building event-sourced and CQRS applications with the Cratis ecosystem (preview).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages