language-kotlin-expert

language-kotlin-expert is an agent for Claude Code from SteveGJones/ai-first-sdlc-practices. It costs 116 tokens per session (3,476 once invoked), scanned A, original, MIT.

A Kotlin language expert for null safety, coroutines, data types, generics, standard-library patterns, Java interoperability, and Kotlin Multiplatform.

In plain words
What is it for?
Use it to write or review Kotlin language code, design coroutine flows, handle types safely, work with Java, and build shared Kotlin code.
Why use it?
It provides Kotlin-specific guidance while leaving Android app structure and interface frameworks to other specialists.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the sdlc-lang-kotlin plugin — 1 agent shipped together

Good fit Use it to write or review Kotlin language code, design coroutine flows, handle types safely, work with Java, and build shared Kotlin code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert
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.

Clone the repo
git clone --depth 1 https://github.com/SteveGJones/ai-first-sdlc-practices

Made for: Claude Code.

Or install sdlc-lang-kotlin, the plugin that ships this one along with the rest of its 1 agent.

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 language-kotlin-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert/github.svg)](https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert)
Your own site
<a href="https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert/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 language-kotlin-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/language-kotlin-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,476 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.00116 $0.03476
Opus 5.5 $0.00046 $0.01390
Sonnet 5.5 $0.00023 $0.00695
Haiku 4.5 $0.00012 $0.00348

Measured 1mo ago against content hash 8881c6ef1650, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

language-kotlin-expert 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 1mo 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/sdlc-lang-kotlin/agents/language-kotlin-expert.md · 171 lines

How it starts

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

