kotlin-specialist

kotlin-specialist is a skill for Claude Code, Codex from HK-hub/AgentSkills. It costs 86 tokens per session (1,345 once invoked), scanned A, a copy of kotlin-specialist, MIT.

A Kotlin development guide covering coroutines, Flow, multiplatform apps, Compose interfaces, Ktor servers, and type-safe DSLs.

In plain words
What is it for?
It supports Kotlin and Android development, multiplatform architecture, coroutine-based programs, Compose UI, Ktor services, testing, and code-quality checks.
Why use it?
It helps developers write Kotlin that handles asynchronous work, cancellation, null values, and shared code safely.

Skill for Claude CodeCodex

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

Good fit It supports Kotlin and Android development, multiplatform architecture, coroutine-based programs, Compose UI, Ktor services, testing, and code-quality checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hk-hub/agentskills/kotlin-specialist
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 HK-hub/AgentSkills --skill kotlin-specialist
Clone the repo
git clone --depth 1 https://github.com/HK-hub/AgentSkills

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 kotlin-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hk-hub/agentskills/kotlin-specialist"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/kotlin-specialist.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,345 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 94% copy Near-identical to another mod 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.01345
Opus 5 $0.00043 $0.00673
Sonnet 5 $0.00017 $0.00269
Haiku 4.5 $0.00009 $0.00135

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

Security

Grade A, and why

kotlin-specialist 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.

Origin

This is a copy

94% identical to kotlin-specialist — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

kotlin-specialist/SKILL.md · 148 lines

How it starts

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

Kotlin Specialist

Senior Kotlin developer with deep expertise in coroutines, Kotlin Multiplatform (KMP), and modern Kotlin 1.9+ patterns.

Core Workflow

  1. Analyze architecture - Identify platform targets, coroutine patterns, shared code strategy
  2. Design models - Create sealed classes, data classes, type hierarchies
  3. Implement - Write idiomatic Kotlin with coroutines, Flow, extension functions
    • Checkpoint: Verify coroutine cancellation is handled (parent scope cancelled on teardown) and null safety is enforced before proceeding
  4. Validate - Run detekt and ktlint; verify coroutine cancellation handling and null safety
    • If detekt/ktlint fails: Fix all reported issues and re-run both tools before proceeding to step 5
  5. Optimize - Apply inline classes, sequence operations, compilation strategies
  6. Test - Write multiplatform tests with coroutine test support (runTest, Turbine)

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Coroutines & Flow references/coroutines-flow.md Async operations, structured concurrency, Flow API
Multiplatform references/multiplatform-kmp.md Shared code, expect/actual, platform setup
Android & Compose references/android-compose.md Jetpack Compose, ViewModel, Material3, navigation
Ktor Server references/ktor-server.md Routing, plugins, authentication, serialization
DSL & Idioms references/dsl-idioms.md Type-safe builders, scope functions, delegates

Key Patterns

Sealed Classes for State Modeling

sealed class UiState<out T> {
    data object Loading : UiState<Nothing>()
    data class Success<T>(val data: T) : UiState<T>()
    data class Error(val message: String, val cause: Throwable? = null) : UiState<Nothing>()
}

// Consume exhaustively — compiler enforces all branches
fun render(state: UiState<User>) = when (state) {
    is UiState.Loading  -> showSpinner()
    is UiState.Success  -> showUser(state.data)
    is UiState.Error    -> showError(state.message)
}

Read the full file on GitHub · 148 lines

Files

What ships with it

5 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. 8d ago First seen · 148 lines · 86 tokens per session scan A c026b7152c53

Subscribe to this mod's changes

kotlin-specialist is a skill published in the GitHub repository HK-hub/AgentSkills (6 stars, last pushed 25d ago), licensed MIT. It adds 86 tokens to every session and 1,345 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to kotlin-specialist, differing in 2 lines, and is treated as a copy.