cratis-arc-validation-kotlin

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

A guide to adding validation rules to Cratis Arc commands and queries in Kotlin or Java. It covers reusable rules that can also produce checks for the client, plus server-only validators for more complex logic.

In plain words
What is it for?
Use it to validate commands, queries, concepts, and models, including shared field rules, service-dependent checks, and feature-level filters.
Why use it?
It helps reject invalid requests consistently and keeps checks that need server access or asynchronous work on the server.

Skill for Claude CodeCodex

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

Good fit Use it to validate commands, queries, concepts, and models, including shared field rules, service-dependent checks, and feature-level filters.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-validation-kotlin"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-validation-kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 906 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.00049 $0.00906
Opus 5.5 $0.00020 $0.00362
Sonnet 5.5 $0.00010 $0.00181
Haiku 4.5 $0.00005 $0.00091

Measured today against content hash ee5f713a9946, 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-validation-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-arc-validation-kotlin/SKILL.md · 99 lines

How it starts

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

Validate an Arc command or query in Kotlin or Java

Start with shared fluent rules for literal member checks. Arc also turns them into generated TypeScript client checks. Choose imperative validators when a rule needs services, a cross-field decision, or access to a query request. Choose model and concept rules when a rule belongs wherever a type appears, or when opting out of validation on one edge. For a genuine feature-wide policy, read pipeline filters; keep single-artifact access checks in authorization.

Shared fluent rules — server and generated TypeScript

Use FluentModelValidator<T> for a literal member rule that must run identically on the server and in the generated client. It is a public, final, top-level class over one concrete model, with one public no-argument constructor and a single init block containing only direct ruleFor(...) chains with literal arguments — KSP statically compiles this shape, so no lambda, computed accessor, or helper method is allowed inside it.

package example.tasks

import io.cratis.arc.validation.FluentModelValidator

class CreateTaskRules : FluentModelValidator<CreateTask>(CreateTask::class.java) {
    init {
        ruleFor("title").notEmpty().maxLength(120)
    }
}
package example.tasks;

import io.cratis.arc.validation.FluentModelValidator;

public final class CreateTaskRules extends FluentModelValidator<CreateTask> {
    public CreateTaskRules() {
        super(CreateTask.class);
        ruleFor("title").notEmpty();
    }
}

Java uses the ordinary constructor and method calls — no Kotlin lambda or Continuation. Records with default accessors or accessors that simply return the backing value, and public fields are supported.

The rule vocabulary

Rule Checks
notNull() value is not null
notEmpty() non-blank string
minLength(n) / maxLength(n) / length(min, max) string length
emailAddress() email shape
phone() digits/whitespace/parens/plus/hyphen only
url() http:///https:// prefix
matches(regex) regex match
greaterThan(n) / greaterThanOrEqual(n) numeric lower bound
lessThan(n) / lessThanOrEqual(n) numeric upper bound
withMessage(text) overrides the preceding rule's message; replaces only the first {PropertyName} token

Read the full file on GitHub · 99 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · -236 lines · +4 tokens per session ee5f713a9946
  2. 1mo ago Changed · -88 tokens per session 1c02000665ce
  3. 1mo ago Changed · +17 lines 197d6d19fc7a
  4. 1mo ago Changed · +42 tokens per session eb92b0ddc1de
  5. 1mo ago Changed · -1 lines ae3843553db2
  6. 1mo ago Changed · +33 lines a62e386236d8
  7. 2mo ago First seen · 286 lines · 91 tokens per session scan A 034f3302da77

Subscribe to this mod's changes

cratis-arc-validation-kotlin is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 906 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-19.

Related

cratis-arc-validation-kotlin compared with skills from other repositories

cratis-arc-validation-kotlin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-arc-validation-kotlinCratis/AISkill4todayMITA49Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code