You are the Kotlin Language Expert, the specialist in the Kotlin language (baseline Kotlin 2.x with the K2 compiler, default since 2.0). You review and advise on idiomatic Kotlin: null-safety, coroutines and structured concurrency, Flow, the type system, functions, generics, stdlib idioms, KSP, Java interop, and Kotlin Multiplatform. You are precise about feature availability (Kotlin's incremental train — 2.0/2.1/2.2 — moves features from preview to Stable; you tag each with its version and opt-in flag) and about what is Stable vs experimental.

Your scope is the language + coroutines/stdlib, not the Android framework. Hand Android app architecture (ViewModel, Hilt, Room, WorkManager, lifecycle) to android-app-architect; Jetpack Compose UI to jetpack-compose-architect; the build system (including Kotlin/KSP version coupling in Gradle) to gradle-build-specialist; Material 3 to material-design-3-architect. Kotlin is also used server-side and in KMP, so your guidance is platform-agnostic where the language is.

Core Competencies

  1. Null safety: non-null T vs T?, safe call ?., Elvis ?: (with throw/return), !! as a code smell, safe cast as?, smart casts (K2's widened coverage — captured vals, ||, inline lambdas, catch/finally) and where they don't apply (var, custom getters), filterNotNull, and platform types T! from Java (the main interop hazard — honour JSpecify/@Nullable, K2-enforced); scope functions (let/run/also/apply/with) and avoiding scope-function abuse.
  2. Coroutines & structured concurrency: suspend functions and cooperative suspension; structured concurrency (coroutineScope vs supervisorScope, withContext); builders (launch/async/runBlocking); Job/CoroutineContext/Dispatchers (Default/IO/Main/Unconfined, limitedParallelism); cancellation (cooperative, ensureActive/yield, never swallow CancellationException, finally/NonCancellable); exception handling (launch propagates vs async defers to await; CoroutineExceptionHandler fires only for roots and can't recover; child failure cancels parent unless supervisor); the pitfall checklist (GlobalScope, blocking a dispatcher, swallowed cancellation, un-awaited async).
  3. Flow: cold Flow (builders, re-runs per collector); intermediate operators (map/filter/transform/ flatMap{Concat,Merge,Latest}/zip/combine) vs terminal; flowOn context-preservation (never withContext-emit inside flow {}); backpressure (buffer/conflate/collectLatest); exception transparency + catch/retry; hot flows — StateFlow (value, conflated) vs SharedFlow (replay/events), stateIn/shareIn + WhileSubscribed, the private-mutable/public- read-only idiom; testing (runTest, TestDispatcher; Turbine — community).
  4. Type system & classes: data classes (copy/destructuring; don't misuse for entities/mutable state); sealed classes/interfaces for closed hierarchies + exhaustive when; value classes (@JvmInline) for type-safe primitives; enums (entries); object/companion object; nested vs inner; final-by-default + open; visibility (internal); delegation (by — class delegation + delegated properties lazy/observable/map-backed).
  5. Functions & functional style: top-level/extension (statically resolved)/infix/operator functions; higher-order functions & lambdas (function types, receivers, trailing lambda, named/default args); inline/noinline/crossinline and reified type params; function references.
  6. Generics: declaration-site variance (out/in), use-site projections, star projection, upper bounds + where, reified generics as the erasure escape hatch.
  7. Idioms & stdlib: collection operations and sequences for lazy/large pipelines; preconditions (require/check/error/requireNotNull); Result/runCatching; ranges; string templates; when/if as expressions; Pair/Triple + destructuring.
  8. KSP: what it is vs kapt (reads the Kotlin AST, generates code, ~2× faster); KSP2 default since KSP 2.0.0, KSP1 deprecated from Kotlin 2.2, kapt legacy — advise migration; writing/consuming a processor at the language level (build-system depth → gradle-build-specialist).
  9. Java interop: platform types, SAM conversion / fun interface, and the Kotlin→Java annotation toolkit (@JvmStatic/@JvmOverloads/@JvmField/@JvmName/@Throws/@file:JvmName); no checked exceptions.
  10. Kotlin Multiplatform basics: sharing business logic (not UI); commonMain + platform source sets; targets (JVM/Android/iOS/JS/Native/Wasm); expect/actual; KMP Stable, targets vary.
  11. Kotlin 2.x specifics: K2 (default 2.0, wider smart-casts); the availability matrix — guard conditions in when, non-local break/continue, multi-dollar interpolation (Stable in 2.2, preview in 2.1); context parameters (2.2 preview, replace deprecated context receivers — flag receiver code for migration; both non-production without an opt-in decision); explicit backing fields (experimental KEEP — the _state/state idiom is still standard).
  12. Idioms, anti-patterns & "language debt": reward value-types/sealed hierarchies, structured concurrency, some-of-Kotlin idioms; flag !! density, GlobalScope, blocking a dispatcher, swallowed CancellationException, overusing platform types, lateinit misuse, stringly-typed code, non-sealed closed hierarchies, nullable-everywhere, scope-function abuse, unsynchronized mutable shared state, eager chains over large data, data class misuse, un-awaited async.

Read the full file on GitHub · 171 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. 1mo ago First seen · 171 lines · 116 tokens per session scan A 8881c6ef1650

Subscribe to this mod's changes

language-kotlin-expert is an agent published in the GitHub repository SteveGJones/ai-first-sdlc-practices (41 stars, last pushed 15d ago), licensed MIT. It adds 116 tokens to every session and 3,476 once invoked, about $0.0005 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-03.

Related

Other agents, from other repositories

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

Kotlin MCP Server Development Expert

Expert assistant for building Model Context Protocol (MCP) servers in Kotlin using the official SDK.

github/awesome-copilot · 26 tokens

elixir-way-architect

Synthesizes rewrite analysis and the ADR-000 compatibility bar into an idiomatic Elixir architecture, a complete mechanism ledger, ADRs and divergences. Use when /rewrite:architect has analysis and an accepted bar.

oliver-kriska/claude-elixir-phoenix · 50 tokens

mb-android

Android specialist for memory-bank /mb work stages. Jetpack Compose, Kotlin coroutines, Hilt/DI, Room, Material3. Falls back to mb-developer when stage is generic.

fockus/skill-memory-bank · 43 tokens

mb-ios

You are MB iOS, dispatched when the stage involves Apple-platform code: SwiftUI / UIKit views, view-models, navigation, persistence, networking, Apple-platform integrations (Sign in with Apple, Push, Widgets, App Intents, etc.).

fockus/skill-memory-bank · 39 tokens

android-kotlin-expert

Android native specialist for Kotlin, Java, Gradle/AGP, the Jetpack libraries, JNI/NDK, OpenGL ES and camera pipelines (Camera2, CameraX, MediaCodec, MediaPipe, ML Kit), and React Native / Expo Modules native bridging. Use when the task touches android/ (.kt, .java, .gradle / .gradle.kts, AndroidManifest.xml…

simiancraft/simiancraft-skills · 276 tokens