cratis-chronicle-client-kotlin

cratis-chronicle-client-kotlin is a skill for Claude Code, Codex from Cratis/AI. It costs 41 tokens per session (3,686 once invoked), scanned A, original, MIT.

A guide to using the Chronicle client from Kotlin or Java applications on the JVM. It covers client connections, event classes, suspending event appends, event handlers, read models, and the Spring Boot integration.

In plain words
What is it for?
Use it to connect a Kotlin or Java service to Chronicle, append events, build read models, or integrate with Spring Boot.
Why use it?
It explains how to use Chronicle in a normal JVM application without adopting a separate application architecture. It also identifies the published library versions and Java runtime expectations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect a Kotlin or Java service to Chronicle, append events, build read models, or integrate with Spring Boot.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-chronicle-client-kotlin
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill cratis-chronicle-client-kotlin
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cratis-chronicle-client-kotlin

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-kotlin/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-kotlin)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-kotlin"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-kotlin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cratis-chronicle-client-kotlin

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-kotlin"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.03686
Opus 5.5 $0.00016 $0.01474
Sonnet 5.5 $0.00008 $0.00737
Haiku 4.5 $0.00004 $0.00369

Measured today against content hash d3c4230782dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-chronicle-client-kotlin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cratis/ai/skills/cratis-chronicle-client-kotlin/SKILL.md · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Chronicle client for Kotlin and Java

io.cratis:chronicle is a standalone client SDK. Your application is an ordinary JVM application that happens to talk to a Chronicle server over gRPC. There is no framework to inherit from and no application architecture imposed: you construct a client, ask it for an event store, and append or observe.

For Chronicle.Kotlin 7.x, first read the Fundamentals migration and upgrade notes: ConceptAs.value() and the shared correlation type are breaking changes.

Verified product sources

Source: Cratis/Chronicle.Kotlin, by source symbols and signatures.

Read references/product-sources.md when you need the artifacts and their source modules.

Do not copy a version number out of the repository's README or docs. The version comes from a Gradle property injected at release time — Source/build.gradle.kts reads providers.gradleProperty("version") and defaults to 0.0.0-SNAPSHOT — so the checked-in source never carries the real number. Take it from Maven Central.

The client and the kernel version independently. CompatibilityPreflight checks contracts at connect and throws ChronicleServerIncompatible; do not infer a supported pair just because both products are "latest".

Requires Chronicle kernel 19.30.0 for event source definitions and streams.

Common pitfalls

Pitfall Why it bites
Naming a reactor method after the event The name is ignored; the first parameter's type is the subscription (EventHandlerMethod.kt)
Two @EventType classes sharing a simple name The id defaults to the simple name, so they collide on the wire (EventTypesService.kt)
Shipping the default connection string to production skipTlsValidation defaults to true; certificate validation is off (ChronicleConnectionString.kt)
Copying a version from the README or docs It can lag the release; take the version from Maven Central
Supplying apiKey in the connection string Client construction rejects it with IllegalArgumentException; use user:password@
Expecting getEventStore to suspend It does not — the client already connected in its constructor (ChronicleClient.kt)
Expecting awaitRegistration() to prove all artifacts registered The initial gate completes in finally even after failure; connection rejection still throws ChronicleConnectionFailed
Treating automatic and explicit registration alike The automatic pass logs failures; explicit registerAll() throws ArtifactRegistrationFailed for failed observers, and rejected event-type registration throws ChronicleCommandRejected
Expecting read model reactors to be discovered IReadModelReactor is absent from the scan and from IEventStore; construct ReadModelReactors(...) yourself
Leaving the default classpath scan on in a large app Use withArtifactsFrom(...) or artifact-packages to narrow it (ChronicleOptions.kt)
Expecting WebFlux support from the starter The web auto-configuration is SERVLET-only (ChronicleWebAutoConfiguration.kt)
Exiting main after an append Reactors and reducers stop with the process; the stream is live
Passing a KProperty1 as @VariantOf's key The annotation form always takes a plain string; only the declarative variantOf(...) builder accepts a property reference
A @GlobalFor mapping targeting a property one variant lacks GlobalHandlerPropertyNotOnVariant at registration, not a silently skipped mapping

Read the full file on GitHub · 314 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -70 tokens per session d3c4230782dc
  2. yesterday Changed · +4 lines 80941d4cb6b0
  3. 8d ago Changed · -40 tokens per session ffc6f6be9e2d
  4. 12d ago Changed · -78 lines ce40b38e0b77
  5. 14d ago Changed · -1 lines 2f7917cb93d9
  6. 18d ago Changed · -203 lines 61dc90f2f10b
  7. 1mo ago Changed · +82 lines · +30 tokens per session b482e535621f
  8. 1mo ago Changed · +11 lines 4f9081ee65ec
  9. 1mo ago First seen · 499 lines · 121 tokens per session scan A 1e7da6f2d878

Subscribe to this mod's changes

cratis-chronicle-client-kotlin is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 3,686 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

null-safety

Use when annotating nullability in Spring Boot 3 / Spring Framework 6 code, integrating Kotlin, or adding static nullability checks without assuming Spring Framework 7 JSpecify defaults.

rrezartprebreza/spring-boot-skills · 41 tokens

kotlin-backend-conventions

A set of coding conventions for BK-CI Kotlin back-end projects. Kotlin is a programming language, and back-end code runs the services behind an application.

TencentBlueKing/bk-ci · 71 tokens

backend-microservice-development

Backend microservice development guidance for BK-CI using Kotlin or Java and Spring Boot. It covers resources, API, service, and data-access layers, dependency injection, service ownership, and backend conventions.

TencentBlueKing/bk-ci · 62 tokens

java-kotlin-migration-assistant

Migrate Java code to Kotlin in Spring-based codebases without changing behavior, public contracts, framework compatibility, or binary assumptions unless explicitly intended. Use when converting classes incrementally, replacing Lombok patterns, managing platform types and nullability, preserving JPA and proxy behavior…

JetBrains/skills · 77 tokens

kora-v2

Build and maintain Java/Kotlin services on the Kora Framework 2.0 (io.koraframework) — compile-time DI, zero reflection, synchronous contracts on virtual threads, annotation processors (Java) or KSP (Kotlin). Routes to 40 domain sub-skills. Use when the request mentions Kora, or uses Kora APIs: @KoraApp, @Component…

kora-projects/kora-skills · 337 tokens