role-kotlin-engineer

role-kotlin-engineer is a skill for Claude Code from saemihemma/lead-producer-oss. It costs 41 tokens per session (639 once invoked), scanned A, original, MIT.

A code-review guide for Kotlin, a programming language used for Android, server, and multiplatform software.

In plain words
What is it for?
Use it when reviewing or writing Kotlin to check null safety, immutable values, coroutines and Flow, sealed classes or interfaces, formatting rules, and tests using Kotest, Turbine, or coroutine test tools.
Why use it?
It helps catch unsafe handling of missing values, accidental changes to shared data, coroutine and data-stream errors, weak sealed-type designs, and inadequate tests.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when reviewing or writing Kotlin to check null safety, immutable values, coroutines and Flow, sealed classes or interfaces, formatting rules, and tests using Kotest, Turbine, or coroutine test tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saemihemma/lead-producer-oss/role-kotlin-engineer
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 saemihemma/lead-producer-oss --skill role-kotlin-engineer
Clone the repo
git clone --depth 1 https://github.com/saemihemma/lead-producer-oss

Made for: Claude Code.

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 role-kotlin-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-kotlin-engineer/github.svg)](https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-kotlin-engineer)
Your own site
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-kotlin-engineer"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-kotlin-engineer/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 role-kotlin-engineer

Your own site · 80×15
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-kotlin-engineer"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-kotlin-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 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.00041 $0.00639
Opus 5 $0.00020 $0.00319
Sonnet 5 $0.00008 $0.00128
Haiku 4.5 $0.00004 $0.00064

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

Security

Grade A, and why

role-kotlin-engineer 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 11d 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.

.claude/skills/role-kotlin-engineer/SKILL.md · 63 lines

How it starts

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

Kotlin Engineer

Use When

  • Reviewing or writing Kotlin code (server, Android, KMP)
  • Assessing null safety, coroutine correctness, or Flow patterns
  • Evaluating test quality or sealed type design

Do NOT Use When

  • Problem is architecture-level, not language-level
  • Code is Java (different idioms even on same platform)

What You Own

  • Null safety discipline (no !!, proper ?. and ?: usage)
  • Immutability enforcement (val over var, immutable collections)
  • Coroutine and Flow correctness
  • Sealed class/interface design
  • Test quality (Kotest, Turbine, kotlinx-coroutines-test)

Working Method

  1. Check ktlint/Detekt compliance.
  2. Verify null safety: no !! operator, proper use of ?., ?:, requireNotNull().
  3. Inspect immutability: val default, immutable collections in public APIs, copy-on-write.
  4. Check coroutine patterns: structured concurrency, cancellation safety, no caught CancellationException.
  5. Verify test coverage: ViewModel + UseCase tests minimum per feature.
  6. Produce verdict with highest-risk issues first.

Key Idioms

  • val over var always; data class for value types
  • Sealed classes/interfaces with exhaustive when (no else branch)
  • Scope functions: let (null-check + transform), apply (config), also (side effects) — max 2 nesting levels
  • Extension functions in dedicated files (StringExt.kt, FlowExt.kt)
  • Result<T> and runCatching {} for error handling
  • Never catch CancellationException (always rethrow)
  • Prefer hand-written fakes over mocking frameworks

Testing Standards

  • Frameworks: kotlin.test (KMP), JUnit 4/5 (Android)
  • Flow testing: Turbine with test {} builder
  • Coroutine testing: runTest with TestDispatcher and advanceUntilIdle()
  • Database: Room inMemoryDatabaseBuilder() or SQLDelight in-memory driver
  • HTTP: Ktor MockEngine
  • Naming: backtick-quoted descriptive names
  • Organization: commonTest, androidUnitTest, androidInstrumentedTest, iosTest

Default Output

KOTLIN REVIEW
=============
Safety: null handling, immutability, coroutine correctness
Patterns: sealed types, scope functions, extension design
Quality Risks: `!!` usage, mutable leaks, missing Flow tests
Recommendation: highest-leverage fixes

Read the full file on GitHub · 63 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. 11d ago First seen · 63 lines · 41 tokens per session scan A 4ed514426ba9

Subscribe to this mod's changes

role-kotlin-engineer is a skill published in the GitHub repository saemihemma/lead-producer-oss (2 stars, last pushed 7d ago), licensed MIT. It adds 41 tokens to every session and 639 once invoked, about $0.0002 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

axiom-audit-codable

Use when the user mentions Codable review, JSON encoding/decoding issues, data serialization audit, or modernizing legacy code.

CharlesWiltgen/Axiom · 32 tokens

axiom-swift-simplifier

Use when the user wants to simplify Swift code, reduce boilerplate, or make Swift more readable and idiomatic without changing behavior.

CharlesWiltgen/Axiom · 34 tokens

kotlin-concurrency-and-flow

Use when writing or reviewing Kotlin coroutine scope ownership, raw Thread or Executor work, init launches, non-suspending launch APIs, runBlocking, cancellation, StateFlow, SharedFlow, Channel, stateIn, SharingStarted, state updates, or one-shot events.

chrisbanes/skills · 60 tokens

kotlin-api-design

Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.

chrisbanes/skills · 46 tokens

coding-best-practices

Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.

rshankras/claude-code-apple-skills · 55 tokens

swift-concurrency-review

Review Swift 6 strict-concurrency and SwiftUI code for idiom and build-breaking issues - non-Sendable across actor boundaries, @MainActor witness vs nonisolated protocol requirements, Combine/ObservableObject usage, force-unwraps, #Predicate macro limits, the 6.3.x Binding IRGen crash, missing #if os() guards, and…

charlesjones-dev/claude-code-plugins-dev · 94 tokens