cratis-arc-testing-kotlin

cratis-arc-testing-kotlin is a skill for Claude Code, Codex from Cratis/AI. It costs 86 tokens per session (1,466 once invoked), scanned A, original, MIT.

A JVM test-support library for running Arc commands and queries through their real in-process pipelines. JVM means the Java Virtual Machine, which runs Java and Kotlin programs; the tests can run without Spring Boot or Docker.

In plain words
What is it for?
Use it for Kotlin or Java command scenarios, one-shot queries, bounded streaming-query checks, read-model pins, tenant resolution, and Chronicle append assertions.
Why use it?
It checks application behavior through the same generated wiring used by the application instead of bypassing it with hand-built handlers. This helps catch problems in command, query, read-model, tenant, and event-append behavior.

Skill for Claude CodeCodex

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

Good fit Use it for Kotlin or Java command scenarios, one-shot queries, bounded streaming-query checks, read-model pins, tenant resolution, and Chronicle append assertions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-arc-testing-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-arc-testing-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-arc-testing-kotlin

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-testing-kotlin/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-arc-testing-kotlin)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-testing-kotlin"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-testing-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-arc-testing-kotlin

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-testing-kotlin"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-testing-kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,466 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.00086 $0.01466
Opus 5.5 $0.00034 $0.00586
Sonnet 5.5 $0.00017 $0.00293
Haiku 4.5 $0.00009 $0.00147

Measured 7d ago against content hash 659f8a2c13c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-arc-testing-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 7d ago.

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-arc-testing-kotlin/SKILL.md · 132 lines

How it starts

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

Specify Arc behavior on the JVM

Use generated artifacts through the real pipelines, not hand-written handlers that bypass KSP wiring. arc-testing needs neither Spring Boot nor Docker. This is test support, not an alternative production host.

Verified product sources

Source: Arc.Kotlin: Testing/src/main/kotlin/io/cratis/arc/testing (CommandScenario, QueryScenario, ObservableQueryScenario, result assertions), Integrations/Chronicle/ChronicleCommandScenario.kt, and Documentation/guides/testing.mdx. Add testImplementation("io.cratis:arc-testing:<version>"); align it with the runtime, plugin and KSP version.

Choose the pipeline

Behavior Scenario
Execute or validate a command CommandScenario(module, CommandType::class.java)
One-shot query QueryScenario<T> selected by FullyQualifiedQueryName
Streaming query ObservableQueryScenario<T> with bounded collect(maximumEmissions, timeoutMillis)

Application specs select a generated ArcArtifactModule. Manual CommandHandler/QueryPerformer constructors are for framework tests. Arrange services, validators, authorization policies, filters, principal, tenant and correlation id on the scenario before executing it.

Illustrative excerpt: module is the generated module; CreateTask and its TaskRepository/TaskCreated types are supplied by the application.

// Copyright (c) Cratis. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

import io.cratis.arc.testing.CommandScenario

val result = CommandScenario(module, CreateTask::class.java)
    .addService(TaskRepository::class.java, repository)
    .execute(CreateTask("Try Arc"))

result.shouldSucceed().shouldHaveResponse(TaskCreated::class.java)

Command and one-shot query scenarios perform JSON round trips by default, including the module's registered derived types. Keep them enabled to exercise wire behavior. Disable them only for a deliberate pure/in-process assertion; serialization failures propagate to the test, not a successful result. Observable scenarios do not perform opening-argument or result-data round trips.

Read the full file on GitHub · 132 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. 7d ago Changed 659f8a2c13c3
  2. 8d ago First seen · 132 lines · 86 tokens per session scan A 8e303f376661

Subscribe to this mod's changes

cratis-arc-testing-kotlin is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 1,466 once invoked, about $0.0003 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-10-13.