kora-json

kora-json is a skill for Claude Code from kora-projects/kora-skills. It costs 54 tokens per session (1,983 once invoked), scanned A, original, Apache-2.0.

A Kora feature that generates JSON readers and writers during compilation from annotated Java records or Kotlin data classes. JSON is the text format commonly used to exchange structured data between applications.

In plain words
What is it for?
Use it to define JSON for HTTP request and response objects, sealed types with different variants, cache values, or Kafka messages, including custom field and null-handling rules.
Why use it?
It catches unsupported data shapes during the build and avoids relying on reflection or discovering mappings only while the application is running.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Kora sub-skill — obey the [kora-v1 meta rules](../../SKILL.md) on every task:** **R0** ensure `.kora-agent/` docs+examples are cloned · **R1** read this sub-s.

Part of the kora-v1 plugin — 41 skills shipped together

Good fit Use it to define JSON for HTTP request and response objects, sealed types with different variants, cache values, or Kafka messages, including custom field and null-handling rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kora-projects/kora-skills
agentmods
npx agentmods add skills/kora-projects/kora-skills/kora-json

Made for: Claude Code.

Or install kora-v1, the plugin that ships this one along with the rest of its 41 skills.

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 kora-json

README.md
[![agentmods](https://agentmods.dev/badge/skills/kora-projects/kora-skills/kora-json.svg)](https://agentmods.dev/skills/kora-projects/kora-skills/kora-json)
Your own site
<a href="https://agentmods.dev/skills/kora-projects/kora-skills/kora-json"><img src="https://agentmods.dev/badge/skills/kora-projects/kora-skills/kora-json.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,983 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.00054 $0.01983
Opus 5 $0.00027 $0.00992
Sonnet 5 $0.00011 $0.00397
Haiku 4.5 $0.00005 $0.00198

Measured 8d ago against content hash ce8bb9521d01, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

kora-json 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 8d 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.

plugins/kora-v1/skills/kora-json/SKILL.md · 223 lines

How it starts

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

Kora JSON — compile-time JSON processing

Kora sub-skill — obey the kora-v1 meta rules on every task: R0 ensure .kora-agent/ docs+examples are cloned · R1 read this sub-skill before writing code · R2 Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · R3 journal any incorrect Kora usage. Add comments/Javadoc only if asked.

Kora generates JsonReader<T> / JsonWriter<T> at compile time from @Json-annotated records (Java) or data classes (Kotlin). No reflection, no runtime mapper discovery: an unsupported shape fails the build instead of throwing at runtime. Put @Json on the DTO type itself, not only on the controller parameter — that lets the mapper be generated during normal annotation processing and reused across HTTP bodies, cache values, and Kafka payloads.

Quick Start

build.gradle (all Kora artifacts inherit their version from the kora-parent BOM — never pin individual ru.tinkoff.kora:* versions):

dependencies {
    koraBom platform("ru.tinkoff.kora:kora-parent:1.2.19")

    annotationProcessor "ru.tinkoff.kora:annotation-processors" // mandatory: generates readers/writers
    implementation "ru.tinkoff.kora:json-module"
}

Kotlin uses KSP instead: ksp "ru.tinkoff.kora:symbol-processors".

Wire the module into the application graph:

@KoraApp
public interface Application extends JsonModule {
    static void main(String[] args) {
        KoraApplication.run(ApplicationGraph::graph);
    }
}

Define DTOs and a controller (adapted from kora-java-guide-json-app):

@Json
public record UserRequest(String name, String email) {}

@Json
public record UserResponse(String id, String name, String email, LocalDateTime createdAt) {}

@Component
@HttpController
public final class UserController {

    private final UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    @HttpRoute(method = HttpMethod.POST, path = "/users")
    @Json
    public UserResponse createUser(@Json UserRequest request) {
        return userService.createUser(request);
    }
}

Read the full file on GitHub · 223 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. 8d ago First seen · 223 lines · 54 tokens per session scan A ce8bb9521d01

Subscribe to this mod's changes

kora-json is a skill published in the GitHub repository kora-projects/kora-skills (1 stars, last pushed 7d ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,983 once invoked, about $0.0003 per session on Opus 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-08-31.