kotlin

kotlin is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 58 tokens per session (759 once invoked), scanned A, original, MIT.

A set of patterns for writing and reviewing Kotlin code for applications, backends, and shared business logic. Kotlin is a programming language with built-in support for safer handling of missing values.

In plain words
What is it for?
Use it to structure Kotlin modules, model business data, implement focused functions, manage coroutines, handle failures, and verify behavior.
Why use it?
It helps keep code explicit and safe while handling domain models, errors, collections, asynchronous work, side effects, and tests.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to structure Kotlin modules, model business data, implement focused functions, manage coroutines, handle failures, and verify behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/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 JakubMikolajek/codex-skills-collection --skill kotlin
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: 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 kotlin

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/kotlin"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 759 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.00058 $0.00759
Opus 5 $0.00029 $0.00380
Sonnet 5 $0.00012 $0.00152
Haiku 4.5 $0.00006 $0.00076

Measured 12d ago against content hash 33f7943a91c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

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 12d 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.

skills/kotlin/SKILL.md · 94 lines

How it starts

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

Kotlin Implementation Patterns

Use this skill to keep Kotlin code explicit, null-safe, and aligned with structured concurrency and domain-driven modeling.

Delivery Workflow

Use the checklist below and track progress:

Kotlin progress:
- [ ] Step 1: Discover module conventions and architecture boundaries
- [ ] Step 2: Model domain types and error shapes explicitly
- [ ] Step 3: Implement behavior with small focused functions
- [ ] Step 4: Handle concurrency and side effects safely
- [ ] Step 5: Verify tests and failure paths

Core Rules

  • Prefer val over var unless mutation is required and contained.
  • Keep functions small and intention-revealing.
  • Use types to make invalid states difficult to represent.
  • Preserve null-safety instead of bypassing it with forceful shortcuts.
  • Reuse existing architectural boundaries rather than introducing parallel patterns.

Modeling Data and Behavior

  • Prefer data classes for value-like structures.
  • Use sealed hierarchies or explicit result models for finite state and outcome sets.
  • Keep extension functions narrow, local, and unsurprising.
  • Avoid primitive obsession when domain concepts deserve named types.
  • Make side effects visible at call sites.

Null-Safety and Errors

  • Eliminate nullable values as close to the boundary as possible.
  • Avoid !! unless the invariant is proven and documented by nearby code.
  • Differentiate validation failures, missing data, and infrastructure failures.
  • Prefer explicit result mapping over swallowing exceptions.
  • Keep exception translation near integration boundaries.

Coroutines and Concurrency

  • Use structured concurrency and inherit the project's coroutine conventions.
  • Keep cancellation behavior intact; do not swallow cancellation exceptions.
  • Avoid blocking calls inside suspending flows unless isolated appropriately.
  • Keep dispatching decisions explicit when work crosses CPU, IO, or main-thread boundaries.
  • Model loading and concurrent work so callers can reason about lifecycle and failure.

Read the full file on GitHub · 94 lines

Files

What ships with it

1 file 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. 12d ago First seen · 94 lines · 58 tokens per session scan A 33f7943a91c2

Subscribe to this mod's changes

kotlin is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (5 stars, last pushed 6d ago), licensed MIT. It adds 58 tokens to every session and 759 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.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

code-review-csharp

Perform structured code reviews of C# source code covering naming conventions, performance, security, readability, and .NET best practices. Trigger phrases include "review this C# code", "check my C# for best practices", "analyze this C# class", "find issues in my C# code".

pnp/copilot-prompts · 66 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

go-concurrency-safety

L1 supplement - audits Go-specific concurrency hazards in node client code: map iteration non-determinism, goroutine leaks, mutex ordering, panic boundaries, context cancellation.

PlamenTSV/plamen · 40 tokens

ring:auditing-dependency-security

Auditing a dependency for supply-chain risk before install (pip/npm/go/cargo): checks typosquatting, maintainer/age risk, vulnerability DBs (OSV, GHSA, Socket), and lockfile hash pinning, then emits a risk score and approve/conditional/escalate/block decision. Use when adding or updating a dependency, reviewing a…

LerianStudio/ring · 102 tokens

ts-review

A TypeScript code-review skill for projects that keep multiple packages in one repository. Such a repository is called a monorepo.

liuyanghejerry/Clausura · 26 tokens