cratis/chronicle/cratis-arc-hosting

Claude Code and agent skill by cratis/chronicle

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating an Arc .NET host, diagnosing missing endpoints or preparing a trimmed publish. Not for command design, running a Chronicle server or Kotlin and TypeScript hosting.

Install

npx vskill@latest install cratis/chronicle/cratis-arc-hosting

SKILL.md

The same SKILL.md was published earlier as cratis/chronicle/cratis-arc-hosting.

Host Arc for .NET

Choose the host and integrations before copying a bootstrap. Arc is standalone CQRS; Chronicle is optional and its client connects to a separate event store. Nothing in AddCratis() runs the Chronicle engine in your application.

Read references/connection-resolution.md when MongoDB or EF Core connections must resolve per tenant or use separate runtime and schema identities.

Verified product sources

PackagePurpose
Cratis, Cratis.Arc, Cratis.Arc.CoreComposition, ASP.NET hosting and standalone host
Cratis.Arc.Chronicle, Cratis.Arc.MongoDB, Cratis.Arc.EntityFrameworkCoreOptional client/storage integrations
Cratis.Arc.Screenplay.EmbeddedOptional embedded event-model explorer

Source: Arc. Check signatures against the consumer's installed version.

Choose one bootstrap

SetupConfigure before BuildActivate after Build
ASP.NET, full event-sourced stack (Cratis)builder.AddCratis(...)app.UseCratis()
ASP.NET, Arc only (Cratis.Arc)builder.AddCratisArc(...)app.UseCratisArc()
Standalone HTTP host (Cratis.Arc.Core)ArcApplication.CreateBuilder(args), then builder.AddCratisArc(...)app.UseCratisArc()

Full-stack ASP.NET bootstrap (requires the Cratis package and configured Chronicle connection; it deliberately does not opt into unsigned headers):

csharp
// Copyright (c) Cratis. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Builder;
var builder = WebApplication.CreateBuilder(args);
builder.AddCratis();
var app = builder.Build();
app.UseCratis();
app.Run();

AddCratis composes Arc, WithChronicle and the Microsoft Identity Platform header scheme. For your own authentication use AddCratisArc plus WithChronicle, not AddCratis. For Arc without event sourcing use AddCratisArc and your storage/services. On the standalone host the listen URL comes from ArcOptions.Hosting.ApplicationUrl, not an argument to UseCratisArc. Read integrations and publish boundaries when selecting storage, disabling MVC, adding generated JSON contracts, or configuring the explorer.

Keep trust and discovery explicit

  • Forwarded identity headers are ignored by default. Set

Cratis:Arc:TrustForwardedIdentityHeaders=true only behind an authenticating, header-stripping ingress that prevents direct backend access. AddCratis registering a scheme does not make the headers trusted.

  • Discovery is anonymous only in Development by default. Elsewhere it requires

authentication, or is unmapped (404) if the host cannot authenticate. Introspection.RequireAuthentication unset chooses that default; assigning false deliberately exposes it everywhere. Roles implies authentication and cannot combine with false. Disable both Introspection.Enabled and Introspection.IdentityDiscovery to remove all discovery; /.cratis/me remains.

  • /.cratis/me uses the authenticated principal, not a readable identity cookie.

Configure a real authentication mechanism before treating protected endpoints as usable. See cratis-arc-authentication-authorization-and-identity for the full ingress, identity and authorization contract.

Source: secure defaults.

Verify the host, not just the compilation

  1. Build in the actual shipping configuration and publish mode, zero warnings.
  2. Start against the intended Chronicle/storage services. Confirm activation

maps one intended command and query; a successful Build alone proves neither.

  1. Exercise anonymous and authenticated requests in Development and Production.

Check discovery switches and protected invocation independently.

  1. For trimmed/NativeAOT output, run that published binary and exercise JSON

responses (including each CommandResult<TResponse>), not only an untrimmed Debug host. Missing metadata or service support is a failed publish check.

  1. Confirm MVC and the embedded explorer are absent wherever they are not intended.

Route near misses

  • Define the command and its proxy: cratis-arc-command.
  • EF schema/migrations: cratis-arc-ef-core-migration.
  • Authentication and identity: cratis-arc-authentication-authorization-and-identity.
  • A standalone Chronicle client or running store: the Chronicle client/CLI skills.
  • Several Arc services with their own event stores: cratis-multi-service-architecture; running them together locally: cratis-multi-service-local-orchestration.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
61
Repository forks
8
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cratis/chronicle/cratis-arc-hosting/badge)](https://verified-skill.com/skills/cratis/chronicle/cratis-arc-hosting)

Something wrong with this skill or its page? Tell us.